Page 1 of 1

Command line Help - Stream and save file at the same time

Posted: 23 Feb 2005 21:16
by pjhealy
Hi,

Below is my command line for streaming from my Osprey 220 card:

vlc -v v4l:/dev/video:norm=ntsc:size=640x480:channel=0:adev=/dev/audio --sout '#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,url=:8080}'

I would like to be able to add something to that command line that would allow the stream to be saved to a file as well. Can anyone help?

Thanks!!

Pat

Posted: 23 Feb 2005 21:38
by dionoea
use the duplicate{dst=standard{},dst=standard{}} sout module. (more info here : http://videolan.org/doc/streaming-howto/en/ch03.html .

I think I'm doing something wrong here...

Posted: 23 Feb 2005 22:30
by pjhealy
Here's my new command line. It doesn't work, but I'm not sure where to go from here with it.

vlc -v v4l:/dev/video:norm=ntsc:size=640x480:channel=0:adev=/dev/audio --sout '#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,url=:8080}:#duplicate{dst=std{access=file,mux=ts,url=testfile.asf}}'

Re: I think I'm doing something wrong here...

Posted: 23 Feb 2005 23:42
by dionoea

Code: Select all

vlc -v v4l:/dev/video:norm=ntsc:size=640x480:channel=0:adev=/dev/audio --sout '#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:duplicate{dst=std{access=mmsh,mux=asfh,url=:8080},dst=std{access=file,mux=ts,url=testfile.asf}}'

That did it!

Posted: 24 Feb 2005 15:14
by pjhealy
Thank you, that did the trick!