the linux newb

all things tech

Convert video with VLC and drag and drop batch script…

Courtesy of, I came across an article about the many uses of VLC.  My favorite was the ability to convert any video with a drag and drop batch script.  Here’s some of the article…

“If you regularly convert files to a specific file format—say, for your iPod—you can set up a batch file with VLC that will make video conversions as easy as dragging and dropping the to-be-converted file onto the script.

Create a new text file and save it as VLC Converter.bat. Make sure your filesystem is showing file extensions so you aren’t saving it as a text file (you don’t want to end up with something like VLC Converter.bat.txt). You need to make sure it’s saving with the BAT extension.

If you were building the script from scratch, at this point you’d open up the file you just created and paste “C:\Program Files\VideoLAN\VLC\vlc.exe” %1 in the first line. Now you need to get the command line options that describe how VLC should convert the file. For that, you can use the text generated by the Target textbox at the top of the Stream/Save Settings window described in steps two and three of the DVD ripping guide above, which displays the command line options you need for your batch file. Luckily a user at the iPod forums at iLounge already put together a VLC batch conversion script for iPods, so we can just use those settings, which look like this:

“C:\Program Files\VideoLAN\VLC\vlc.exe” %1 :sout=#transcode{vcodec=mp4v,vb=1024,scale=1,height=240,width=320,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=%1.mp4}}”

10/07/2008 Posted by | how-to, Random | | Leave a comment