am trying to create a 2 pass XviD AVI from an mkv. i can do it with a single pass no problem. but when i try a 2 pass i get this message before the first pass starts.
Cannot open output file '/dev/null'.
here is the exact command line i am using.
"c:\program files\mplayer\mencoder.exe" "c:\temp\movie.mkv" -oac mp3lame -lameopts cbr:br=128 -ovc XviD xvidencopts pass=1 -o /dev/null
can anyone help me out? thanks in advance. i'm a noob to mencoder. would use vdub except the mkv is vfr and a/v won't sync.
+ Reply to Thread
Results 1 to 18 of 18
-
-
Windows doesn't have a /dev/null. Guess you could install some kind of linux distro. Could also try -o NUL
You might also want to consider VBR audio instead of CBR. Doesn't give you filesize predictablity, but it does give better quality. -
Originally Posted by buraku
Originally Posted by buraku
Good luck. -
Except VDub doesn't support MKV, and VDubMod's MKV support is outdated. Best bet is to demux the MKV streams with MKVExtractGUI (remember to install MKVtoolnix) and work with the resulting streams.
If cameras add ten pounds, why would people want to eat them? -
-
Ok buraku, I see the vfr (variable framerate) now. no wonder it won't sync.
Good luck. -
You could add add
rofile=dxnhtntsc that way you at least get HT VBV settings. Not sure what else mencoder restricts as compared to VfW which restricts bframes to 1, forces packed bitstream, etc.
Also with stock builds of both mencoder and VfW you can't disable the use of N-VOP's with I understand the 642 doesn't like. What is so hard about simply redisplaying the previous frame though? I modified my XviD build to force no N-VOP's for DXN profiles. Could probably do the same thing for mencoder. -
Best bet is to demux the MKV streams with MKVExtractGUI (remember to install MKVtoolnix) and work with the resulting streams.
Thanks ! Just what I was looking for -
one more question. i'm assuming the mkv i have is vfr. how do you tell? i heard something about looking at the timecode files. oh and is
rofile=dxnhtntsc part of the -xvidencopts chain or the -vf chain?
-
It is an XviD option. Quite possible that your problem is due to N-VOP's though in which case using a DXN profile won't help unless the mencoder build is modified. Basically by default if two frames are 100% identical then XviD will drop the second one. Guess mencoder could drop it first though.
I might patch my next mencoder builds to not use NVOP's for DXN profiles anyway. -
one more question. i'm assuming the mkv i have is vfr. how do you tell? i heard something about looking at the timecode files.
-
Everything that is command line based supports batch processing. That is one of the pluses for command line apps.
-
thanks celtic. so what commands do i use for batch? i can't find it in the man page.
-
Well if you changed the above *.avi to *.mkv then it would scan the directory and run your mencoder commandline for each of them. You can use -o %%~nf.avi to have it output an avi of the same name. Otherwise if you have only 3 files you could just copy/paste your command and change the input/output.
Similar Threads
-
Technical Query Re Reading of 1st pass stats during second pass xvid encode
By onesikgypo in forum Video ConversionReplies: 1Last Post: 13th Mar 2011, 06:59 -
Mencoder: how to do 2 pass encoding
By keneo in forum Video ConversionReplies: 3Last Post: 2nd Dec 2010, 14:29 -
How can you know if mencoder is using the results of the first pass...?
By divxmpegjpeg in forum Video ConversionReplies: 0Last Post: 13th Mar 2010, 18:12 -
Mencoder MKV to Xvid problem
By midders in forum Video ConversionReplies: 2Last Post: 28th Nov 2009, 18:34 -
Mencoder x264 2-pass in Windows
By blazerqb11 in forum Video ConversionReplies: 0Last Post: 22nd Nov 2008, 08:54