[MPlayer-dev-eng] 3 pass encoding syntax poll

Loren Merritt lorenm at u.washington.edu
Fri Feb 11 20:47:17 CET 2005


On Fri, 11 Feb 2005, Andreu Escudero wrote:

>> Yeah, I thought of that flaw as I wrote that e-mail - someone mentioned
>> something betters - use a .new file, and when you are done, replace the
>> regular one.
>> That way, no extra files are produced, you don't have to remember to restore
>> backup if you canceled, and it solves the -passlogfile option by just
>> appending a '.new' to the filename... I think that's the perfect solution...
>> Implementation is kinda a problem though.. The only one that really knows when
>> the encode is complete and successful is mencoder.c, and it knows nothing of
>> the log file (which is a good thing...).
>
> There's another problem.
> Sometimes, log files are corrupt (when encoding from an MPEG,
> sometimes timestamps on it cause the log file to be truncated). I
> solve that mplaying to a fifo stream.yuv and encoding from there, and
> in the last pass I encode from the original to oac copy the audio, but
> I keep a copy of the last log file just in case. If it was done
> automatically, the last log file would be lost...

Corrupt logfiles are an unrelated problem. And you can still keep a copy 
if you want.

Also, I think bad things can happen if you use nosound on one pass and
oac copy on another. (But I'm no expert on that: I always encode with 
nosound, and join audio in mkvmerge.)

--Loren Merritt




More information about the MPlayer-dev-eng mailing list