Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Jan 2012
Location: Sweden
Posts: 18
|
Bitrate of each frame in a H.264 file?
Hi,
I wonder how can we compute/extract bit-rate for each frame of an H.264 encoded video file? Parse the bit-stream somehow and then collect this info but how? Any ideas/hints on it? Thanks! |
![]() |
![]() |
![]() |
#2 | Link |
Somewhere Back in Time
Join Date: Jul 2008
Location: Hungary
Posts: 61
|
Hi,
Bitrate is usually specified in kbit or mbit per second and if your video is for example 25 frames in a second, then its very simple. This of course would give the average for one frame across the whole video. But why would you need this info? |
![]() |
![]() |
![]() |
#3 | Link | |
Registered User
Join Date: Jan 2012
Location: Sweden
Posts: 18
|
Quote:
Thanks but averaging doesn't seem to be good solution for me. I need the exact bit-rate for each encoded frame, otherwise known as 'residual frame' obtained after motion compensation. |
|
![]() |
![]() |
![]() |
#4 | Link |
Registered sausage
Join Date: May 2012
Posts: 78
|
ffdshow has an option for displaying the size of each frame.
If it is not enough for ya, since ffdshow is based on ffmpeg, you should have some command in ffmpeg to output a log with the frame number/type/size (I guess) |
![]() |
![]() |
![]() |
#5 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,906
|
Quote:
If you are asking how to parse H.264, then that is also described in the spec. There is sample code in the JM reference decoder that I used as the basis for the H.264 parsing in my tools. Last edited by Guest; 30th June 2012 at 13:58. |
|
![]() |
![]() |
![]() |
#6 | Link |
zj262144
Join Date: Sep 2010
Posts: 105
|
__________________
MPC-HC 1.7.8 / LAV Filters 0.64+ (tMod) / XySubFilter 3.1.0.705 / madVR 0.87.14 Direct264 Mod (src & win32 builds): code.google.com/p/direct264umod (maybe outdated) |
![]() |
![]() |
![]() |
Tags |
bitrate, frame, h.264/avc |
Thread Tools | Search this Thread |
Display Modes | |
|
|