I’m building FFMPEG from the latest GitHub master and all seems to be working well. CUDA hardware acceleration is detected and added.
./ffmpeg -decoders | grep cuvid
yields
ffmpeg version N-81991-gea86303 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/home/torstein/mpv-build/build_libs --enable-static --disable-shared --enable-gpl --disable-debug --disable-doc --enable-vdpau --enable-libass --enable-nonfree --enable-cuda --enable-cuvid --enable-nvenc --enable-gnutls
libavutil 55. 32.101 / 55. 32.101
libavcodec 57. 61.103 / 57. 61.103
libavformat 57. 52.100 / 57. 52.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 63.100 / 6. 63.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 2.100 / 2. 2.100
libpostproc 54. 0.100 / 54. 0.100
V..... h263_cuvid Nvidia CUVID H263 decoder (codec h263)
V..... h264_cuvid Nvidia CUVID H264 decoder (codec h264)
V..... hevc_cuvid Nvidia CUVID HEVC decoder (codec hevc)
V..... mjpeg_cuvid Nvidia CUVID MJPEG decoder (codec mjpeg)
V..... mpeg1_cuvid Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)
V..... mpeg2_cuvid Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)
V..... mpeg4_cuvid Nvidia CUVID MPEG4 decoder (codec mpeg4)
V..... vc1_cuvid Nvidia CUVID VC1 decoder (codec vc1)
V..... vp8_cuvid Nvidia CUVID VP8 decoder (codec vp8)
V..... vp9_cuvid Nvidia CUVID VP9 decoder (codec vp9)
and
./ffmpeg -hwaccels
yields
Hardware acceleration methods:
vdpau
vaapi
cuvid
Running the CUDA samples from ‘/usr/local/cuda/samples’ works as well:
sudo make && ./1_Utilities/deviceQuery/deviceQuery
Result = PASS
For the mpv video player I use
mpv --no-config --vo=opengl --hwdec=cuda myfile.mkv
Playing x264 files using CUDA hwaccel works fine:
But when I try x265/HEVC files I get the error:
[ffmpeg/video] hevc_cuvid: ctx->cvdl->cuvidCreateDecoder(&cudec, &cuinfo) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
[vd] Could not open codec.
HEVC play log: hevc - Pastebin.com
FFMpeg config.log: http://pastebin.com/ent6DNHg
System information:
GTX 770
Driver: 370.28-1
Cuda: 8.0.44-1
Other packages: packages - Pastebin.com
Linux Mint 18 x64 Cinnamon
Please tell me if you need any other information.