Jetson Orin 64 (dev) ffmpeg nvenc h264 codec issues

Hi,

I’ve searched and found topics on my problem, but none of the solutions in any of them has solved my problem so far:

trying to encode anything using h264_nvenc (ffmpeg) leads to “Cannot load libnvidia-encode.so.1”. Furthermore it will throw: “The minimum required Nvidia driver for nvenc is 5xxxx or newer” – I’ve tried building ffmpeg based on several different nv codec dists - the lower I downgrade (currently 12.0) the lower the not fullfilled minimum requirement is in that message (went from 55x. down to 53x.).

I have tried manually installing a different cuda version, adding the corresponding lib folders to path, re-flashing my jetson, and several ffmpeg build configs.

I am running Jetson 6.0 (which I can’t upgrade since I’m working on an Aetina PX21, the current Jetpack Patch is 6.0)

ffmpeg -decoders | grep nvdec prints:
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
libavutil 59. 44.100 / 59. 44.100
libavcodec 61. 22.100 / 61. 22.100
libavformat 61. 9.100 / 61. 9.100
libavdevice 61. 4.100 / 61. 4.100
libavfilter 10. 6.100 / 10. 6.100
libswscale 8. 6.100 / 8. 6.100
libswresample 5. 4.100 / 5. 4.100

nvidia-smi:

±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 540.3.0 Driver Version: N/A CUDA Version: 12.2 |
|-----------------------------------------±---------------------±---------------------+
| 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 Orin (nvgpu) N/A | N/A N/A | N/A |
| N/A N/A N/A N/A / N/A | Not Supported | N/A N/A |
| | | N/A |
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
±--------------------------------------------------------------------------------------+

I’ve been trying to get this to work for a while now, any help would be more than welcome!

Hi,
For now we support hardware decoding in ffmpeg. Please check

Accelerated Decode with ffmpeg — NVIDIA Jetson Linux Developer Guide 1 documentation

Hardware encoding in ffmpeg is not supported. Would suggest use jetson_multimedia_api:

Jetson Linux API Reference: Main Page | NVIDIA Docs

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.