After installing FFMPEG on one of my client server, the above error apears whenrunning ffmpeg for the first time.
“ffmpegffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory”
It is very simple step to solve your error.
Change your library path by running following command :
root@hostripples[~]# export LD_LIBRARY_PATH=/usr/local/lib/