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

Andreu Escudero canuda10 at gmail.com
Fri Feb 11 20:38:40 CET 2005


> 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...

-- 
Das Experimental Kunstwerk




More information about the MPlayer-dev-eng mailing list