[FFmpeg-trac] #7530(avcodec:new): cuviddec/nvdec/nvenc: driver checking errors

FFmpeg trac at avcodec.org
Fri Nov 2 15:04:10 EET 2018


#7530: cuviddec/nvdec/nvenc: driver checking errors
------------------------------------+-----------------------------------
             Reporter:  msiders     |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  nvenc       |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by msiders):

 Replying to [comment:1 cehoyos]:
 > Note sure I understand: Current FFmpeg shows the correct error message
 and therefor works as expected?
 >
 > Please provide the tested command line together with the complete, uncut
 console output.

 {{{
 $ ffmpeg -loglevel debug -hwaccel cuvid -c:v h264_cuvid -i input.ts c:v
 h264_nvenc -f mpegts output.ts

 ffmpeg version N-92330-gd6d407d Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 4.7 (Debian 4.7.2-5)
   configuration: --enable-static --disable-shared --disable-doc --disable-
 dxva2 --enable-small --enable-pthreads --enable-stripping --enable-bsfs
 --disable-devices --disable-hwaccels --disable-ffprobe --enable-gpl
 --enable-libx264 --enable-cuda --enable-nonfree --enable-cuvid --enable-
 nvenc --extra-cflags=-I/usr/local/cuda/include/ --extra-
 ldflags=-L/usr/local/cuda/lib64/
   libavutil      56. 23.100 / 56. 23.100
   libavcodec     58. 36.100 / 58. 36.100
   libavformat    58. 21.100 / 58. 21.100
   libavdevice    58.  6.100 / 58.  6.100
   libavfilter     7. 41.100 /  7. 41.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
 accelerated decoding) with argument 'cuvid'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'h264_cuvid'.
 Reading option '-i' ... matched as input url with argument 'input.ts'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'h264_nvenc'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'mpegts'.
 Reading option 'output.ts' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input url input.ts.
 Applying option hwaccel (use HW accelerated decoding) with argument cuvid.
 Applying option c:v (codec name) with argument h264_cuvid.
 Successfully parsed a group of options.
 Opening an input file: input.ts.
 [NULL @ 0x1e6e6c0] Opening 'input.ts' for reading

 [...]

 Successfully opened the file.
 [h264_cuvid @ 0x1eec3c0] Initializing cuvid hwaccel
 [AVHWDeviceContext @ 0x1f2d000] Loaded lib: libcuda.so.1
 [AVHWDeviceContext @ 0x1f2d000] Loaded sym: cuInit
 [AVHWDeviceContext @ 0x1f2d000] Loaded sym: cuDeviceGetCount
 [AVHWDeviceContext @ 0x1f2d000] Loaded sym: cuDeviceGet
 [AVHWDeviceContext @ 0x1f2d000] Loaded sym: cuDeviceGetName
 [AVHWDeviceContext @ 0x1f2d000] Cannot load cuDeviceGetUuid
 [AVHWDeviceContext @ 0x1f2d000] Could not dynamically load CUDA
 [h264_cuvid @ 0x1eec3c0] Error creating a CUDA device
 cuvid hwaccel requested for input stream #0:0, but cannot be initialized.
 [h264_cuvid @ 0x1eec3c0] ff_get_format failed: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
 Error while opening decoder for input stream #0:9 : Operation not
 permitted
 [AVIOContext @ 0x1edf080] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 0x1e77400] Statistics: 8614320 bytes read, 4 seeks
 }}}

 This is the output with the last git-master compiled today. It fails, but
 only because the ancient nvidia driver. And the error doesn't print
 anything about the cause (the driver missmatch).

 Running in the same computer, the same command, with a binary version of
 FFmpeg compiled in the same environment one year a go runs perfectly. So
 the problem is the driver version.

 Please, if you need more information, let me know.
 Best.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7530#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list