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