Gondom van a tárgybeli kódolással.
Az alábbi paranccsal próbálkozok, de sajna hibát ír ki.
ffmpeg -y -loglevel debug -hwaccel cuvid -i ${files} -c:v h264_nvenc -preset llhq -profile:v high -rc ll_2pass_quality -an -b:v 2.4M -pass 1 ${files%ts}mkv
ffmpeg -loglevel debug -hwaccel cuvid -i ${files} -c:v h264_nvenc -preset llhq -profile:v high -rc ll_2pass_quality -map 0 -acodec aac -b:a 128k -b:v 2.4M -pass 2 ${files%ts}mkv
Az utolsó sorok:
[AVFilterGraph @ 0x1e16740] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[h264_nvenc @ 0x1d809a0] Loaded Nvenc version 8.0
[h264_nvenc @ 0x1d809a0] Nvenc initialized successfully
[h264_nvenc @ 0x1d809a0] 1 CUDA capable devices found
[h264_nvenc @ 0x1d809a0] [ GPU #0 - < GeForce GT 710 > has Compute SM 3.5 ]
[h264_nvenc @ 0x1d809a0] OpenEncodeSessionEx failed: unsupported device (2)
[h264_nvenc @ 0x1d809a0] No NVENC capable devices found
[h264_nvenc @ 0x1d809a0] Nvenc unloaded
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
[AVIOContext @ 0x1d8de80] Statistics: 0 seeks, 0 writeouts
[aac @ 0x1d84f40] Qavg: -nan
[aac @ 0x1d84f40] 1 frames left in the queue on closing
[AVIOContext @ 0x1d5b420] Statistics: 3330192 bytes read, 2 seeks
Conversion failed!
Mi hiányzik, vagy mi nem jó? A CUDA a VGA által támogatott. És persze log sem készül. A loglevel debug-ra gondoltam.
$ rpm -qa | grep cuda
nvidia-current-cuda-opencl-384.111-1.mga6.nonfree
nvidia-cuda-toolkit-8.0.61-1.mga6.nonfree
$ rpm -qa | grep nvidia
dkms-nvidia-current-384.111-1.mga6.nonfree
nvidia-current-cuda-opencl-384.111-1.mga6.nonfree
nvidia-current-doc-html-384.111-1.mga6.nonfree
nvidia-cuda-toolkit-8.0.61-1.mga6.nonfree
x11-driver-video-nvidia-current-384.111-1.mga6.nonfree
$ cat /proc/cpuinfo | grep "model name"
model name : AMD Phenom(tm) 9350e Quad-Core Processor
model name : AMD Phenom(tm) 9350e Quad-Core Processor
model name : AMD Phenom(tm) 9350e Quad-Core Processor
model name : AMD Phenom(tm) 9350e Quad-Core Processor
$ dmesg | grep -i nvidia
[ 12.113378] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:10.0/0000:02:00.1/sound/card1/input9
[ 12.113525] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:10.0/0000:02:00.1/sound/card1/input10
[ 13.689111] input: HDA NVidia Front Mic as /devices/pci0000:00/0000:00:07.0/sound/card0/input12
[ 13.689240] input: HDA NVidia Rear Mic as /devices/pci0000:00/0000:00:07.0/sound/card0/input13
[ 13.689349] input: HDA NVidia Line as /devices/pci0000:00/0000:00:07.0/sound/card0/input14
[ 13.689455] input: HDA NVidia Line Out Front as /devices/pci0000:00/0000:00:07.0/sound/card0/input15
[ 13.689580] input: HDA NVidia Line Out Surround as /devices/pci0000:00/0000:00:07.0/sound/card0/input16
[ 13.691254] input: HDA NVidia Line Out CLFE as /devices/pci0000:00/0000:00:07.0/sound/card0/input17
[ 13.691381] input: HDA NVidia Line Out Side as /devices/pci0000:00/0000:00:07.0/sound/card0/input18
[ 13.691450] input: HDA NVidia Front Headphone as /devices/pci0000:00/0000:00:07.0/sound/card0/input19
[ 14.172980] nvidia: loading out-of-tree module taints kernel.
[ 14.172989] nvidia: module license 'NVIDIA' taints kernel.
[ 14.202723] nvidia-nvlink: Nvlink Core is being initialized, major device number 247
[ 14.203483] nvidia 0000:02:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 14.203754] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 384.111 Tue Dec 19 23:51:45 PST 2017 (using threaded interrupts)
[ 42.230523] caller _nv001191rm+0xe3/0x1d0 [nvidia] mapping multiple BARs
on the primary VGA device. The NVIDIA Linux graphics driver
[ 43.404042] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 384.111 Tue Dec 19 22:56:18 PST 2017
[ 43.406598] nvidia-modeset: Allocated GPU:0 (GPU-0223432b-0b1b-1cfe-29e4-11c2a303edae) @ PCI:0000:02:00.0
[ 2362.290209] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 246
[ 6719.679949] [RPM][24242]: install nvidia-cuda-toolkit-8.0.61-1.mga6.nonfree.x86_64: success
[ 6721.503740] [RPM][24242]: install nvidia-cuda-toolkit-8.0.61-1.mga6.nonfree.x86_64: success
$ lspci | grep -i nvidia
00:00.0 RAM memory: NVIDIA Corporation MCP78S [GeForce 8200] Memory Controller (rev a2)
00:01.0 ISA bridge: NVIDIA Corporation MCP78S [GeForce 8200] LPC Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation MCP78S [GeForce 8200] SMBus (rev a1)
00:01.2 RAM memory: NVIDIA Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
00:01.3 Co-processor: NVIDIA Corporation MCP78S [GeForce 8200] Co-Processor (rev a2)
00:01.4 RAM memory: NVIDIA Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
00:02.0 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1)
00:02.1 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1)
00:04.0 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1)
00:04.1 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1)
00:06.0 IDE interface: NVIDIA Corporation MCP78S [GeForce 8200] IDE (rev a1)
00:07.0 Audio device: NVIDIA Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)
00:08.0 PCI bridge: NVIDIA Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1)
00:09.0 IDE interface: NVIDIA Corporation MCP78S [GeForce 8200] SATA Controller (non-AHCI mode) (rev a2)
00:0a.0 Ethernet controller: NVIDIA Corporation MCP77 Ethernet (rev a2)
00:10.0 PCI bridge: NVIDIA Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:12.0 PCI bridge: NVIDIA Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
# modinfo nvidia_uvm
filename: /lib/modules/4.14.13-desktop-1.mga6/dkms/drivers/char/drm/nvidia-uvm.ko.xz
supported: external
license: MIT
depends: nvidia
name: nvidia_uvm
vermagic: 4.14.13-desktop-1.mga6 SMP mod_unload
parm: uvm_perf_prefetch_enable:uint
parm: uvm_perf_prefetch_threshold:uint
parm: uvm_perf_prefetch_min_faults:uint
parm: uvm_perf_thrashing_enable:uint
parm: uvm_perf_thrashing_threshold:uint
parm: uvm_perf_thrashing_pin_threshold:uint
parm: uvm_perf_thrashing_lapse_usec:uint
parm: uvm_perf_thrashing_nap_usec:uint
parm: uvm_perf_thrashing_epoch_msec:uint
parm: uvm_perf_thrashing_max_resets:uint
parm: uvm_hmm:Enable (1) or disable (0) HMM mode. Default: 0. Ignored if CONFIG_HMM is not set, or if NEXT settings conflict with HMM. (int)
parm: uvm_global_oversubscription:Enable (1) or disable (0) global oversubscription support. (int)
parm: uvm_leak_checker:Enable uvm memory leak checking. 0 = disabled, 1 = count total bytes allocated and freed, 2 = per-allocation origin tracking. (int)
parm: uvm_force_prefetch_fault_support:uint
parm: uvm_debug_enable_push_desc:Enable push description tracking (int)
parm: uvm_page_table_location:Set the location for UVM-allocated page tables. Choices are: vid, sys. (charp)
parm: uvm_perf_reenable_prefetch_faults_lapse_msec:uint
parm: uvm_perf_fault_batch_count:uint
parm: uvm_perf_fault_replay_policy:uint
parm: uvm_perf_fault_replay_update_put_ratio:uint
parm: uvm_perf_fault_max_batches_per_service:uint
parm: uvm_perf_fault_max_throttle_per_service:uint
parm: uvm_fault_force_sysmem:Force (1) using sysmem storage for pages that faulted. Default: 0. (int)
parm: uvm_enable_debug_procfs:Enable debug procfs entries in /proc/driver/nvidia-uvm (int)
parm: uvm8_ats_mode:Enable ATS (Address Translation Services) UVM mode by setting this to 1 (int)
parm: uvm_driver_mode:Set the uvm kernel driver mode. Choices include: 8 (charp)
parm: uvm_debug_prints:Enable uvm debug prints. (int)
parm: uvm_enable_builtin_tests:Enable the UVM built-in tests. (This is a security risk) (int)
parm: uvm_perf_access_counter_batch_count:uint