View Full Version : cmd line for 2 pass xvid encoding with mencoder.exe
MicoMaco
24th September 2008, 19:19
I just can't figure out what's the proper cmd line for 2 pass xvid encoding with mencoder.exe in windows.
This is what I type in the cmd line for the 1st pass:
"C:\Program Files\MPlayer\mencoder.exe" "c:\input.mkv" -nosound -ovc xvid -xvidencopts pass=1:bitrate=2000:quant_type=mpeg -o "c:\1st.pass"
Than I hit enter and the resulting file in the C:\ directory is an ordinary avi file with 2000kbps bitrate. There is no log file. What am I doing wrong? Could someone write a cmd line for me for both 1st and 2nd pass, just the basics... so I could use an analogy for all future 2 pass xvid encodings I may do with mencoder.exe. :thanks:
Regards!
MM
Dark Shikari
24th September 2008, 19:30
-o sets the name of the output video file, not the name of the output statsfile.
MicoMaco
24th September 2008, 22:33
-o sets the name of the output video file, not the name of the output statsfile.
So what's the command to save output statsfile? I was looking for it in MPlayer html help file under general and codec specific encoding options but it's just not there. All there is about 2 pass encoding is the -xvidencopts pass=<1|2>
command. Nothing about saving the statsfile:confused:
Dark Shikari
24th September 2008, 22:43
So what's the command to save output statsfile? I was looking for it in MPlayer html help file under general and codec specific encoding options but it's just not there. All there is about 2 pass encoding is the -xvidencopts pass=<1|2>
command. Nothing about saving the statsfile:confused:The statsfile is saved by default... I'm not sure how you can change the name of it, but I don't think you need to...?
MicoMaco
24th September 2008, 23:23
The statsfile is saved by default... I'm not sure how you can change the name of it, but I don't think you need to...?
Surely my goal isn't changing the name of the statsfile, I just want it to be saved... cause I can't find it after the 1st pass is done. Is it supposed to be in the same folder as the input file? Or in the same folder as MEncoder.exe? I looked in both folders and it's just not there.
"C:\Program Files\MPlayer\mencoder.exe" "c:\input.mkv" -nosound -ovc xvid -xvidencopts pass=1:bitrate=2000:quant_type=mpeg -o "c:\output.avi"
The only way I can get this going is adding -o "c:\output.avi" at the end, this way I get confirmation that 2 Pass Rate Control -- 1st pass is in progress. But the file created is an ordinary compressed avi file and there's no stats file. Now I'm getting the feeling that you assume I should know certain things but I just don't, whatever it is. I'm very new in this cmd thingy (give or take 2-3 days).
Gusar
25th September 2008, 13:42
The stats file should be saved by default, as Dark Shikari said. It's name is divx2pass.log. You can change it with -passlogfile <filename>
MicoMaco
25th September 2008, 14:13
O dear, finally I started using my brain and used windows search function. The log file was found in 2 sec... but I couldn't even imagine that it was saved in C:\Documents and settings\myusername folder.
Thank you very much Gusar and Dark Shikari:thanks:
Regards!
MM
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.