[FFmpeg-user] Driver does not support the required nvenc API version

Mahmood Naderan mahmood.nt at gmail.com
Fri Dec 20 20:24:22 EET 2019


I don't have root access. What should I do to use older ffmpeg and existing
nv-codec?

Regards,
Mahmood




On Fri, Dec 20, 2019 at 9:51 PM Dennis Mungai <dmngaie at gmail.com> wrote:

> On Fri, 20 Dec 2019, 20:58 Mahmood Naderan, <mahmood.nt at gmail.com> wrote:
>
> > Hi
> > I use this command which fails with this error message
> >
> > $ ./ffmpeg -init_hw_device cuda=0 -filter_hw_device 0 -i vid1080.mp4 -vf
> >  format=nv12,hwupload,scale_npp=1280:720 -c:v h264_nvenc 720p2.mp4
> > ffmpeg version N-96097-g99f505d2df Copyright (c) 2000-2019 the FFmpeg
> > developers
> >   built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
> >   configuration: --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm
> > --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree
> > --enable-libnpp --extra-cflags=-I/home/mahmood/cuda-10.1.168/include
> > --extra-cflags=-I/home/mahmood/nv_codec_headers/include/ffnvcodec/
> > --extra-ldflags=-L/home/mahmood/cuda-10.1.168/lib64/
> >   libavutil      56. 36.101 / 56. 36.101
> >   libavcodec     58. 65.100 / 58. 65.100
> >   libavformat    58. 35.101 / 58. 35.101
> >   libavdevice    58.  9.101 / 58.  9.101
> >   libavfilter     7. 69.101 /  7. 69.101
> >   libswscale      5.  6.100 /  5.  6.100
> >   libswresample   3.  6.100 /  3.  6.100
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vid1080.mp4':
> >   Metadata:
> >     major_brand     : dash
> >     minor_version   : 0
> >     compatible_brands: iso6avc1mp41
> >     creation_time   : 2013-10-09T23:07:01.000000Z
> >   Duration: 00:00:54.51, start: 0.000000, bitrate: 3997 kb/s
> >     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661),
> > yuv420p(progressive), 1920x1080, 234 kb/s, 23.97 fps, 23.97 tbr, 90k tbn,
> > 47.95 tbc (default)
> >     Metadata:
> >       creation_time   : 2013-10-09T23:07:01.000000Z
> >       handler_name    : VideoHandler
> > Stream mapping:
> >   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
> > Press [q] to stop, [?] for help
> > [h264_nvenc @ 0x55634c4b3340] Driver does not support the required nvenc
> > API version. Required: 9.1 Found: 9.0
> > [h264_nvenc @ 0x55634c4b3340] The minimum required Nvidia driver for
> nvenc
> > is 435.21 or newer
> > Error initializing output stream 0:0 -- Error while opening encoder for
> > output stream #0:0 - maybe incorrect parameters such as bit_rate, rate,
> > width or height
> > Conversion failed!
> >
> >
> >
> >
> > I get nv-code-headers from
> >
> > $ git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
> > Modified PREFIX = /home/mahmood/nv_codec_headers
> > $ make
> > $ make install
> >
> >
> > Also, nvidia-smi shows
> >
> > $ nvidia-smi
> > Fri Dec 20 18:57:10 2019
> >
> >
> +-----------------------------------------------------------------------------+
> > | NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1
> >   |
> >
> >
> |-------------------------------+----------------------+----------------------+
> > | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr.
> > ECC |
> > | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util
> Compute
> > M. |
> >
> >
> |===============================+======================+======================|
> > |   0  GeForce RTX 208...  On   | 00000000:3B:00.0 Off |
> >  N/A |
> > | 28%   28C    P8    18W / 250W |      0MiB / 10989MiB |      0%
> >  Default |
> >
> >
> +-------------------------------+----------------------+----------------------+
> > |   1  TITAN V             On   | 00000000:AF:00.0 Off |
> >  N/A |
> > | 35%   50C    P2    56W / 250W |   7422MiB / 12036MiB |     80%
> >  Default |
> >
> >
> +-------------------------------+----------------------+----------------------+
> >
> >
> >
> > So, what are 9.1 and 9.0?
> >
> > Regards,
> > Mahmood
> >
>
>
> Upgrade your driver.
> At the minimum you'll need R435, recommended R440 (with Turing).
>
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list