Get instant bitrate from H.264 encoder ?

Michael Smith msmith at
Fri Jan 6 10:21:45 PST 2012

You can use a buffer probe for this. Look at the size (in bytes) of
each buffer coming out of the encoder. You know the duration of the
frame (from the framerate, even if the buffer itself doesn't have a
duration set), so you can trivially calculate what you call the
"instant bitrate" from this.


On Fri, Jan 6, 2012 at 3:54 AM, Jean-Michel Hautbois
<jhautbois at> wrote:
> Hi all,
> I am wondering if it is possible to get a message from the encoders in
> gstreamer, more precisely, from the H.264 encoder, which would give
> the instant bitrate.
> What I call instant bitrate is the bitrate for each frame after
> encoding this frame.
> This would be useful in order to implement some algorithms like scene
> detection change in a robust way.
> Thanks in advance for answering,
> Regards,
> JM
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list