Jetson nx video vodec sdk ffmpeg compile run [h264 @ 0x55ab4840d0] Cannot load [h264 @ 0x55ab4840d0] Failed loading nvcuvid. error

in jeston nx 4.6 jetson-nx-jp46-sd-card-image package ,the cuda version is 10.2, video codes sdk version is 10.0.26, use ffmpeg complie and build ,
use ffmpeg -hwaccels: only cuda not cuvid

then run , find

and look sdk doc
Stub libraries ( and have been included as part of the SDK package, in order to aid development of applications on systems where the NVIDIA driver has not been installed. The sample applications in the SDK will link against these stub libraries as part of the build process. However, users need to ensure that the stub libraries are not referenced when running the sample applications. A driver compatible with this SDK needs to be installed in order for the sample applications to work correctly.
i only copy and to cuda/lib floder i don’t know the .so is used ,who can help me

Video codec SDK is specific to PC with our GPU. On Jetson platforms, the hardware acceleration is enabled through jetson_multimedia_api. Please take a look at Jetson Nano FAQ
Q: Is hardware acceleration enabled in ffmpeg?

Related topics:
Jetson TX2 and FFmpeg - Can't initialize nvrm channel - #5 by DaneLLL
Hardware accelerated video playback with L4T ffmpeg - #7 by DaneLLL

thanks, DaneLLL
I look at

jetson-nano-faq GitHub - jocover/jetson-ffmpeg: ffmpeg support on jetson nano
then used find

it can not use hardware decoding

Have you tried

$ echo "deb main main" |  sudo tee -a /etc/apt/sources.list
$ echo "deb-src main main" |  sudo tee -a /etc/apt/sources.list
$ sudo apt update
$ sudo apt install ffmpeg
nvidia@nvidia-desktop:/$ ffmpeg -decoders | grep nvv4l2
ffmpeg version n4.2.2-15-g6878ea5a44 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --enable-nvv4l2dec --enable-libv4l2 --enable-shared --extra-libs='-L/usr/lib/aarch64-linux-gnu/tegra -lnvbuf_utils' --extra-cflags='-I /usr/src/jetson_multimedia_api/include/'
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
 V..... h264_nvv4l2dec       h264 (nvv4l2dec) (codec h264)
 V..... hevc_nvv4l2dec       hevc (nvv4l2dec) (codec hevc)
 V..... mpeg2_nvv4l2dec      mpeg2 (nvv4l2dec) (codec mpeg2video)
 V..... mpeg4_nvv4l2dec      mpeg4 (nvv4l2dec) (codec mpeg4)
 V..... vp8_nvv4l2dec        vp8 (nvv4l2dec) (codec vp8)
 V..... vp9_nvv4l2dec        vp9 (nvv4l2dec) (codec vp9)

As suggested in
Hardware accelerated video playback with L4T ffmpeg - #7 by DaneLLL

I use GitHub - jocover/jetson-ffmpeg: ffmpeg support on jetson nano method install ffmpeg
use ffmpeg -c:v h264_nvmpi -i input_file -f null -
look at jtop nvdec is using
but i use ffplay play video have D-Bus not built with -rdynamic so unable to print a backtrace

The package is from community contribution. For further questions, please contact the author for help.

You may try our package which enables hardware decoding.


use this mothed?

Yes, please download the packages from our server and give it a try

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