[FFmpeg-trac] #5926(ffmpeg:new): Encoding with nvenc results in 'Codec not supported'

FFmpeg trac at avcodec.org
Thu Nov 3 07:58:13 EET 2016

#5926: Encoding with nvenc results in 'Codec not supported'
             Reporter:  alexjs  |                     Type:  defect
               Status:  new     |                 Priority:  normal
            Component:  ffmpeg  |                  Version:  git-master
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
 Attempting to use hevc_nvenc codec results in 'No NVENC capable devices

 This is mentioned on https://trac.ffmpeg.org/wiki/HWAccelIntro as being
 resolvable by:

 Note: If you get the No NVENC capable devices found error make sure you're
 encoding to a supported pixel format. See encoder info as shown above.

 However the problem occurs with all pixel formats and all variants
 (h264_nvenc too, e.g.). The driver version hits the minimum requirement
 for nvenc mentioned in various documents on the Internet.

 How to reproduce:
 % ffmpeg -i in/Foreman_ProRes.mov -c:v hevc_nvenc -profile main
 -pixel_format yuv420p -preset default out/output.mp4 -v 56


 [hevc_nvenc @ 0x23c2880] Loaded Nvenc version 7.0
 [hevc_nvenc @ 0x23c2880] Nvenc initialized successfully
 [hevc_nvenc @ 0x23c2880] 1 CUDA capable devices found
 [hevc_nvenc @ 0x23c2880] [ GPU #0 - < GRID K520 > has Compute SM 3.0 ]
 [hevc_nvenc @ 0x23c2880] Codec not supported
 [hevc_nvenc @ 0x23c2880] No NVENC capable devices found
 [hevc_nvenc @ 0x23c2880] Nvenc unloaded
 Stream mapping:
   Stream #0:0 -> #0:0 (prores (native) -> hevc (hevc_nvenc))
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height


 ffmpeg version: N-82215-g3932ccc Copyright (c) 2000-2016 the FFmpeg
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
 built on ...

 Configuration [matches Standard Ubuntu, but with nvenc]:
 --prefix=/home/ubuntu/ffmpeg_build --extra-
 cflags=-I/home/ubuntu/ffmpeg_build/include --extra-
 ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --extra-
 libs=-ldl --disable-decoder=libopenjpeg --disable-decoder=libschroedinger
 --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
 --enable-libcdio --enable-libflite --enable-libfontconfig --enable-
 libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
 libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus
 --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-
 libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-
 libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-
 libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-
 libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
 --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r
 --enable-libx264 --enable-libopencv --enable-gpl

 Encoding on: Nvidia GRID K520 (AWS G2 instance)
 Nvidia details:  NVIDIA-SMI 367.57                 Driver Version: 367.57
 SDK Details: Video_Codec_SDK_7.0.1


Ticket URL: <https://trac.ffmpeg.org/ticket/5926>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list