Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I try for some weeks now to install ffmpeg in a CentOS 3.9 VM. The configuration is successful, but when I try to complete the test I receive the error:
/usr/local/apache-2.0.63/bin/httpd: relocation error: /usr/local/apache-2.0.63/php5/ffmpeg.so: undefined symbol: av_picture_copy
I searched a lot regading this error, but I couldn't find any solutions.
Does anybody have any ideas?
How did you install ffmpeg and ffmpeg-php? I've always used sources from svn for both programs, and never had such problems.
You can also try this guide and see if it helps
I installed the ffmpeg and the ffmpeg-php from sources, and the installation was successful.
I looked on the guide you suggested and is basically the same thing I did.
Same error:
/usr/local/apache-2.0.63/bin/httpd: relocation error: /usr/local/apache-2.0.63/php5/ffmpeg.so: undefined symbol: av_picture_copy
Last edited by corina.pelmus; 02-09-2010 at 04:11 AM.
What versions of ffmpeg and ffmpeg-php have you used? av_picture_copy is defined in libavcodec, so I guess ffmpeg is not, let's say, compatible with ffmpeg-php.
You should get the latest sources from svn for both. For reference here are the options I've used to build ffmpeg:
The only important option if you want to build ffmpeg-php, is "--enable-shared". The others depend on the specific file formats you're going to deal with.
Anyway you should use the latest sources from svn for both programs. There is also a howto for Centos here.
After recompiling, the 'make test' command output is:
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
ffmpeg getBitRate test [tests/getBitRate.phpt]
ffmpeg getDuration test [tests/getDuration.phpt]
ffmpeg getFrame test [tests/getFrame.phpt]
ffmpeg getFrameCount test [tests/getFrameCount.phpt]
ffmpeg getFrameNumber test [tests/getFrameNumber.phpt]
ffmpeg getFrame backwards test [tests/getFramesBackwards.phpt]
ffmpeg getFrames forward test [tests/getFramesForward.phpt]
ffmpeg getFrames forward test [tests/getFramesForwardPassedEnd.phpt]
ffmpeg getFramesNoArg test [tests/getFramesNoArg.phpt]
ffmpeg getID3Info() test [tests/getID3Info.phpt]
ffmpeg get key frames test [tests/getNextKeyFrame.phpt]
ffmpeg getPTS test (Fixme: This test is no good with robot.avi) [tests/getPTS.phpt]
ffmpeg test key frame [tests/isKeyFrame.phpt]
ffmpeg persistent movie test [tests/persistentMovie.phpt]
=====================================================================
I believe that I need some more libraries, but I can't figure out which one.
If you want to test the installation, follow the instructions on ffmpeg-php site:
Quote:
Testing the Installation
* Put the directory test_media and test_ffmpeg.php script under your web root somewhere (put both in the same directory).
* Load test_ffmpeg.php into your browser.
RESULTS: You should get a listing of the methods provided by the ffmpeg-php module as well as some test output from the methods.
Mind that you might need to change "<?" to "<?php" in the 1st line of test_ffmpeg.php
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.