[FFmpeg-trac] #8957(avcodec:new): Regression in nvenc
FFmpeg
trac at avcodec.org
Fri Oct 30 15:15:52 EET 2020
#8957: Regression in nvenc
-------------------------------------+-------------------------------------
Reporter: Urbanite316 | Type: defect
Status: new | Priority: important
Component: avcodec | Version: git-
Keywords: nvenc | master
regression | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When using h264_nvenc or hevc_nvenc a slowdown of 50fps to 100fps was
introduced with commit
[https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/1bf86ee907709e37c0104908e56ec77d5d854c87
avcodec/nvenc: removed unused and deprecated field]
How to reproduce:
Run a transcode on versions built before and after the stated commit,
example below is what I specifically used.
{{{
ffmpeg.exe -loglevel error -stats -i <input.mkv> -map 0:0 -c:v hevc_nvenc
-pix_fmt:v p010le -b:v 6000k -maxrate:v 18000k -preset:v p5 -rc:v vbr
-color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709
-metadata:s:v title= -disposition:v default -map 0:1 -c:a:0 ac3 -b:a:0
640k -metadata:s:a:0 title= -disposition:a:0 default -sn -metadata:g
title= -default_mode passthrough <output.mkv>
}}}
Multiple users I associate with have confirmed this regression. It can
also be seen in both the [https://www.gyan.dev/ffmpeg/builds/ gyan.dev]
version and [https://github.com/BtbN/FFmpeg-Builds/releases BtbN] version.
With the BtbN version the [https://github.com/BtbN/FFmpeg-
Builds/releases/tag/autobuild-2020-10-21-12-32 Auto-Build 2020-10-21
12:32] is prior to the regression the [https://github.com/BtbN/FFmpeg-
Builds/releases/tag/autobuild-2020-10-28-12-36 Auto-Build 2020-10-28
12:36] contains the regression.
version output from working version built from commit
[https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/cde3c080338154cc73103939f6ab26ae5bb718cd
avcodec/nvenc: mark newly deprecated rc modes]
{{{
ffmpeg version N-99689-gcde3c08033-ffmpeg-windows-build-helpers Copyright
(c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-
debug --disable-w32threads --arch=x86_64 --target-os=mingw32 --cross-
prefix=/home/<user>/ffmpeg-windows-build-
helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig
--enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-
libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-
libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-
libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-liblensfun
--enable-libvmaf --enable-libsrt --enable-libaribb24 --enable-demuxer=dash
--enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm
--enable-libaom --enable-libvpx --enable-nvenc --enable-nvdec --extra-
libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-
frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libdavs2
--enable-libxavs2 --enable-libxavs --enable-avresample --extra-
cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-
shared --prefix=/home/<user>/ffmpeg-windows-build-
helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
libavutil 56. 60.100 / 56. 60.100
libavcodec 58.111.101 / 58.111.101
libavformat 58. 62.100 / 58. 62.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 88.100 / 7. 88.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
}}}
version output from latest version built from commit
[https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/bb6edf618a2a2effbe857e1249fda05782a7dbbc
avcodec/nvenc: all presets are SDK10 presets now]
{{{
ffmpeg version N-99803-gbb6edf618a-ffmpeg-windows-build-helpers Copyright
(c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-
debug --disable-w32threads --arch=x86_64 --target-os=mingw32 --cross-
prefix=/home/<user>/ffmpeg-windows-build-
helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig
--enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-
libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-
libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-
libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-liblensfun
--enable-libvmaf --enable-libsrt --enable-libaribb24 --enable-demuxer=dash
--enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm
--enable-libaom --enable-libvpx --enable-nvenc --enable-nvdec --extra-
libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-
frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libdavs2
--enable-libxavs2 --enable-libxavs --enable-avresample --extra-
cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-
shared --prefix=/home/<user>/ffmpeg-windows-build-
helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
libavutil 56. 60.100 / 56. 60.100
libavcodec 58.112.100 / 58.112.100
libavformat 58. 64.100 / 58. 64.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 88.100 / 7. 88.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8957>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list