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.

How to know the frame rate of encode using OMX?

 

Hello everyone:

     1.    I use encode_a8host_debug.xv5T to encode a YUV file, but I want to know the frame rate of it, how to do?

    2.    In the encode_examples() function, I want to know which function is the data peocessing function?       

Thanks!

  • Puyol,

    1. frame rate is set during setting encoder parameters. frame rate and bit rattstream  are related. so whatever frame rate / bit rate you set it will produce bitstream accordingly.

    2. these are OMX examples, components are running on media controller. so process function is on media controller, which gets invoked when buffers are provided through application.

    Regards

    Vimal

  • Vimal,

           Thanks for your attention, I think I am not explaintion clearly.

           What I want to know is encoding time, for example, there is 300 frame, I use encode_a8host_debug.xv5T to encode it, the encode time is 10 seconds, so the encode frame rate is 30 frame per second.

          So, how to know the frame rate?

           thanks!

     

     

    puyol

     

     

     

          

  • Puyol,

    You can measure time taken from FillThisBuffer call to FillBufferDone for getting the actual time taken by encoder.

    Regards

    Vimal