Duplicate problem

This forum is about all development around libVLC.
liorla1
New Cone
New Cone
Posts: 2
Joined: 01 Dec 2008 15:51

Duplicate problem

Postby liorla1 » 01 Dec 2008 16:39

Hi all,

I'm usign a c# wrapper on visual studio 2008 to utilize the vlclib.
I'm trying to simultaneously display h264 stream (from RTSP server) and duplicate it to a file. I can watch (display) the stream from the server, but I cannot seem to duplicate the stream to a file while watching it. My VLC player version is "VLC media player 0.9.7-git Grishenko" (the libvlc.dll I'm using is taken from the installation directory).

My option string for the "VLC_Init(...)" function looks like this:
"--no-one-instance", "--drop-late-frames", "--disable-screensaver", "--overlay", "dummy", "--fast-mutex", "--win9x-cv-method=1", "--rtsp-caching=1200", "--plugin-path=" + vlcInstallDirectory + @"\plugins", "--sub-filter=marq", "--marq-marquee=Streaming RTSP", "--marq-opacity=100",

and as mentioned above, it is working and I can watch the stream.

In order to watch the stream and duplicate it to a file at the same time, I've change the option string to the following:
"--no-one-instance", "--drop-late-frames", "--disable-screensaver", "--overlay", "dummy", "--fast-mutex", "--win9x-cv-method=1", "--rtsp-caching=1200", "--plugin-path=" + vlcInstallDirectory + @"\plugins", "--sub-filter=marq", "--marq-marquee=Streaming RTSP", "--marq-opacity=100", "--sout-all", "--sout=#duplicate{dst=std{access=file,mux=mp4,dst=\"E:\\\\FileOut.mp4\"}}",

After calling this, Vlc creates the FileOut.mp4, but it's an audio file. There is no video, just audio.
Any ideas anyone?

Thanks for the help!


I'm trying to watch h264 stream and duplicate it to a file. In order to do this, on the call to "VLC_Init(...)" my options string looks like this:

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest