Re: Listing i/p/b frames info

[email protected] Mon, 10 Mar 2008 10:03:20 +1100
Newsgroups gmane.comp.video.xvid.user
Message-ID <[email protected]>
On Sun, Mar 09, 2008 at 12:12:11PM +0100, Jesus Cea wrote:
> When doing a two pass encoding, the first one saves stats about i/p/b
> frame details. This pass, nevertheless, doesn't know about final
> bitrate, so it is very possible that the final i/p/b stats be very
> different from first pass.
> 
> I'm interested in final video i/p/b stats. Studying xvid sourcecode,
> seems doesn't exist any procedure to get this information. Is there any
> way to get it?. Maybe another tool you can suggest?.

xvid uses a 'plugin' concept allowing one to hook into the encoder.
take a look at rc_2pass1_after() within plugins/plugin_2pass1.c,
to see how we output the first-pass i/p/b statistics.

to get the second pass "final" statistics, you could modify rc_2pass2_after()
within plugins/plugin_2pass2.c to output the i/p/b statistics.

-- pete