Libavformat.so.58 not found

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version http://nvcr.io/nvidia/deepstream:6.1.1-triton
• NVIDIA GPU Driver Version (valid for GPU only) 525.60.11
• Issue Type( questions, new requirements, bugs) bugs

Hi!

Steps to reproduce according to samples/configs/deepstream-app-triton/README:

  1. I run the container like so:
docker run -it --rm --runtime nvidia nvcr.io/nvidia/deepstream:6.1.1-triton bash
  1. apt update && apt install ffmpeg

  2. Run the video preparation script:

root@b7bf9a58c9be:/opt/nvidia/deepstream/deepstream-6.1/samples# ./prepare_classification_test_video.sh 
Downloading image http://farm4.static.flickr.com/3148/2890279040_62501db54b.jpg
Downloading image http://farm4.static.flickr.com/3148/2890279040_62501db54b.jpg
Downloading image http://farm2.static.flickr.com/1261/543851098_625ef13f54.jpg
Downloading image http://farm1.static.flickr.com/61/177891798_7272d7a1b1.jpg
Downloading image https://live.staticflickr.com/3668/9275702496_05b36d4dc7_c_d.jpg
Creating video from downloaded images...
ffmpeg: error while loading shared libraries: libavformat.so.58: cannot open shared object file: No such file or directory
Video creation failed.

Do you have any ideas, what can go wrong?

it is ffmepg installing issue, you can find the path of libavformat.so, then add it to LD_LIBRARY_PATH, here is a sample:
$ find / -name “libavformat.so*”
/home/test/test/libavformat.so.58.29.100
$ export LD_LIBRARY_PATH=/home/test/test/:$LD_LIBRARY_PATH && ldconfig

I don’t know why this happens in this image, but reinstalling these packages helped:

apt install libavformat58 --reinstall
apt install libavcodec58 --reinstall
apt install libavresample4 --reinstall
apt install libavutil56 --reinstall

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.