Record Streaming Video on the Fly

This forum is about all development around libVLC.
Moriquendi
Blank Cone
Blank Cone
Posts: 74
Joined: 31 May 2011 16:22

Record Streaming Video on the Fly

Postby Moriquendi » 27 Apr 2017 07:43

Hi there,

I know this discussion is out there for a while but is there any progress on recording the streaming video on the fly with libvlc API? Basically what I'm trying to achieve is display and record an incoming video stream. Currently, to record the streaming video;

QString option1 = ":sout-all";
QString option2 = ":sout=#duplicate{dst=display,dst=\"std{access=file,mux=ts,dst='%1'}\"}";
option2 = option2.arg(fileName);
libvlc_media_add_option(media1->core(), option1.toUtf8().data());
libvlc_media_add_option(media1->core(), option2.toUtf8().data());


For this to work, I need to stop and open the media again, something VLC Media Player "Record Button" doesn't do. I've tried this with VLC 2.0.2, VLC 2.2.1 and VLC Nightly Build vlc-3.0.0-20170426-0303-git-win32-debug.

Any help would be appreciated.

Cheers.

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests