Unix / Linux / Database / Web development / Email administration / Network / Security Tech Forum

View unanswered posts
View active topics
It is currently Sat Apr 19, 2014 7:18 am


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Bookmark this article:

Make LOVE, not WAR !

Author Message
debuser
Post  Post subject: ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No  |  Posted: Fri Aug 27, 2010 2:10 pm

Joined: Thu Aug 06, 2009 9:48 am
Posts: 104

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

After installling ffmpeg on CentOS 4.8 the above error apears when running ffmpeg for the first time.
Code:
# ffmpeg
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory

Running ldd utility shows that ffmpeg binary is dynamically linked to libraries which cannot be found:
Code:
# ldd `which ffmpeg`
        libavdevice.so.52 => not found
        libavfilter.so.1 => not found
        libavformat.so.52 => not found
        libavcodec.so.52 => not found
        libswscale.so.0 => not found
        libavcore.so.0 => not found
        libavutil.so.50 => not found
        libm.so.6 => /lib/libm.so.6 (0x006c3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x007e9000)
        libc.so.6 => /lib/libc.so.6 (0x00575000)
        /lib/ld-linux.so.2 (0x00557000)


All ffmpeg required libraries have been successfully installed under /usr/local/lib/ directory:
Code:
# find /usr/local/lib/ | grep -E "libavdevice.so.52|libavfilter.so.1|libavcodec.so.52|libavcore.so.0"
/usr/local/lib/libavdevice.so.52
/usr/local/lib/libavdevice.so.52.2.1
/usr/local/lib/libavfilter.so.1.38.1
/usr/local/lib/libavfilter.so.1
/usr/local/lib/libavcodec.so.52.87.0
/usr/local/lib/libavcore.so.0
/usr/local/lib/libavcore.so.0.6.0
/usr/local/lib/libavcodec.so.52


To make ffmpeg binary look in this directory for linked libraries, edit /etc/ld.so.conf and add this path:
Code:
include ld.so.conf.d/*.conf
/usr/local/libevent-1.4.14b/lib
/usr/local/lib

Code:
# ldconfig


Now run ffmpeg again and it works:
Code:
# ffmpeg
FFmpeg version SVN-r24953, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 27 2010 12:52:01 with gcc 4.4.0 20090514 (Red Hat 4.4.0-6)
  configuration: --cc=/usr/bin/gcc44 --enable-libvorbis --enable-shared --enable-libmp3lame --enable-libfaac --enable-shared --enable-nonfree --disable-demuxer=v4l --disable-demuxer=v4l2 --disable-yasm
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.87. 0 / 52.87. 0
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.38. 1 /  1.38. 1
  libswscale     0.11. 0 /  0.11. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


Top
kobyn
Post  Post subject: Re: ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file:  |  Posted: Sat Mar 03, 2012 5:04 pm

Joined: Sat Mar 03, 2012 5:00 pm
Posts: 2

Offline
Thank you for the post. Checking my Centos Server I notice some libraries that you mention in the post are missing. Those below:

/usr/local/lib/libavdevice.so.52
/usr/local/lib/libavdevice.so.52.2.1
/usr/local/lib/libavfilter.so.1.38.1
/usr/local/lib/libavfilter.so.1
/usr/local/lib/libavcodec.so.52.87.0
/usr/local/lib/libavcore.so.0
/usr/local/lib/libavcore.so.0.6.0


How to install those libraries?

Thank you for your help.

Centos Newbie


Top
kobyn
Post  Post subject: Re: ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file:  |  Posted: Sat Mar 03, 2012 5:05 pm

Joined: Sat Mar 03, 2012 5:00 pm
Posts: 2

Offline
Thank you for the post. I have the following libraries missing in my centos server. How to install them?

/usr/local/lib/libavdevice.so.52
/usr/local/lib/libavdevice.so.52.2.1
/usr/local/lib/libavfilter.so.1.38.1
/usr/local/lib/libavfilter.so.1
/usr/local/lib/libavcodec.so.52.87.0
/usr/local/lib/libavcore.so.0
/usr/local/lib/libavcore.so.0.6.0

Thanks.

Kob


Top
admin
Post  Post subject: Re: ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file:  |  Posted: Tue Mar 06, 2012 10:03 pm
Site Admin

Joined: Mon Aug 03, 2009 3:43 pm
Posts: 45

Offline
Those are files installed by libraries that are ffmpeg dependencies.

Here's a link that shows how to install ffmpeg on centos (as package):
http://www.crucialp.com/resources/tutor ... sy-way.php


Top
Display posts from previous:  Sort by  
Print view

Topics related to - "ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. ffmpeg error

lcsilva

0

491

Tue Nov 20, 2012 8:00 pm

lcsilva View the latest post

There are no new unread posts for this topic. FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong

debuser

0

1952

Fri Aug 27, 2010 2:01 pm

debuser View the latest post

There are no new unread posts for this topic. FreeBSD error when compiling world "archive_hash.h:129:20: error: sha1.h: No such file or directory"

mandrei99

0

879

Tue May 28, 2013 12:41 pm

mandrei99 View the latest post

There are no new unread posts for this topic. How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"

mandrei99

0

1722

Mon Oct 17, 2011 3:39 pm

mandrei99 View the latest post

There are no new unread posts for this topic. "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"

debuser

1

4587

Tue Dec 06, 2011 5:32 pm

admin View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO