Because the purpose of this image is to provide the runtime of gstreamer and deepstream.
At the same time, gst-libav also depends on libavcodec.
This is to avoid conflicts
You can run user_additional_install.sh in /opt/nvidia/deepstream/deepstream.
Then install the ffmpeg.
It will be works, I have tried.