[streaming] Re: Windows Batch File

James littlejim at austarnet.com.au
Mon Jul 31 02:51:20 CEST 2006


Hey! it works!

For future reference, or anyone else having this problem, there is NO 
SPACE between --sout=#transcode{} and :duplicate{}

so make it;

--sout=#transcode{options}:duplicate{dst=std{access=file,mux=mp4,dst="F:\mp4\capture.mp4"}}

So, in full, a Windows batch file (.bat) for VLC to capture to a file 
should look like this;

vlc -vvv dshow:// :dshow-vdev="Logitech QuickCam Pro 4000" 
:dshow-adev="Logitech Microphone (Pro 4000)" :dshow-size="320x240" 
:dshow-fps=25 :no-dshow-config :no-dshow-tuner 
--sout=#transcode{vcodec=mp4v,vb=256,scale=1,acodec=mp3,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst="F:\mp4\capture.mp4"}}

and this bit gave me trouble as well, so here's how to use the 
:duplicate section itself.

:duplicate{dst=std{access=file/udp/mms/http,mux=ts/ps/mpeg1/asf/mp4,dst="fully 
qualified destination, quotated"}}

And dst should always equal std

Sorry about the mess

Cheers

James

> Hello the list,
> 
> I'm trying to get VLC to run with the following batch file;
> 
> vlc -vvv dshow:// :dshow-vdev="Logitech QuickCam Pro 4000" 
> :dshow-adev="Logitech Microphone (Pro 4000)" :dshow-size="320x240" 
> :dshow-fps=25 :no-dshow-config :no-dshow-tuner 
> :sout=#transcode{vcodec=mp4v,vb=256,scale=1,acodec=mp3,ab=128,channels=2} 
> :duplicate{dst=std{access=file,mux=mp4,dst="F:\mp4\capture.mp4"}}
> 
> but all I get from VLC is;
> 
> main debug: stream=`transcode'
> main debug: looking for sout stream module: 1 candidate
> main error: invalid chain
> stream_out_transcode error: cannot create chain
> main warning: no sout stream module matching "transcode" could be loaded
> main debug: destroying chain... (name=transcode)
> main debug: destroying chain done
> main error: stream chain failed for 
> `transcode{vcodec=mp4v,vb=256,scale=1,acodec=mp3,ab=128,channels=2}'
> main error: cannot start stream output instance, aborting
> main debug: thread times: real 0m0.109375s, kernel 0m0.000000s, user 
> 0m0.015625s
> main debug: thread 3792 joined (input/input.c:399)
> main: nothing to play
> 
> Can anybody spot what it is I'm doing wrong?
> 
> Cheers
> 
> James
> 
> 

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the streaming mailing list