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.

About targetFrameRate in encoder.cfg

Hi,all:

I use H264 HP codec to produce bitstream.But I can't understand targetFrameRate quite well.

1.

How to set a proper targetFrameRate ?

2.

If input yuv sequences only support up to 20  fps ,while I set targetFrameRate = 30 fps

what will happen? Does it occur errors?

3.

Are dropping frames and skip frames the same meaning to some extent?

Do dropping frames and skip frames used to control the framerate of bitstream to be

a constant value?

  • Hi Toure,

    1) You can set using configuration parameter while creating encoder instance. Please check sample test application or user guide for configuration details.

    2) There will not be any error, codec assumes input is with frame rate 30 and proceeds for encoding. 

    3) Yes, and it depends on application, in general skip frames are decided by encoder based on bit budget availability. Frames drops will be controlled by application when encoder is not meeting performance in certain cases(to sync with audio, display units, real time data feeds etc.

    No, Dropping frames or skip frames does not control frame rate. Frame rate depends on capturing..

    Regards

    Rama Mohana Reddy

     

  • Hi,Rama:

    Ramamohana Reddy said:

    2) There will not be any error, codec assumes input is with frame rate 30 and proceeds for encoding. 

    Why that don't occur any error? What about side effect ?  Do that case I proposal make some side effcts?

    Can you tell the difference among these below test cases?

    case1:

    input real frame rate is 20 fps while I set targetframerate = 30

    case2:

    input real frame rate is 30 fps and I set targetframerate = 30

    case3:

    input real frame rate is 40 fps while I set targetframerate = 30

    Would you give me some advice about how to make a choice among three cases?

    I guess case2 is best one .But I am not sure whether case1 and case3 will make side effects?

    And what are the side effects caused by case1 and case3?  Thanks!