I have been trying to decode h265 10bit video for my purpuse used NVIDIA GeForce RTX 3060 that gpu has all features to do this as specified here:
AND
Command to convert:
/usr/local/bin/ffmpeg -hwaccel_device 1 -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i /mnt/data/media/S2.3.mkv -map 0:s? -map 0:a -map 0:v:0 -filter:v:0 scale_cuda=w=1920:h=1080 -c:v:0 h264_nvenc -c:a aac -ac 2 -b:a 192k -c:s mov_text -dn -map_chapters -1 /tmp/1.mp4
nvidia-smi:
Wed Aug 28 11:03:35 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.67 Driver Version: 550.67 CUDA Version: 12.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 RTX 3060 Off | 00000000:03:00.0 Off | N/A |
| 0% 34C P0 31W / 170W | 1MiB / 12288MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
| 1 NVIDIA GeForce RTX 3060 Off | 00000000:81:00.0 Off | N/A |
| 0% 56C P0 40W / 170W | 1MiB / 12288MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
ffmpeg build:
ffmpeg version N-114833-g5e380bcdb1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
error:
[hevc @ 0x55a098ee2800] Unsupported film grain parameters. Ignoring film grain.
[h264_nvenc @ 0x55a097c08c80] 10 bit encode not supported
[h264_nvenc @ 0x55a097c08c80] Provided device doesn't support required NVENC features
[vost#0:6/h264_nvenc @ 0x55a097c08500] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:6 @ 0x55a097cc7500] Error sending frames to consumers: Function not implemented
[vf#0:6 @ 0x55a097cc7500] Task finished with error code: -38 (Function not implemented)
[vf#0:6 @ 0x55a097cc7500] Terminating thread with return code -38 (Function not implemented)
[vost#0:6/h264_nvenc @ 0x55a097c08500] Could not open encoder before EOF
[vost#0:6/h264_nvenc @ 0x55a097c08500] Task finished with error code: -22 (Invalid argument)
[vost#0:6/h264_nvenc @ 0x55a097c08500] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0x55a097c0c6c0] Nothing was written into output file, because at least one of its streams received no packets.