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

Loren Merritt lorenm at u.washington.edu
Sat Feb 12 12:37:40 CET 2005


On Fri, 11 Feb 2005, Loren Merritt wrote:
> On Fri, 11 Feb 2005, Oded Shimon wrote:
>> 
>> 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...).
>
> mencoder calls vf->uninit

OK, I see that only tells me that it's "done". Putting the rename there 
would only protect against crashes, not ^C.

I can, however, do this patch easily enough in x264. There the stats file 
is handled internally, so the uninit code does know how many frames should 
have been encoded.

--Loren Merritt




More information about the MPlayer-dev-eng mailing list