Page 1 of 1

Batching or VB Script

Posted: 06 Nov 2013 20:22
by rjtoeppe
Please help me figure what Iā€™m doing wrong. I have been using VLC for about 6 months and I love the product.

I have been converting AVI files to MP4 manually one at a time using VCL. I have a lot of AVI file on an external drive. I like making them MP4 since it makes them much smaller.

I would like to batch them and do a lot more at time. I looked up on the web sight and tried the batch file below. It runs VCL quickly but there is no output file. I tried both with and without the ā€œā€. I read somewhere this might help. Please see code belot

I even tried the VB script used on https://wiki.videolan.org/Transcode/

It will run but it just creates a bunch of directories.

I using:
windows 7
VCL 2.1.0

This is the batch I tried to run. My goal is to convert my AVI files to a very good quality file I can watch on VLC

for %%a in (*.avi) do "C:\Program Files\VideoLAN\VLC\VLC.exe" -I dummy -vvv %%a --sout=#transcode{vcodec="h264",vb="7000",fps="25.000",size="4:3",width="722",height="578",acodec="mp4a",ab="128",channels="2",samplerate="44100",deinterlace} :standard{access=file,mux="mp4",dst="%%~na.mp4"} vlc://quit


Thank you for any help

Re: Batching or VB Script

Posted: 07 Nov 2013 13:04
by kodela
Is "dst="%%~na.mp4" right? not "dst="%%a.mp4"? why?

kodela