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.

H.264 encoder: increase frame-rate

Guru 20755 points

Hello,

I am trying to see if I can use H.264 encoder for encoding increased frame-rate. Can anyone refer me to this feature in H.264 documentation ? I did find skip mode, but it seems in documentation that it is only used for reducing frame-rate, not increase.

Thanks,

Ran

  • Ran,

    Which platform are you looking to implement this feature ? Native encoder does not have any restriction of framerate. if the frames are fed at the desired rate and the encoder performance is able to cope up with that, you can encode with higher fps also. You just need to set the targetFramerate of encoder dynamic params accordingly.

    regards

    Yashwant 

  • Hi Yashwant,

    My platform is DM8168.
    I want to feed the encoder with 30fps, and encode the bitstream as 60fps for example. I searched HDVICP H.264 encoder user's guide for generate frame skip or something similiar, but found none. I would like to ask if increasing the given frame-rate to a higher frame-rate in the encoded bitstream is supported, and if yes - what the name of this feature, that I can find this feature in user's guide.

    Thank you very much,

    Ran

  • OK Ran,

    So you are looking for frame rate upscaling and encoding feature in encoder. This is not supported by codec.

    But if you want to just do 30 to 60 fps by frame duplication, then you can easily achive this by giveing the same frame twice to encoder.

    In case you want to do some frame interpolation to do frame rate conversion, I dont think we can do that in DM8168.

    regards

    Yashwant

  • Hi Yashwant,

    I was just given answer in DM8168, other related thread that to generate skip frame the parameter is IVIDENC2_InArgs.control = IVIDENC2_CTRL_FORCESKIP. It should be supported by codec, Are you familiar with this feature ? I hope to achieve frame-rate increase with this feature...

    Thanks,

    Ran

  • Hi Ran,

    By setting IVIDENC2_InArgs.control to IVIDENC2_CTRL_FORCESKIP, a given frame will be encoded with all MBs as skip Mbs.. And in this scenario, cycles consumed by encoder will be very less.. 

    this feature can be used as

    a) to reduce the frame rate,

    b) to save cycle consumption by encoder with loss of one frame information.

    Encoder doesnt support frame rate increase.

    Regards

    Deepak Poddar


  • Hi Deepak,

    According to H.264 HDVICP2 user's guide there is  refframerate and tragetframerate. I understand that it is not supported, but just wanted to ask if it is mentioned anywhere in 

    datasheet or user's guide that this feature are not supported. I wander if there is such list of unsupported features or something like that, that I missed.

    Thanks,

    Ran