c# - sout option in nVLC -


i trying record stream using nvlc in c# application. nvlc c# wrapper around libvlc.

is sout option supported in libvlc? below c# code not save file.

here's code:

`m_media = m_factory.createmedia<imedia>("rtsp://<url>");  list<string> mediaoptions = new list<string>();  mediaoptions.add(@"sout=""#std{access=file,mux=ts,dst=c:\users\hp\cctv\videos\\video.mpg}""");  m_media.addoptions(mediaoptions);        m_player.open(m_media);  m_media.parse(true);`   m_player.play();   ` 

many thanks.

the sout option supported nvlc (it works me).

i think sout format provide incorrect, try :

m_media = m_factory.createmedia<imedia>("rtsp://<url>"); var filename = @"c:\users\hp\cctv\videos\video.mpg"; m_media.addoptions(     new list<string>() {         "sout=#std{access=file,dst="+filename+"}" }); m_player.open(m_media); m_media.parse(true);` m_player.play(); 

with example, rstp stream saved in file. if want view video on panel @ same time, have use duplicate option.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -