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.

upscaling frame-rate in encoding chain

Guru 20755 points

Hello,

Using RDK, I would like to know if it is possible and how to encode frames with frame-rate higher than the original frame-rate.

Thank you,

Ran

  • This feature is not supported. Encode link only supports only reduction in frame rate not increase. There are some options which may work but it depends on your usecase.

    -- If capture is interlaced, DEI will convert 60 fields to 60 frames. By default in the DVR usecase, 30 frames are dropped and only 30 frames are used for encoding. You can choose to increase the encode fps by choosing to drop  less than 30 frames.

    -- H264 encoder has an option of generating skip frames on demand. As you are probably aware the skip frame is same content as previous frame . Using this you can generate more frames out of the encoder link but content wise it is just repeating the previous frames.

     

  • Hi Badri,

    >By default in the DVR usecase, 30 frames are dropped and only 30 frames are used

    what is the reason for dropping half of the frames in interlaced mode ?

    Thanks,

    Ran

  • This is because encode should happen at 30 frames / second but DEI generates 60 frames / second so 30 frames are dropped at output of DEI.

  • Hi Bardi,

    Thank you for all answers, it is most helpful !
    One more thing on this subject if I may ask please...

    >H264 encoder has an option of generating skip frames on demand.

    I searched the user's guide, and source-code, but only found the following parameter, which is related to bit-rate, not frame-rate. Is this the parameter you've mentioned, which can control the generate of more frames ? 

     allowFrameSkip - Controls Frame Skip. non-zero means frames can be skipped to achieve target bit-rate, zero means frame can never be skipped

    Thank you very much,

    Ran

  • To generate skip frame the parameter is IVIDENC2_InArgs.control = IVIDENC2_CTRL_FORCESKIP.This feature is supported by codec but encoder link in mcfw requires code modification to enable this.

  • Hi Badri,

    I want to update that according to answers in Mulimedia forum about H.264 codec (http://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/p/221852/784579.aspx) , codec's current version does not support any upscaling of frame-rate, whether done with skip method, or using the dedicated API for that (refframerate & targetframerate not supported yet). I hope next releases will support that. Meanwhile we'll do the frame-rate upscaling in FPGA.

    Thanks,

    Ran