Jump to content


Photo

recording stream issue


  • Please log in to reply
8 replies to this topic

#1 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 26 January 2021 - 14:03

I have enigma2 crash if i select option to stop and delete an instant stream recording.
 
It currently expects stop and delete of an instant stream recording to be ext .ts but mine is .stream instead.
 
I've added a quick temporary hack to my box to fallback to ext .stream to workaround this issue and stop the GSOD for now, until one of the devs can look into fixing this correctly.
 
MovieSelection.py
def createMoveList(serviceref, dest):
	#normpath is to remove the trailing '/' from directories
	src = isinstance(serviceref, str) and serviceref + ".ts" or os.path.normpath(serviceref.getPath())
	if not os.path.exists(src):
		src = isinstance(serviceref, str) and serviceref + ".stream" or os.path.normpath(serviceref.getPath())

Replicate:

[ActionMap] Keymap 'InfobarInstantRecord' -> Action = 'instantRecord'

[TIMER] Filename calculated as: '/media/usb/movie/20210126 1210 - ITV - instant record'

[eMP3ServiceRecord] prepare filename /media/usb/movie/20210126 1210 - ITV - instant record.stream

[TIMER] start recording on tuner: (fallback) stream

[ActionMap] Keymap 'InfobarInstantRecord' -> Action = 'instantRecord'
[Screen] Warning: Skin is missing element 'autoresize' in <class 'Screens.MessageBox.MessageBox'>(Stop and delete recording: - instant record).
[ActionMap] Keymap 'MsgBoxActions' -> Action = 'ok'.


[TIMER] stop recording on tuner: (fallback) stream
[eMP3ServiceRecord] stop recording
instantRecord stop and delete recording:  instant record

DEBUG: working now with hack!

[MovieSelection] DEBUG moved: ('/media/usb/movie/20210126 1210 - ITV - instant record.stream', '/media/usb/movie/.Trash/20210126 1210 - ITV - instant record.stream')
[MovieSelection] DEBUG moved: ('/media/usb/movie/20210126 1210 - ITV - instant record.stream.meta', '/media/usb/movie/.Trash/20210126 1210 - ITV - instant record.stream.meta')


Re: recording stream issue #2 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 26 January 2021 - 14:49

Please post crash log
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: recording stream issue #3 WanWizard

  • PLi® Core member
  • 68,301 posts

+1,718
Excellent

Posted 26 January 2021 - 15:29

I can't reproduce it, what exactly was recorded? If I make an instant recording, I get:

-rw-r--r--    1 root     root           174 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.eit
-rw-r--r--    1 root     root      22332520 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts
-rw-r--r--    1 root     root           416 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.ap
-rw-r--r--    1 root     root            12 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.cuts
-rw-r--r--    1 root     root           280 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.meta
-rw-r--r--    1 root     root         11856 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.sc

no problem?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: recording stream issue #4 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 26 January 2021 - 15:58

As reported [eMP3ServiceRecord] records my streamed channel and saves the recording with the filename ext .stream, not as occurs with a normal channel recording which saves the recording with the ext .ts
 
[MovieSelection] attempts to delete this streamed recording with the assumption that every recording always has a filename ext .ts when this is not the case. Streamed recordings by [eMP3ServiceRecord] have ext .stream
 
 
 

Attached Files



Re: recording stream issue #5 WanWizard

  • PLi® Core member
  • 68,301 posts

+1,718
Excellent

Posted 26 January 2021 - 16:02

Ah, it is recording a stream, not a DVB broadcast.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: recording stream issue #6 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 27 January 2021 - 18:21

Not very easy to solve. The RecordTimerEntry includes the filename without the extension (.ts, .stream). Adding the extension to the filename is easy, but that can have several side effects. So better don't go this way even it's the nicer one.

 

Then in MovieSelection a ".ts" is added to the filename:
https://github.com/O...lection.py#L149

How to find out, that it is a .stream and no .ts file? Use a "file exists" function?

 

Or maybe better add a new field to the timer entry with the extension of the file? But then you also need to change some functions which might cause trouble in some plugins...

 

@littlesat: Do you have a good idea?


Edited by betacentauri, 27 January 2021 - 18:22.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: recording stream issue #7 Dimitrij

  • PLi® Core member
  • 9,962 posts

+334
Excellent

Posted 27 January 2021 - 19:54

Maybe startswith serviceref...

or

'%3a//' in serviceref


Edited by Dimitrij, 27 January 2021 - 19:59.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: recording stream issue #8 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 28 January 2021 - 00:04

No, don’t work. When instant recording is stopped and the file should be deleted, the createMoveList is called with a string (even if the variable is called serviceref). And the string contains the filename without the extension.
Maybe add a third parameter “filename_extension” in the procedure createMoveList with default value “.ts”. Or similar...
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: recording stream issue #9 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 28 January 2021 - 00:36

Maybe just add similar to the current createMoveList code that checks for ext candidate ('.ap', '.cuts', '.meta', '.sc') and simply check file exits for the currently known candidates as src_ext ('.ts', '.stream') and default to '.ts'. This is similar to the workaround example shown in post #1 which has temporarily fixed it for me at the moment.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users