PDA

View Full Version : How to use mencoder?


Peter1234
18th August 2005, 04:25
When I click on mencoder.exe a window opens and then closes. How do I use it in Windows XP?

jel
18th August 2005, 05:39
i am far from knowledgable on the subject, however you may want to check out doom9's excellent 'frontend' tool for mencoder(among others), MEGUI.

MeGUI - x264 CLI & mencoder (XviD, lavc, Snow) GUI with (HE)AAC encoding and MP4 mux (http://forum.doom9.org/showthread.php?t=96032&highlight=mencoder)

hth

j

unskinnyboy
18th August 2005, 05:46
@Peter1234, Put the encoding options into a batch file (*.bat), double-click on the batch file and run it or run mencoder.exe + encoding options from the DOS command prompt.

Peter1234
18th August 2005, 06:02
unskinnyboy,

Thanks I will try that. Does this work also?

1. enter the command line in text editor
2. use copy to make a copy of the command line
3. paste the copy into the Run open box
4. click OK to execute

I do not know if this is working, because I am not sure if I am using a correct command line, but I think it is. A batch file seems like a better way, thanks.

unskinnyboy
18th August 2005, 06:12
Yes, that should work as long as you give the full path of mencoder.exe + encoding options in the Run prompt.

If you have a space between any of the folder names (e.g: the space between 'Progam Files'), you have to give the command in quotes as below:
"C:\Program Files\mpeg4iptools-1.3.2cvs\mencoder.exe blah blah.."
If you don't have the blank space issue, you can run the command without enclosing it in quotes.
C:\mpeg4iptools-1.3.2cvs\mencoder.exe blah blah...
Not just for mencoder.exe, the above is applicable to any CLI app.

Peter1234
18th August 2005, 06:59
unskinnyboy:
Thanks for the info. Is there any way to use multiple lines? A single line can get very long.

buzzqw
18th August 2005, 08:20
in batch mode you write a new line using "\"

like in this example

mencoder -oac copy -vf crop=720:352:0:62,hqdn3d -ovc lavc \
-lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:autoaspect \
-o test.avi movie.avs

BUT this will fuction only on linux enviroment (not on winxp, at least for me...)

I had some mencoder string long as 400 char (on windows)
(mencoder.exe -vf %crop%,hqdn3d,scale -zoom -xy %CWIDTH% -af volnorm=1:volume=10 -noskip -ovc xvid -xvidencopts pass=2:bitrate=%MBIT%:me_quality=6:max_bframes=%vmax_b_frames%:closed_gop:trellis:chroma_me:vhq=1:autoaspect:bvhq=1:par=%par% -passlogfile "%DEST%divx2pass.log" -oac mp3lame -priority idle -ffourcc XVID -lameopts cbr:aq=2:br=%BMP31%:mode=1 -o "%DEST%movie.avi" "%DEST%%FFILE%") <- for example

The mencoder/mplayer manual is very usefull and has few examples

if need some help write it down :) (btw, i have only read the man page)

BHH

Peter1234
18th August 2005, 08:31
buzzqw:
I had tried using \ and that didn't work for me either. Thanks for the explanation of why.