Start Recording Mid-Stream

This forum is about all development around libVLC.
Ken98045
New Cone
New Cone
Posts: 4
Joined: 20 Aug 2022 05:02

Start Recording Mid-Stream

Postby Ken98045 » 20 Aug 2022 05:18

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15287
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Start Recording Mid-Stream

Postby Rémi Denis-Courmont » 20 Aug 2022 08:10

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ken98045
New Cone
New Cone
Posts: 4
Joined: 20 Aug 2022 05:02

Re: Start Recording Mid-Stream

Postby Ken98045 » 20 Aug 2022 09:15

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.

mfkl
Developer
Developer
Posts: 746
Joined: 13 Jun 2017 10:41

Re: Start Recording Mid-Stream

Postby mfkl » 22 Aug 2022 03:23

You can do this only from libvlc 4+ https://code.videolan.org/videolan/vlc/ ... uests/2358
https://mfkl.github.io

Ken98045
New Cone
New Cone
Posts: 4
Joined: 20 Aug 2022 05:02

Re: Start Recording Mid-Stream

Postby Ken98045 » 22 Aug 2022 04:25

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests