Unable to set the video frameRate in encoding

Hi, I am using the Jetson MMAPI enocder sample and can encode and save my videos successfully. I don’t use a camera stream for my sample and just feed the encoder with some frames that I read from the harddisk. I have noticed that the frameRate of the output is always fixed at 25!
I explicitly set it using
ret = ctx.enc->setFrameRate(10, 1);
but no matter what value I enter, it is always 25. I also set the timestamps according to my desired frameRate but to no avail. The speed of the frame feeding is also slower than 25 fps, but yet the final video has 25 frames per second. How can I set the fps?

Hi,
The information of frame rate is in VUI. Please set –insert-vui

Thanks. That worked.

One last question, is this -vui setting also involved anyhow with the quality of the encoded frames?

Hi,

No, quality is dominated by q value, which is stored in each frame.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.