Hi,
The steps should work fine without building the source manually:
$ 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
$ sudo apt install ffmpeg
After executing the steps, you should see the hardware decoders:
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)