Page 1 of 1
capture stream to file
Posted: 19 Feb 2014 18:11
by mmirco
Hi,
i have a problem with my plugin vlc in my visual basic application.
This is the code:
Dim options as string
options= ":sout=#duplicate{dst=display,dst=std{access=file,mux=ps,dst=c:\doc\test.mpg}}"
vlc.addTarget("rtsp://172.16.98.20:554/stream1", options, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0)
vlc.play()
The video play correctly, but not create the file...
help!
Re: capture stream to file
Posted: 19 Feb 2014 19:28
by amar
You might need to escape the \ characters in your string:
options= ":sout=#duplicate{dst=display,dst=std{access=file,mux=ps,dst=c:\\doc\\test.mpg}}"
Re: capture stream to file
Posted: 19 Feb 2014 21:15
by mmirco
Thanks for the reply but it does not work ... the video play correctly, but not create the file... the \ characters seems irrelevant...
Re: capture stream to file
Posted: 21 Feb 2014 15:51
by mmirco
possible that nobody is able to tell me if it is possible to save the stream to a file without using the command line?
Re: capture stream to file
Posted: 22 Feb 2014 11:03
by mmirco
Alicelewis, use the code that I use? can you show me your code?
thank you
Re: capture stream to file
Posted: 22 Feb 2014 11:19
by mmirco
I'm trying to use the following code visual basic:
Dim options as string
options = ": sout = # duplicate {dst = display, dst = std {access = file, mux = ps, dst = c: \ doc \ test.mpg}}"
vlc.addTarget ("rtsp :/ / 172.16.98.20:554 / stream1", options, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0)
vlc.play ()
The videos play Correctly, but not create the file ...
I can not find a working example.
Re: capture stream to file
Posted: 22 Apr 2014 13:59
by Jean-Baptiste Kempf
Look at the logs, but I guess the issue is the dst part.