[MPlayer-users] batch/script file under windows

info at danielerossi.net info at danielerossi.net
Fri Feb 16 19:12:41 CET 2007


For those who loves script file here is an example using mencoder to 
batch convert any avi file in current directory to any supported 
mencoder audio/video codec.

@echo off
echo Usage: xvd infile
for %%X in (*.avi) do mencoder %%X -o %%X_tmp -ovc xvid -xvidencopts 
bitrate=1800:autoaspect -oac mp3lame -lameopts cbr
ren *avi_tmp *.xvd.avi
(just remember to save a "xvd.bat" or anyname file somewhere in one of 
your "path"directory)

It uses xvd codec (1800kb/sec) and constant bitrate mb3 for storage of 
my camera mjpegs.

This other example convert any audio of a video file to mp3 using 
mplayer and lame
Note that for some (low) bitrates/frequency this is not directly 
possible....

@echo off
echo Usage: mp3 infile
mplayer %1 -ao pcm:file=%1.wav -vc dummy -vo null
lame -h %1.wav %1.mp3
del %1.wav



More information about the MPlayer-users mailing list