PDA

View Full Version : Using mencoder to batch encode a folder


PlayWithFire
29th August 2005, 01:13
I have a 15 folders worth of avi files encoded with DivX 3 Low-Motion with a much higher bitrate then i'd like. They are just cartoons, so i'd like to compress them down to a resonable bitrate, so i can make them smaller and burn then off to DVD+Rs

I've used mencoder before to do it, and it's pretty simple, but that was for only a few files. I dont really want to have to sit there and type out the name of that many files.

Is there a batch utility that i can use to help me do that? Or maybe someone can suggest a nice and quick way to create a batch file that can do that for me.

Thanks in advance!

celtic_druid
29th August 2005, 04:12
Use for with /R so it processes directories recursivless.
for /r %%f in (*.AVI) DO (mencoder.exe -oac copy -ovc xvid -xvidencopts ........ "%%f" -o "%%~nf-new.avi")
or better yet output to a different drive infact you would have to do something like that since the above would create an avi, which would then be processed, creating an infinate loop.

ReinerSchweinlin
12th September 2005, 11:13
use gulmencoder, itīs a nice gui for mencoder that does just what uīre asking.

PlayWithFire
12th September 2005, 15:37
Looks like there's no windows version
Oh well, i did just intall Ubuntu and need motivation to use it. Looks like this is going to do it :)

ReinerSchweinlin
12th September 2005, 15:48
Sure there is a windows version. In fact, i canīt find any other....
http://vuks.da.ru/myprograms/programs/

Doom9
12th September 2005, 16:06
CelticDruid has Windows versions of tons of useful software: http://www.aziendeassociate.it/cd.asp?dir=/mplayer - mencoder included.