[FFmpeg-devel] [PATCH] avcodec/nvenc: Update the encoder to use the framerate (if available) in the codec context
Derek Buitenhuis
derek.buitenhuis at gmail.com
Thu May 14 22:27:31 EEST 2020
On 14/05/2020 19:15, Zachariah Brown wrote:
> The h264_nvenc and hevc_nvenc encoders aren't respecting the framerate in the codec context. Instead it was using the timebase which in our use-case was 1/1000 so the encoder was behaving as if we wanted 1000fps. This resulted in poor encoding results due to an extremely low bitrate.
>
> Both the amf and qsv encoders already contain similar logic to first check the framerate before falling back to the timebase.
>
> Signed-off-by: Zachariah Brown <zachariah at renewedvision.com>
> ---
> libavcodec/nvenc.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
Every other encoder does this, so looks OK.
- Derek
More information about the ffmpeg-devel
mailing list