I used below steps to install nvidia ffmpeg.
$ 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
In our code, we use ffmpeg API to decode h264 stream. avcodec_find_decoder_by_name(“h264_nvv4l2dec”) to get and use h264_nvv4l2dec decoder.
But it did not work. We got below output on screen.
Opening in BLOCKING MODE
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
[h264_nvv4l2dec @ 0x55a41c3d60] SEI type 1 size 904 truncated at 848
[h264_nvv4l2dec @ 0x55a41c3d60] non-existing PPS 0 referenced
Is there anything else we need do to use nvv4l2dec decoder in ffmpeg?