jetson nano encode h264 video framerate can not change.

When I used jetson nano to encode one h264 file, I set framerate to 30fps, but the output of encoder is always 25fps, why? who can tell me?

Hi,
Please share the command you run to generate h264 stream and how you check the framerate.

Hi,
I used the command to encode:
./video_encode 1080_12.yuv 1920 1080 H264 out_12.h264 -br 1600000 -p high -ifi 90 -fps 30 1

check framerate:
ffprobe -i out_12.h264
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
built with gcc 7 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)
configuration: --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
Input #0, h264, from ‘12.264’:
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 50 tbc

the output fps: 25.

Do you have tested the framerate using the sample: tegra_multimedia_api/samples/01_video_encode ?

Hi,
For h264, it should work by adding ‘–insert-vui’.
For h265, please check [MMAPI] h265 encode: timing_info_present_flag in VUI at
https://elinux.org/Jetson_AGX_Xavier/r32.1_patch

ok.
thanks.

And I have another question:
I compare the encode video quality(PSNR) between: jetson nano and NVIDIA Tesla P4.
But the quality of jetson nano encodeing is worse than P4.
Do you know what’s the matter?

thanks for replay.

For video quality, let’s go to [url]https://devtalk.nvidia.com/default/topic/1051588/[/url]