Jetson TX2 and FFmpeg - Can't initialize nvrm channel

Hi,
We would suggest build the package from source in local folder and check if you can build/run your application in the folder. Please do the steps:

  1. Get source code
$ echo "deb https://repo.download.nvidia.com/jetson/ffmpeg main main" |  sudo tee -a /etc/apt/sources.list
$ echo "deb-src https://repo.download.nvidia.com/jetson/ffmpeg main main" |  sudo tee -a /etc/apt/sources.list
$ sudo apt update
$ apt source ffmpeg
  1. Configure and build:
ffmpeg-4.2.2$ ./configure --enable-nvv4l2dec --enable-libv4l2 --extra-libs="-L/usr/lib/aarch64-linux-gnu/tegra -lnvbuf_utils" --extra-cflags="-I /usr/src/jetson_multimedia_api/include/"
ffmpeg-4.2.2$ make
  1. Verify hardware decoding by setting LD_LIBRARY_PATH and running the command:
ffmpeg-4.2.2$ ./ffmpeg -c:v h264_nvv4l2dec -i /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.mp4 a.yuv

And then try to build/run your application under ffmpeg-4.2.2 folder.