ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file

The “loading shared libraries” error message is received when ffmpeg is not able to locate the file libavdevice.so.52.This happens when either the file is missing from the server OR ffmpeg is not looking at the path the file is in.

The ffmpeg command outputs the following error:

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

Solution:
Search the file libavdevice.so.52 on the server using the ‘find’ command

# find / -name libavdevice.so.52

The output will display the complete path to the file for example, /usr/local/lib/libavdevice.so.52 and you need to add the directory path “/usr/local/lib” in the ‘ld.so.conf’ file.

# vi /etc/ld.so.conf

and add the following at the bottom of the file

/usr/local/lib

Save the file and for the new changes to take effect, execute

# ldconfig
This entry was posted on Saturday, August 7th, 2010 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.