Hi,
It should be same as this topic:
Libavcodec.so: undefined reference to `v4l2_open’ - #9 by DaneLLL
Please try
- Add
-lv4l2
to--extra-libs
:
./configure --enable-nvv4l2dec --enable-libv4l2 --enable-shared --extra-libs="-lv4l2 -L/usr/lib/aarch64-linux-gnu/tegra -lnvbufsurface -lnvbufsurftransform" --extra-cflags="-I /usr/src/jetson_multimedia_api/include/"
- Manually build libavcodec.so.58 and replace to
ffmpeg-4.2.7$ sudo cp -i libavcodec/libavcodec.so.58 /usr/lib/aarch64-linux-gnu/
We shall miss -lv4l2
in our command. Will check this with our team and refresh the prebuilt ffmpeg package.