Ffmpeg execution error to solve the problem of "ffmpeg: No such file or directory error while loading shared libraries: libavdevice.so.58:: can not open shared object file"

Symptoms:

After executing ffmpeg command error:

ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory

 The problem is environmental information:

Fedora release 31 (Thirty One)
ffmpeg - 4.2 . 1 official source compiler

 Look what dependencies need:

ldd ffmpeg

We can see missing dependency

We find these papers where

find /usr -name 'libavdevice.so.58'

It should be in this directory

/usr/local/lib/

 We export out:

export LD_LIBRARY_PATH=/usr/local/lib/

Before attempting to perform

/usr/local/bin/ffmpeg

 

 problem solved

Guess you like

Origin www.cnblogs.com/comexchan/p/12079333.html