jrottenberg / ffmpeg

Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi
https://hub.docker.com/r/jrottenberg/ffmpeg/
Apache License 2.0
1.38k stars 452 forks source link

How to use full hardware acceleration? #270

Open elin72215 opened 3 years ago

elin72215 commented 3 years ago

OS:CentOS7 Device:Testla K80 Driver:NVIDIA-Linux-x86_64-410.104 NVIDIA-SMI 410.104 Driver Version: 410.104 CUDA Version: 10.0 I have done these steps:

But when I use sample-liked command:

I only get this message: ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (GCC) configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-libsrt --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 [wmv3 @ 0xe17ec0] Extra data: 8 bits left, value: 0 Guessed Channel Layout for Input Stream #0.0 : mono Unrecognized hwaccel: cuvid. Supported hwaccels:

Is there any solution to resolve this? Or what settings should I set?