Page 1 of 1
Start Recording Mid-Stream
Posted: 20 Aug 2022 05:18
by Ken98045
I am able to record a stream to disk using examples found on the net. However, what I would like to do is (1) start playing a stream (2) x seconds later start recording that stream (3) y seconds later stop recording. However, if there is a way to do that without creating a new Media stream and/or MediaPlayer I can't find out how.
From experimentation I have found that changing the Media options appears to do nothing.
Starting a new player is a problem due to the startup lag time.
Is there a way to do this I haven't found?
Re: Start Recording Mid-Stream
Posted: 20 Aug 2022 08:10
by RĂ©mi Denis-Courmont
The cycle plugin can theoretically do that but it's only possible from CLI and it's likely to cause issues with GOPs, especially if the intervals are short.
Re: Start Recording Mid-Stream
Posted: 20 Aug 2022 09:15
by Ken98045
Sorry, I'm new here and trying to find my way around....
So, where would I find a reference to that plugin? In this case Google is not my friend, and I'm apparently not using the right term (or location) to search this forum.
Re: Start Recording Mid-Stream
Posted: 22 Aug 2022 03:23
by mfkl
Re: Start Recording Mid-Stream
Posted: 22 Aug 2022 04:25
by Ken98045
Thanks for the info.
I've spent the last day and a half trying to find an alternative library and/or code around the problem. Of the three libraries that imply they can do something like this, none of them actually work (either not at all, or at best partially).
For now I can code around it in libvlc 3. I'll try version 4 some time this week if beta versions are widely available.