When I want to run ffmpeg I get the following error:

ffmpeg: error while loading shared libraries: libtheoraenc.so.1: cannot open shared object file: No such file or directory

This is output of ls \usr\lib -l | grep libtheora:

-rw-r--r--  1 root   root    419238 Jan  5  2010 libtheora.a
-rw-r--r--  1 root   root       935 Jan  5  2010 libtheora.la
lrwxrwxrwx  1 root   root        19 Jan  5  2010 libtheora.so -> libtheora.so.0.3.10
-rw-r--r--  1 root   root    145636 Jan  5  2010 libtheoradec.a
-rw-r--r--  1 root   root       948 Jan  5  2010 libtheoradec.la
lrwxrwxrwx  1 root   root        21 Jan  5  2010 libtheoradec.so -> libtheoradec.so.1.1.4
-rw-r--r--  1 root   root    334696 Jan  5  2010 libtheoraenc.a
-rw-r--r--  1 root   root       954 Jan  5  2010 libtheoraenc.la
lrwxrwxrwx  1 root   root        21 Jan  5  2010 libtheoraenc.so -> libtheoraenc.so.1.1.2

What should I do to solve the problem?

Edit: in line:

libtheoraenc.so -> libtheoraenc.so.1.1.2

I can't find libtheoraenc.so.1.1.2 in /usr/lib(packages libtheora and libtheora-dev are installed)

output of locate libtheoraenc.so.1.1.2 is:



But I can't find this files in /usr/lib!

  • 2
    Did you install ffmpeg manually or using your distribution's package manager? Did you make sure that libtheora is the latest version? Mar 12, 2012 at 18:21
  • I installed ffmpeg with apt-get. How do I know that libtheora is the latest version? If it's not, How can I install the latest
    – hknik
    Mar 12, 2012 at 18:25
  • Run apt-get update and apt-get upgrade for an upgrade of all installed packages to the current version. Mar 12, 2012 at 18:27
  • Yes. It's the last version
    – hknik
    Mar 12, 2012 at 18:40
  • Looks like a bug in the package then. Try reporting the bug/looking for solution on your distribution's website. Mar 12, 2012 at 18:42

1 Answer 1


I think I'd recommend a reinstall of libtheora0:

sudo apt-get install --reinstall libtheora0

And since you have some non-unixey backslashes in your original question, let's be explicit about looking for the libraries:

ls -l /usr/lib/libtheoraenc*

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.