I used to run OBS and ffmpeg on Ubuntu 21.10 and older ubuntu linux distribution on
21.10 the Nvidia 470 is working and I can run OBS for streaming and Davinci Resolve 18 fine.
But lifetime is ower for 21.10 kernal and was force to update my Linux.
I can install Nvidia 470 and even Nvidia 510 on Ubuntu 22.04 - I have tried Mint, PopOs and none of them allows me to do any encoding like I was able to do on ubunto 21.10 so I am very sad I can enjoy the cards with newer Ubuntu 22.04 LTS every thing else is working fine.
The ffmpeg is and OBS is from the normal ppa repositori - the bug or problem maybe only on GTX 1660 ti and the GTX 1660 super.
I installed the sudo apt install nvidia-modprobe as it was not installed
I can se lsmod the nvidia-uvm module is loaded
When i try get this error
dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
warning: [NVENC encoder: ‘streaming_h264’] Failed to open NVENC codec: Unknown error occurred
[h264_nvenc @ 0x5579fc2c5b40] The selected preset is deprecated. Use p1 to p7 + -tune or fast/medium/slow.
[h264_nvenc @ 0x5579fc2c5b40] dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
I installed the sudo apt install nvidia-modprobe as it was not installed
I can se lsmod the nvidia-uvm module is loaded
When i try get this error
dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
warning: [NVENC encoder: ‘streaming_h264’] Failed to open NVENC codec: Unknown error occurred
[h264_nvenc @ 0x5579fc2c5b40] The selected preset is deprecated. Use p1 to p7 + -tune or fast/medium/slow.
[h264_nvenc @ 0x5579fc2c5b40] dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
00:00.0 RAM memory: NVIDIA Corporation MCP61 Host Bridge (rev a1)
Subsystem: ASUSTeK Computer Inc. M4N68T series motherboard
You have an old board with an nvidia chipset. For whatever reasons, cuda broke on those after ~460 driver.
Seemingly not fixed in latest driver, did you try with that?
Well I have another computer with another board also gtx1660 super and this have the same problems bug
Also the M4N68T have been working before with ubuntu 21.10 and running obs with the nvidia 470 but I was forced to update to as the 21.10 is not supported anymore.
I installed the sudo apt install nvidia-modprobe as it was not installed
I can se lsmod the nvidia-uvm module is loaded
When i try get this error
dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
warning: [NVENC encoder: ‘streaming_h264’] Failed to open NVENC codec: Unknown error occurred
[h264_nvenc @ 0x5579fc2c5b40] The selected preset is deprecated. Use p1 to p7 + -tune or fast/medium/slow.
[h264_nvenc @ 0x5579fc2c5b40] dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
I have even run older Davincy Resolve 15 on the M4N68T boad with the GTX 1660 TI and possible nvidia 450/460 driver but I cant remeber what chipset on the other system but its intel i7 with the gtx 1660 super and it running nvidia 470 but - if I upgrade this to newer ubuntu 22.04 I will have the same problems with my gtx cards - it maybe old hardware but Davincy Resolve 18 need more memory than the old 15 needed.
Anyway the computer with M4N68T is mainly used for OBS SRT input streams and NDI and then outgoing streams. The only problem is when I try to record or stream every thing else is working fine.
I have been running and enjoyed the h264_nvenc encoding from Ubuntu 18 to 21.10 using kdenlive rendering and or ffmpeg it have been working with this motherbord so it very strange this not work anymore so I think something have been changed - I don’t know if I change to windows and windows drivers if it would work but it can see its nvidia but the dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized must be a hint on why the gtx 1660 is not working as it have been working before.
I can download ubuntu the 21.10 but its EOL so its not a good solution today.
Usually, CUDA_ERROR_SYSTEM_NOT_READY is only displayed on nvswitch systems where the fabric-manager is not running. So I suspect the driver falsely detects the nvidia chipset as nvswitch system.
Also its little strange that the nvidia 470 on 21.10 is working but the same 470 driver does not work on 22.04 LTS but like you can see everything is working fine from the logs but not the encoding part - decoding must be working as NDI and SRT input works fine also using hardware. - I don’t know if other nvidia cards may work more perfect using the encoding part.
Maybe I should try to recompile the ffmpeg but if I do
sudo apt install nvidia-cuda-toolkit it will unistall my nvidia470 driver and force me to nvidia515
and also don’t remeber to have all the cuda stuff when I compiled ffmpeg on older linux versions.
I tried this
ffmpeg -y -hwaccel cuda -i 2022-08-09\ 17-12-07.mkv out.mp4