Log in

View Full Version : How to calculate the bitrate value in h264 bitstream?


karim_embed
2nd June 2008, 03:51
Hi All!

I'm currently working on the h264 bitstream program, so that i can be find out the aspect_ratio, frame_rate (fsp) and bitrate (kbps) values in the given h264 file.

I can be find out the frame_rate value (fps) by using the below formula:

frame_rate = time_scale / (2 * num_units_in_tick).

But, i don't know that how to find out the bitrate value (kbps).
I'm new to this standards. If anyone know that how to find out the bitrate value (kbps) means, plz help me.

Thanks in advance.
Regards,
M.Karim

Guest
2nd June 2008, 06:49
If it's an elementary (raw) stream, then just divide the file size by the running time. That will give you the average bitrate.