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.

Time taken by the H264 to compress one frame



Hi All,

        In our application we are using H264 encoder for video compression. We need to calculate the time taken by the encoder for compressing 1 frame.

        We referred to the document, H.264 High Profile Encoder (v01-10-00) on DM365.pdf and in the section

        Table 2. Cycles Information for H264_ENC_01 ,they have mentioned the below information

        Resolution - 720p@30fps,Bit Rate -4mbps

        The Average performance as ,

         ARMMH9Z26 - 0.14 ENCODE FRAME(MHZ) --8.33 FPS(297MHZ)- 35.66

         And the peak performance as,

        ARMMH9Z26 - 0.71 ENCODE FRAME(MHZ)--11.62 FPS(297MHZ)- 25.55

       To arrive the calculation per frame, taking into account the peak value

       1 Frame = ENCODE FRAME(MHZ) * ARM SYSTEM SPEED- 297MHZ ( 1/(297* 10^6) = 0.00336)

                      = 11620000* 0.00336 = 39.04 ms

       Please validate our assumption and provide your suggestions.

      Thanks in Advance for your support

Thanks

Sivagowri R

  • Hi Sivagowri,

    Your calculation is perfectly fine. The only thing is that  you are computing the worst case performance as you are using peak cycle information.

    The simple was of arriving at this is:

    The data sheet indicates the performance as 25.55 fps. It means you can encode 25.55 frames per second.

    or it means (1/25.55) seconds per frame ~ 39.1ms. This is in concurrent with your calculation.

    Rgds, mahant