Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get ffmpeg running on a Centos 6 machine and it has been uphill the whole way. I thought I had got it but when I go to use ffmpeg I get the error:

ffmpeg: error while loading shared libraries: cannot open shared object file: No such file or directory

I looked in /usr/local/lib, which is where all the libraries are stored, and I do not have that exact file but I do have "libswresample.a". I gave up on the official FFMPEG Centos directions due to all kinds of issues and used yum to install.

Where do I find the missing library and can I just put the file in my /usr/local/lib to fix?

Thanks -- have a basic Linux understanding, more familiar with Ubuntu than Centos.

share|improve this question
have you installed the appropriate package to provide this library? – voretaq7 Oct 19 '12 at 18:33
I'm not sure - I installed libtheora, libvorbis, x264, libogg, ffmpeg-devel. Have tried removing and reinstalling each and I can't seem to find out which includes libswresample. It would seem that FFMPEG is supposed to provide it from this post. – sprise Oct 19 '12 at 18:41
up vote 1 down vote accepted

A quick search at yields ffmpeg-devel.


share|improve this answer
Thanks! I must have uninstalled, I put it back on and this got me past libswresample -- onto the next problem :) – sprise Oct 22 '12 at 17:57

this may help..

  1. rpm --import
  2. vim /etc/yum.repos.d/atrpms.repo
share|improve this answer
Although you list the actions they are incomplete by themselves (what to put in the atrpms.repo file for instance?) and also please provide the rationale for your steps in your answer instead of just a link. ServerFault is better with complete answers. Thanks! – HBruijn Feb 12 '15 at 7:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.