2024-02-19, 05:57 AM
Thank you for your response.
I tried to change the version of my driver but it didn't solve the problem.
Furthermore, I cannot upgrade my CUDA version to 12.3 because I am using Ubuntu 18.04 and according to the link you provided, version 12.3 is only available for Ubuntu versions 20.04 and 22.04.
nvidia-smi output:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 RTX A4000 Off | 00000000:21:00.0 On | Off |
| 41% 37C P8 20W / 140W | 1092MiB / 16376MiB | 23% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1012 G /usr/lib/xorg/Xorg 118MiB |
| 0 N/A N/A 1154 G /usr/bin/gnome-shell 131MiB |
| 0 N/A N/A 1920 G /usr/lib/xorg/Xorg 500MiB |
| 0 N/A N/A 2055 G /usr/bin/gnome-shell 74MiB |
| 0 N/A N/A 2480 G /usr/lib/firefox/firefox 240MiB |
+-----------------------------------------------------------------------------+
I am providing you with my commands and also the error that is displayed:
./ffmpeg -f v4l2 -framerate 30 -video_size 1920x1080 -i /dev/video0 -pix_fmt yuv420p -b:v 4000k -c:v omx_enc_hevc -omx_core libomxil_core.so -omx_name OMX.MainConcept.enc_hevc.video -omx_param "force_omx_param=0:acc_type=nvenc" -f rtp rtp://127.0.0.1:45000 -sdp_file saved_sdp_file
Error:
"
Trying to load mc_enc_hevc library
Trying to load /opt/mainconcept/omx/lib/mc_enc_hevc library
Trying to load demo_enc_hevc library
Can't load library nvcuvid: error 0x0:
HEVC validation error E0025: Layer 0 (Main): Unable to use hardware acceleration type 2, mode 0 due to unsupported hardware.
Last message repeated 30 times
[omx_enc_hevc @ 0x555dbf397040] OMX error 0x8000100a
[omx_enc_hevc @ 0x555dbf397040] Component cannot allocate buffers
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!
"
Regards.
I tried to change the version of my driver but it didn't solve the problem.
Furthermore, I cannot upgrade my CUDA version to 12.3 because I am using Ubuntu 18.04 and according to the link you provided, version 12.3 is only available for Ubuntu versions 20.04 and 22.04.
nvidia-smi output:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 RTX A4000 Off | 00000000:21:00.0 On | Off |
| 41% 37C P8 20W / 140W | 1092MiB / 16376MiB | 23% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1012 G /usr/lib/xorg/Xorg 118MiB |
| 0 N/A N/A 1154 G /usr/bin/gnome-shell 131MiB |
| 0 N/A N/A 1920 G /usr/lib/xorg/Xorg 500MiB |
| 0 N/A N/A 2055 G /usr/bin/gnome-shell 74MiB |
| 0 N/A N/A 2480 G /usr/lib/firefox/firefox 240MiB |
+-----------------------------------------------------------------------------+
I am providing you with my commands and also the error that is displayed:
./ffmpeg -f v4l2 -framerate 30 -video_size 1920x1080 -i /dev/video0 -pix_fmt yuv420p -b:v 4000k -c:v omx_enc_hevc -omx_core libomxil_core.so -omx_name OMX.MainConcept.enc_hevc.video -omx_param "force_omx_param=0:acc_type=nvenc" -f rtp rtp://127.0.0.1:45000 -sdp_file saved_sdp_file
Error:
"
Trying to load mc_enc_hevc library
Trying to load /opt/mainconcept/omx/lib/mc_enc_hevc library
Trying to load demo_enc_hevc library
Can't load library nvcuvid: error 0x0:
HEVC validation error E0025: Layer 0 (Main): Unable to use hardware acceleration type 2, mode 0 due to unsupported hardware.
Last message repeated 30 times
[omx_enc_hevc @ 0x555dbf397040] OMX error 0x8000100a
[omx_enc_hevc @ 0x555dbf397040] Component cannot allocate buffers
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!
"
Regards.