Log in

View Full Version : Mencoder command line


PsyDonia
10th September 2010, 15:56
ok I have not use mencoder that much and I know about allot of good GUIs.
But I want to learn mencoder and have some questions to start with and hope that some have the answer for me.
I want to have like this.
Those different line I need.
Want to have those with 2pass also how to do that.

Like this. is those line right.
1.Video codec xvid and audio copy.

mencoder input.avi -o output.avi -ovc xvid -xvidencopts pass=1:bitrate=2000:quant_type=mpeg -oac copy

2. Video codec xvid and audio converted to AC3 6Channel.
mencoder input.avi -o output.avi -ovc xvid -xvidencopts pass=1:bitrate=2000:quant_type=mpeg -oac lavc -lavcopts acodec=ac3:abitrate=480 -channels 6

3. Like number 1 but with Subtitle hardcoded.
mencoder input.avi -o output.avi -ovc xvid -xvidencopts pass=1:bitrate=2000:quant_type=mpeg -oac copy -sub subfile.srt -subfont-text-scale 3

4. Like number 2 but with subtitle.
mencoder input.avi -o output.avi -ovc xvid -xvidencopts pass=1:bitrate=2000:quant_type=mpeg -oac lavc -lavcopts acodec=ac3:abitrate=480 -channels 6 -sub subfile.srt -subfont-text-scale 3



And how do I make those 2pass.

Edit:
Ohh I forgot I also want if possible to make it change resolution.
Lets say I have a 1080P "1920 x XXX". and want to change the size to 720P "1280 x XXX" something Depends on how wide the file is.
So I only have to specify the Width and then keep Aspect ratio.

PsyDonia
12th September 2010, 10:15
ok no one did know.

I have read some more and this should be it I think.

This should be in xvid and 2pass Scaled to 1280x Something and have a subtitle acd AC3 6channel


mencoder.exe "input.mkv" -vf-add scale=1280:-2 -ovc xvid -xvidencopts bitrate=2900:turbo:threads=2:pass=1 -subpos 95 -subfont-text-scale 4 -subfont-blur 2 -subfont-outline 2 -subcp cp437 -font "Tahoma" -sub "inputSubtitle.srt" -nosound -o NUL: 2> 2.txt

mencoder.exe "input.mkv" -channels 6 -vf-add scale=1280:-2 -oac lavc -lavcopts acodec=ac3:abitrate=448 -ovc xvid -xvidencopts bitrate=2900:threads=2:pass=2 -subpos 95 -subfont-text-scale 4 -subfont-blur 2 -subfont-outline 2 -subcp cp437 -font "Tahoma" -sub "inputSubtitle.srt" -o "outputFile.avi" 2>> 2.txt



Then it is just edit those lines.
is this right I think I should test it now.
If it is wrong someone maybe can point me i the right direction.
also does anyone know where to download the latest updated mencoder.exe and witch mplayerhq only has mplayer for download I think.

video_magic
15th September 2010, 17:34
You can get quite new builds of Mplayer & Mencoder from here:

http://sourceforge.net/projects/mplayer-win32/files/MPlayer%20and%20MEncoder/