FFmpeg: PHP symbol lookup error

Issues related to applications and software problems
Post Reply
User avatar
chihieu
Posts: 3
Joined: 2018/04/07 02:05:52

FFmpeg: PHP symbol lookup error

Post by chihieu » 2018/04/07 02:11:29

I successfully installed FFMPEG on my server then I got this error after I enabled in PHP:

Code: Select all

php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so: undefined symbol: avcodec_init
Any help would be great. Thanks so much!

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: FFmpeg: PHP symbol lookup error

Post by TrevorH » 2018/04/07 10:37:37

Looks like you are doing source buillds. Don't do that. Look at http://wiki.centos.org/AdditionalResources/Repositories and find reputable repos that supply the things you want to install and use those. There are numerous repos that supply newer php packages though the distro ones, depite being an old version number, are still supported by Redhat and they fix security bugs.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
chihieu
Posts: 3
Joined: 2018/04/07 02:05:52

Re: FFmpeg: PHP symbol lookup error

Post by chihieu » 2018/04/08 02:01:16

Thank you for you reply.
I've re-installed ffmpeg successfully but ffmpeg-php gd support is disabled and I cannot use it in my PHP script to convert videos:

Code: Select all

ffmpeg-php version	0.6.0-svn
ffmpeg-php built on	Apr 7 2018 22:26:01
ffmpeg-php gd support	disabled
ffmpeg libavcodec version	Lavc52.72.2
ffmpeg libavformat version	Lavf52.64.2
ffmpeg swscaler version	SwS0.11.0

Post Reply