This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about bit rate

Hi all

    Im using DM6467 and dvsdk_3_10_00_19. In the past week,I saw that may be some strange thing with 720p codec.

In order to insert IDR frame, I modified video.c as this link said: http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/7826.aspx#31423

Then I got every frame bits like (with same camera's input):

frame_bytes=22982 Mean_QP=28  I_4x4=1255 I_16x16_*=2345  //SPS+PPS+IDR frame
frame_bytes=10795 Mean_QP=24                             //P frame
frame_bytes=12334 Mean_QP=22                             // P frame
frame_bytes=21                                                         //SPS+PPS
frame_bytes=72185 Mean_QP=16  I_4x4=1865 I_16x16_*=1735  //IDR frame
frame_bytes=34776 Mean_QP=18                             //P frame
frame_bytes=45537 Mean_QP=16                             //P frame
frame_bytes=21                                                     //SPS+PPS
frame_bytes=95709 Mean_QP=15  I_4x4=2025 I_16x16_*=1575  //IDR frame
frame_bytes=57266 Mean_QP=16                             //P frame
frame_bytes=47552 Mean_QP=16                             //P frame
frame_bytes=21                                                     //SPS+PPS
frame_bytes=151765Mean_QP=12  I_4x4=2032 I_16x16_*=1568  //IDR frame
frame_bytes=88333 Mean_QP=14                             //P frame
frame_bytes=56243 Mean_QP=16                             //P frame
frame_bytes=21
frame_bytes=135943
frame_bytes=69246
frame_bytes=47163 

 

As you see, the first IDR frame only has 22982 bytes,  but the next two have  72185bytes and  95709 bytes. Is that normal?

If I make every pic as IDR frame , I get this:

frame bytes=32657         //IDR frame
frame bytes=12994          // I frame
frame bytes=16682          // I frame
frame bytes=21
frame bytes=78505
         //IDR frame
frame bytes=72664          // I frame
frame bytes=62149
         // I frame
frame bytes=21
frame bytes=62844
         //IDR frame
frame bytes=62332          // I frame
frame bytes=55070
         // I frame
frame bytes=21
frame bytes=55304
         //IDR frame
frame bytes=54931          // I frame
frame bytes=55609
         // I frame
frame bytes=21
frame bytes=55342
         //IDR frame

frame bytes=55633          // I frame
frame bytes=55142
         // I frame

This time, those bit rate drops but still has big gap with first IDR frame.

Could anyone know that and tell me what happen?