[vlc-devel] Re: Patch to add multi-pass encoding support for H.264

Sašo Kiselkov skiselkov at gmail.com
Sat Feb 10 09:41:10 CET 2007

Hash: RIPEMD160

George Bray wrote:
> If it's in the Mac nightly I'll give it a test.  Is there a switch to
> enable multipass?

Multi-pass encoding is done like this:

- - When doing the first pass give VLC the "--sout-x264-stat-out
<filename>" options, so the H.264 encoder outputs encoding stastics to
the provided file.

- - On any subsequent pass, additionally to the above options, also add
"--sout-x264-stat-in <filename>" so the encoder reads the stastics from
the file as well as to writing updated stastics. You can provide the
same file name - the encoder outputs updated stastics to a ".temp" file
and renames the file only after encoding is done.

My experience is that multi-pass makes sense up to the 3rd pass - after
that the gain in PSNR is minimal.

> geo
> On 2/10/07, Rémi Denis-Courmont <rem at videolan.org> wrote:
>> Le vendredi 9 février 2007 21:53, Sašo Kiselkov a écrit :
>> > I've adjusted the patch to just assign the value from var.psz_string
>> > and free() the value in Close(). Anybody interrested in testing it?
>> Apply thanks. I did not really test it though.
>> -- 
>> Rémi Denis-Courmont
>> http://www.remlab.net/

- --
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list