Danke dir. Bei mir schaut es so aus:
Code: Alles auswählen
chairman@debian:/tmp/openwrt$ whereis cuda
cuda: /usr/lib/cuda /usr/include/cuda.h /usr/include/cuda
/usr/local/cuda existiert bei mir nicht.
Ich compile mal mit angepassten Parametern.
EDIT: Selbst mit neuem Pfad ist das gleiche Problem.
Code: Alles auswählen
chairman@debian:~/Videos$ ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i 2021-07-15\ 20-11-48.mkv -c:a copy -c:v h264_nvenc -b:v 5M output.mp4
ffmpeg version N-103290-gc64d56a2f5 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/lib/cuda/include --extra-ldflags=-L/usr/lib/cuda/lib64
libavutil 57. 4.101 / 57. 4.101
libavcodec 59. 5.100 / 59. 5.100
libavformat 59. 4.101 / 59. 4.101
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 2.100 / 8. 2.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
Input #0, matroska,webm, from '2021-07-15 20-11-48.mkv':
Metadata:
ENCODER : Lavf58.45.100
Duration: 00:00:45.02, start: 0.000000, bitrate: 25592 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 2560x1440, 60 fps, 60 tbr, 1k tbn (default)
Metadata:
DURATION : 00:00:45.017000000
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Metadata:
title : Track1
DURATION : 00:00:44.949000000
Stream #0:2: Audio: aac (LC), 48000 Hz, stereo, fltp
Metadata:
title : Track2
DURATION : 00:00:44.949000000
Stream #0:3: Audio: aac (LC), 48000 Hz, stereo, fltp
Metadata:
title : Track3
DURATION : 00:00:44.949000000
Stream #0:4: Audio: aac (LC), 48000 Hz, stereo, fltp
Metadata:
title : Track4
DURATION : 00:00:44.949000000
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264_nvenc @ 0x557cc8ac5b00] Driver does not support the required nvenc API version. Required: 11.1 Found: 11.0
[h264_nvenc @ 0x557cc8ac5b00] The minimum required Nvidia driver for nvenc is 470.57.02 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!
EDIT2:
Ich habe jetzt mal einfach den driver aus dem sid genommen, habe gesehn dass der sonst auch nur die anderen NVIDIA Pakete aktualisiert, daher habe ich da kein Risiko gesehen.
Code: Alles auswählen
Press [q] to stop, [?] for help
[h264_nvenc @ 0x55ad5035cb00] Driver does not support the required nvenc API version. Required: 11.1 Found: 11.0
[h264_nvenc @ 0x55ad5035cb00] The minimum required Nvidia driver for nvenc is 470.57.02 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!
chairman@debian:~/Videos$ nvidia-smi
Fri Aug 20 10:04:43 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:0B:00.0 On | N/A |
| 0% 50C P8 16W / 310W | 435MiB / 7959MiB | 5% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1146 G /usr/lib/xorg/Xorg 229MiB |
| 0 N/A N/A 1379 G /usr/bin/gnome-shell 200MiB |
| 0 N/A N/A 3208 G ...b/firefox-esr/firefox-esr 3MiB |
+-----------------------------------------------------------------------------+
chairman@debian:~/Videos$
strace zeigt das hier:
Code: Alles auswählen
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnvidia-encode.so.1", O_RDONLY|O_CLOEXEC) = 27
EDIT3:
Nach Update von nvidia-driver und dependencies, und von libnvidia-encode1 sieht es nun so aus:
Code: Alles auswählen
chairman@debian:~/Videos$ ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i 2021-07-15\ 20-11-48.mkv -c:a copy -c:v h264_nvenc -b:v 5M output.mp4
ffmpeg version N-103290-gc64d56a2f5 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/lib/cuda/include --extra-ldflags=-L/usr/lib/cuda/lib64
libavutil 57. 4.101 / 57. 4.101
libavcodec 59. 5.100 / 59. 5.100
libavformat 59. 4.101 / 59. 4.101
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 2.100 / 8. 2.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
Input #0, matroska,webm, from '2021-07-15 20-11-48.mkv':
Metadata:
ENCODER : Lavf58.45.100
Duration: 00:00:45.02, start: 0.000000, bitrate: 25592 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 2560x1440, 60 fps, 60 tbr, 1k tbn (default)
Metadata:
DURATION : 00:00:45.017000000
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Metadata:
title : Track1
DURATION : 00:00:44.949000000
Stream #0:2: Audio: aac (LC), 48000 Hz, stereo, fltp
Metadata:
title : Track2
DURATION : 00:00:44.949000000
Stream #0:3: Audio: aac (LC), 48000 Hz, stereo, fltp
Metadata:
title : Track3
DURATION : 00:00:44.949000000
Stream #0:4: Audio: aac (LC), 48000 Hz, stereo, fltp
Metadata:
title : Track4
DURATION : 00:00:44.949000000
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf59.4.101
Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), cuda(tv, bt709, progressive), 2560x1440, q=2-31, 5000 kb/s, 60 fps, 15360 tbn (default)
Metadata:
DURATION : 00:00:45.017000000
encoder : Lavc59.5.100 h264_nvenc
Side data:
cpb: bitrate max/min/avg: 0/0/5000000 buffer size: 10000000 vbv_delay: N/A
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp (default)
Metadata:
title : Track1
DURATION : 00:00:44.949000000
[h264 @ 0x55c344672c40] No decoder surfaces left0:00:00.25 bitrate= 1.5kbits/s speed=4.43x
[h264 @ 0x55c344691540] No decoder surfaces left
[h264 @ 0x55c3446afe40] No decoder surfaces left
[h264 @ 0x55c3446ce740] No decoder surfaces left
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x55c344654340] No decoder surfaces left
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x55c344672c40] No decoder surfaces left
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x55c344691540] No decoder surfaces left
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x55c3446afe40] No decoder surfaces left
Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!
Code: Alles auswählen
libcuda1/unstable,now 470.57.02-2 amd64 [installed,automatic]
libcuda1/unstable,now 470.57.02-2 i386 [installed,automatic]
libegl-nvidia0/unstable,now 470.57.02-2 amd64 [installed]
libegl-nvidia0/unstable,now 470.57.02-2 i386 [installed]
libgl1-nvidia-glvnd-glx/unstable,now 470.57.02-2 amd64 [installed]
libgl1-nvidia-glvnd-glx/unstable,now 470.57.02-2 i386 [installed]
libgles-nvidia1/unstable,now 470.57.02-2 amd64 [installed]
libgles-nvidia1/unstable,now 470.57.02-2 i386 [installed]
libgles-nvidia2/unstable,now 470.57.02-2 amd64 [installed]
libgles-nvidia2/unstable,now 470.57.02-2 i386 [installed]
libglx-nvidia0/unstable,now 470.57.02-2 amd64 [installed]
libglx-nvidia0/unstable,now 470.57.02-2 i386 [installed]
libnvcuvid1/unstable,now 470.57.02-2 amd64 [installed]
libnvcuvid1/unstable,now 470.57.02-2 i386 [installed,automatic]
libnvidia-cfg1/unstable,now 470.57.02-2 amd64 [installed]
libnvidia-compiler/unstable,now 470.57.02-2 amd64 [installed,automatic]
libnvidia-eglcore/unstable,now 470.57.02-2 amd64 [installed]
libnvidia-eglcore/unstable,now 470.57.02-2 i386 [installed]
libnvidia-encode1/unstable,now 470.57.02-2 amd64 [installed]
libnvidia-encode1/unstable,now 470.57.02-2 i386 [installed]
libnvidia-glcore/unstable,now 470.57.02-2 amd64 [installed]
libnvidia-glcore/unstable,now 470.57.02-2 i386 [installed]
libnvidia-glvkspirv/unstable,now 470.57.02-2 amd64 [installed,automatic]
libnvidia-glvkspirv/unstable,now 470.57.02-2 i386 [installed,automatic]
libnvidia-ml1/unstable,now 470.57.02-2 amd64 [installed,automatic]
libnvidia-ptxjitcompiler1/unstable,now 470.57.02-2 amd64 [installed,automatic]
libnvidia-ptxjitcompiler1/unstable,now 470.57.02-2 i386 [installed,automatic]
libxnvctrl0/unstable,now 470.57.02-2 amd64 [installed,automatic]
nvidia-alternative/unstable,now 470.57.02-2 amd64 [installed,automatic]
nvidia-detect/unstable,now 470.57.02-2 amd64 [installed]
nvidia-driver-bin/unstable,now 470.57.02-2 amd64 [installed]
nvidia-driver-libs/unstable,now 470.57.02-2 amd64 [installed]
nvidia-driver-libs/unstable,now 470.57.02-2 i386 [installed]
nvidia-driver/unstable,now 470.57.02-2 amd64 [installed]
nvidia-egl-common/unstable,now 470.57.02-2 amd64 [installed]
nvidia-egl-icd/unstable,now 470.57.02-2 amd64 [installed]
nvidia-egl-icd/unstable,now 470.57.02-2 i386 [installed]
nvidia-kernel-dkms/unstable,now 470.57.02-2 amd64 [installed,automatic]
nvidia-kernel-support/unstable,now 470.57.02-2 amd64 [installed,automatic]
nvidia-legacy-check/unstable,now 470.57.02-2 amd64 [installed,automatic]
nvidia-modprobe/unstable,now 470.57.02-1 amd64 [installed,automatic]
nvidia-opencl-common/unstable,now 470.57.02-2 amd64 [installed]
nvidia-opencl-icd/unstable,now 470.57.02-2 amd64 [installed]
nvidia-persistenced/unstable,now 470.57.02-1 amd64 [installed]
nvidia-settings/unstable,now 470.57.02-2 amd64 [installed]
nvidia-smi/unstable,now 470.57.02-2 amd64 [installed]
nvidia-vdpau-driver/unstable,now 470.57.02-2 amd64 [installed]
nvidia-vulkan-common/unstable,now 470.57.02-2 amd64 [installed,automatic]
nvidia-vulkan-icd/unstable,now 470.57.02-2 amd64 [installed]
nvidia-vulkan-icd/unstable,now 470.57.02-2 i386 [installed]
xserver-xorg-video-nvidia/unstable,now 470.57.02-2 amd64 [installed,automatic]