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: libswresample.so.0: 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.

  • 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

A quick search at RPMFIND.net yields ffmpeg-devel.


  • 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 http://packages.atrpms.net/RPM-GPG-KEY.atrpms
  2. vim /etc/yum.repos.d/atrpms.repo
  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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