Jump to content


Photo

Recording with GStreamer (ServiceMP3)

servicemp3 gstreamer recording

  • Please log in to reply
4 replies to this topic

#1 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 December 2013 - 20:44

Hello,

 

 

It would be great to have also recording available for GStreamer integrated into Enigma2.

 

I think (in theory) this can be done directly in GStreamer by dynamically changing the pipeline.

 

When recording enabled then a filesink will be injected on the pipeline, when recording ends then filesink will be removed from pipeline.

 

I would like to hear your ideas on the matter or see good patches ;)

 

Thanks.


Edited by athoik, 8 December 2013 - 20:45.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Recording with GStreamer (ServiceMP3) #2 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 8 December 2013 - 21:01

Hi athoik,

 

yes, that would be great.

In the gstdvbvideo- and gstdvbaudiosink you can get the demuxed data. But I guess storing demuxed data is not really good, because of sync and playback problems. As you said dynamically adding a filesink right at the beginning of the pipeline should be possible, but then you cannot watch and store the stream at the same time (or??). Or you'll have to open a second pipeline for that.

 

Sorry, I have no time to build patches for it  :( Perhaps in some weeks/months...


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

Re: Recording with GStreamer (ServiceMP3) #3 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 December 2013 - 22:23

Hi,

Actually i was thinking about tee and filesink.

So tee will send one queue to filesink in order recording to occur.

It might work.

Here is an example of tee and filesink https://gist.github....endlers/4113512
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Recording with GStreamer (ServiceMP3) #4 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 9 December 2013 - 00:48

Hello,

 

Playbin2 already provides this: http://docs.gstreame...ssive streaming It's like progressive download buffering, but you don't limit file size, so whole media will be downloaded.

 

It's sufficient for simple cases when you only want to watch and download video from the beginning. It's also possible to get progress of downloading file. But if you want to be more flexible, then its not an option.

 

I tested this solution and it worked.


Edited by mx3L, 9 December 2013 - 00:51.


Re: Recording with GStreamer (ServiceMP3) #5 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 15 December 2013 - 09:18

BTW I suppose you'd need to either record the complete stream (not demuxed) or remux it to e.g. a transport stream (if the codec is supported in a ts). There is no use in recording seperate a/v streams.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users