capture stream to file

About encoding, codec settings, muxers and filter usage
mmirco
New Cone
New Cone
Posts: 7
Joined: 19 Feb 2014 10:21

capture stream to file

Postby mmirco » 19 Feb 2014 18:11

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!

amar
Blank Cone
Blank Cone
Posts: 14
Joined: 14 Jul 2010 14:09

Re: capture stream to file

Postby amar » 19 Feb 2014 19:28

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}}"

mmirco
New Cone
New Cone
Posts: 7
Joined: 19 Feb 2014 10:21

Re: capture stream to file

Postby mmirco » 19 Feb 2014 21:15

Thanks for the reply but it does not work ... the video play correctly, but not create the file... the \ characters seems irrelevant... :(

mmirco
New Cone
New Cone
Posts: 7
Joined: 19 Feb 2014 10:21

Re: capture stream to file

Postby mmirco » 21 Feb 2014 15:51

possible that nobody is able to tell me if it is possible to save the stream to a file without using the command line?

mmirco
New Cone
New Cone
Posts: 7
Joined: 19 Feb 2014 10:21

Re: capture stream to file

Postby mmirco » 22 Feb 2014 11:03

Alicelewis, use the code that I use? can you show me your code?

thank you

mmirco
New Cone
New Cone
Posts: 7
Joined: 19 Feb 2014 10:21

Re: capture stream to file

Postby mmirco » 22 Feb 2014 11:19

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: capture stream to file

Postby Jean-Baptiste Kempf » 22 Apr 2014 13:59

Look at the logs, but I guess the issue is the dst part.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests