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

About encoding, codec settings, muxers and filter usage
pjhealy
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2005 15:41
Location: Hamburg, NY USA
Contact:

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

Postby pjhealy » 23 Feb 2005 21:16

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 23 Feb 2005 21:38

use the duplicate{dst=standard{},dst=standard{}} sout module. (more info here : http://videolan.org/doc/streaming-howto/en/ch03.html .

pjhealy
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2005 15:41
Location: Hamburg, NY USA
Contact:

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

Postby pjhealy » 23 Feb 2005 22:30

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

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

Postby dionoea » 23 Feb 2005 23:42

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

pjhealy
New Cone
New Cone
Posts: 6
Joined: 17 Feb 2005 15:41
Location: Hamburg, NY USA
Contact:

That did it!

Postby pjhealy » 24 Feb 2005 15:14

Thank you, that did the trick!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 31 guests