c# - Stream rtsp video using axvlcplugin to a file -


i using vlc plugin run rtsp stream. stream works good. want store these videos file destination. use code not work.

    axvlcplugin21.playlist.add("rtsp://192.168.10.222:554/h264", null, ":sout=#transcode{vcodec=theo,vb=800,acodec=flac,ab=128,channels=2,samplerate=44100}:file{dst=c:\\123.ogg,no-overwrite} :sout-keep");     axvlcplugin21.playlist.play(); 

this code plays rtsp stream not store. however, same options can used stream directly on vlc player.

try using option storing videos , displaying videos simultaneously

original commad play in vlc

%vlc path% vlc.exe -vvv rtsp://192.168.10.22:554/h264 :sout=#transcode{vcodec=theo,vb=800,acodec=flac,ab=128,channels=2,samplerate=44100}:duplicate{dst=file{dst=c:\\\\123.mp4},dst=display}:sout-keep 

if works try use

 :sout=#transcode{vcodec=theo,vb=800,acodec=flac,ab=128,channels=2,samplerate=44100}:duplicate{dst=file{dst=c:\\\\123.mp4},dst=display}:sout-keep 

":sout=#transcode{vcodec=theo,vb=800,acodec=flac,ab=128,channels=2,samplerate=44100}:file{dst=c:\123.ogg,no-overwrite} :sout-keep try work in vlc gui using streaming option+displaylocally+dst=file

refrence:howto receive , save stream


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -