Gibt es irgendwo ein Repository für ein CUDA-fähiges ffmpeg 4 auf OpenSUSE Leap oder kennt jemand das folgende Fehlerbild?
Ich habe versucht ffmpeg selber zu kompilieren mittels
--enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --enable-shared --extra-cflags=-fPIC --enable-libx264 --enable-libx265 --enable-gpl --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64Compilieren ist auch OK, allerdings bekomme ich beim Ausführen von:
./ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i 'MVI_1223.mp4' \ -vf scale_npp=1920:1072 -vcodec h264_nvenc /tmp/o0.264 -vf scale_npp=1280:720 -vcodec h264_nvenc /tmp/o1.264
dann folgende Ausgabe:
ffmpeg version n4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (SUSE Linux)
configuration: --prefix=/video --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --enable-shared --extra-cflags=-fPIC --enable-libx264 --enable-libx265 --enable-gpl --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/apache/btest/da&da/da1/MVI_1223.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.33.100
Duration: 00:00:08.70, start: 0.000000, bitrate: 3830 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1280x720, 3704 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
[h264_cuvid @ 0x125aa40] Cannot load cuvidGetDecodeStatus
[h264_cuvid @ 0x125aa40] Failed loading nvcuvid.
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
Stream #0:0 -> #1:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
Error while opening decoder for input stream #0:0 : Operation not permitted
Display More
Nvidia-Treiber: NVIDIA-Linux-x86_64-390.77
CUDA: cuda-repo-opensuse423-9-2-local-9.2.148-1.x86_64.rpm