Libvlc and sout option

I would like to use the sout parameter in libvlc, as in the corresponding command line:

vlc rtsp://address --sout '#duplicate{dst=display,dst=standard{access=file,mux=ts,dst=/tmp/go.mpg}}' 

but, unfortunately, it is not taken into account. I was told that sout is not implemented (yet) in libvlc. Any idea how I can find a solution? I'm just trying to dump the rtsp stream that is playing on screen to a file. There is no transcoding here - just a dump. If this is not possible, is there a good place where I could install libvlc and just upload the stream to a file?

+4
source share
1 answer

After turning on sout, the magic line in libvlc turned out to be:

 libvlc_media_add_option(p_md, ":sout=#stream_out_duplicate{dst=display,dst=std{access=file,mux=ts,dst=/sdcard/go.mpg}}"); 
+4
source

Source: https://habr.com/ru/post/1469434/


All Articles