How to Install FFmpeg on Linux Server
FFmpeg is so important if you are planning to run a video website with streaming with conversion of video files to different video formats. This tutorial is intended for Centos/Redhat versions of Linux where any novice user can install ffmpeg without compiling the source which is a more traditional way of installing the FFmpeg software on linux servers. In this tutorial i will show you the easy way to install ffmpeg and ffmpeg-php (php extension) with just yum rather than compiling ffmpeg from source files.
yum install ffmpeg
If you get command not found, then you will need to add few lines in the yum repository for dag installation.
Create a file named dag.repo in /etc/yum.repos.d with the following contents on it
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
then
yum update
yum install ffmpeg
If everything is fine, then the installation should proceed smoothly. If not you will get something like warning GPG public key missing .
To fix rpmforge GPG key warning:
rpm -Uhv
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
For more information refer to this faq
If you get missing dependency error like shown below, in the middle of ffmpeg installation
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package ffmpeg
Error: Missing Dependency: libtheora.so.0(libtheora.so.1.0) is needed by package ffmpeg
Error: Missing Dependency: rtld(GNU_HASH) is needed by package ffmpeg
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package a52dec
Error: Missing Dependency: rtld(GNU_HASH) is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package gsm
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package x264
Error: Missing Dependency: rtld(GNU_HASH) is needed by package xvidcore
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package lame
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package a52dec
Error: Missing Dependency: rtld(GNU_HASH) is needed by package faad2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package x264
Error: Missing Dependency: rtld(GNU_HASH) is needed by package lame
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package xvidcore
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faac
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faad2
Error: Missing Dependency: libgif.so.4 is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package faac
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package gsm
Error: Missing Dependency: libpng12.so.0(PNG12_0) is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package libmp4v2
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package libmp4v2
then most commonly you have GLIB 2.3 installed instead of GLIB 2.4 version. To check the current GLIB version installed on your server. just use
yum list glib*
and it should list all the packages whether installed or not. Try to see whether Glibc 2.4 installed, if not you will need to upgrade your Centos to latest version of 5.
To check the ffmpeg working:
Finally, check the ffmpeg whether it is working or not.
> ffmpeg
> ffmpeg -formats
> ffmpeg --help
// This lists path of mpeg, its modules and other path information
> ffmpeg -i Input.file Output.file
To check what audi/video formats are supported
ffmpeg -formats > ffmpeg-format.txt
Open the ffmpeg-formats.txt to see the ooutput
D means decode
E means encode
V means video
A means audio
T = Truncated
Install FFMPEG-PHP Extension
FFmpeg-php is a very good extension and wrapper for PHP which can pull useful information about video through API interface. Inorder to install it you will need to download the source file and then compile and install extension in your server. You can download the source tarball : http://ffmpeg-php.sourceforge.net/
wget /path/to/this/file/ffmpeg-php-0.5.2.1.tbz2
tar -xjf ffmpeg-0.5.2.1.tbz2
phpize
./configure
make
make install
Common Errors
If you get command not found error for phpize, then you will need to do yum install php-devel
If you get an error like shared libraries not found problem and the program halts in the middle, then you must specify the ffmpeg installed path explicitly to the ./configure.
“configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the –enable-shared option”
To Fix:
1. First find out the ffmpeg path with ffmpeg –help command. The prefix default path should be like /usr/local/cpffmpeg
2. Configure the FFmpeg-php with –with-ffmpeg option
./configure --with-ffmpeg=/usr/local/cpffmpeg
That should resolve the problem!
Editing PHP.INI
Once you have done that without any problems then you will see the php extension file /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so and you will need mention that extension in php.ini file
nano /usr/local/lib/php.ini
Put the below two lines at the end of the php.ini file
[ffmpeg]
extension=ffmpeg.so
Then restart the server service httpd restart
To check whether ffmpeg enabled with php, point your browser to test.php file. It should show the confirmation
If any case the ffmpeg does not show in the phpinfo() test make sure that php.ini path to ffmpeg.so is correct. Still the problem occurs, the reason could be you might be using older versions of ffmpeg-php which is buggy. Just download the latest version of ffmpeg-php source then compile it.
Useful Links
FFmpeg (http://ffmpeg.mplayerhq.hu)
Mplayer + Mencoder (http://www.mplayerhq.hu/design7/dload.html)
Flv2tool (http://inlet-media.de/flvtool2)
Libogg + Libvorbis (http://www.xiph.org/downloads)
LAME MP3 Encoder (http://lame.sourceforge.net)
Install FFmpeg from Compiling Source (Tutorial Link)
Nice FFmpeg Installation Tutorial (click here)
Important Audio Codecs (http://www.mplayerhq.hu/DOCS/HTML/en/audio-codecs.html)
Common Errors & Fixes while Installing FFmpeg (click here)
Similar Posts:
- HOWTO: Install PEAR for php in Linux
- Automatic Face Detection in Photos with PHP
- Fix -> Yum install mod_security not working?
- [Fix] Ziplib compile error with zziptest.c
- how to install a new .deb package in debian/ubuntu
- Install ClamAV in Centos with Cpanel
- How to Install suPHP in Linux
- how to convert large video from avi to DVD?
- Capturing a Screenshot of a Website
- How to install Xvfb (X11 Server) in Linux Server


May 20, 2008
Thank you very much for the post…FFMpeg on CENTOS is quite difficult and this was the best tutorial Ive found…
FFMpeg-php is now giving me errors…
In file included from /usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:40:
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.h:72: error: syntax error before “AVFormatContext”
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.h:72: warning: no semicolon at end of struct or union
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.h:77: error: syntax error before ‘}’ token
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:56:5: missing binary operator before token “(”
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:65: error: storage class specified for parameter `ffmpeg_movie_class_entry_ptr’
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:68: error: storage class specified for parameter `le_ffmpeg_movie’
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:69: error: storage class specified for parameter `le_ffmpeg_pmovie’
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:74: error: parameter `ffmpeg_movie_class_methods’ is initialized
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:77: warning: implicit declaration of function `PHP_ME’
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:77: error: `ffmpeg_movie’ undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:77: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:77: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.5.2.1/ffmpeg_movie.c:77: confused by earlier errors, bailing out
make: *** [ffmpeg_movie.lo] Error
Any ideas?
May 22, 2008
i know this is really old, but in this blog entry – baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag is an invalid path. When itry to include thisin the dag.repo file, i get an error. please can u help me out on this
May 22, 2008
j37h3r, did you install ffmpeg header files. It is needed for ffmpeg-php. use yum install ffmpeg-devel
smoizs, change only mirror, not the base one.
July 26, 2008
if I follow this instruction and installed everything sucessfully, what is the PATH to ffmpeg, mplayer, mencoder, and flvtool2. I tried ffmpeg –help, but it didn’t list the path. Can anyone help me?
March 25, 2010
I would be grateful for the answer to this question as well. After installation the ffmpeg command works but ffmpeg –help does not.
Also, I don’t know where ffmpeg and the other software are installed.
September 13, 2008
Brilliant, after a good bit of surfing, finally all the info I needed in one place. Very grateful, all the best
November 14, 2008
Thank you thank you thank you! Awesome – You saved me a ton of searching with the public key tip
December 6, 2008
Thanks man! You helped me out MAJORLY. Awesome post.
February 3, 2009
oh thankyou thankyou thankyou. without this i don’t think i could have done it. AMAZING tutorial, covered all the errors that might crop up really well and gave the answers.
February 9, 2009
I LOVE THIS! thanks! such a great guide!
April 17, 2009
Great Post.
I install it successfully on server (rhel 5)
But I lost the display (Graphical mode). So that server is running on runlevel 3.
How can I get back the display of the server?
Thanks
June 25, 2009
Great Post. Solved my problem.
Thanks
October 11, 2009
Superb article. I managed to install it by reading this article. Thank you.
November 4, 2009
I can’t install ffmpeg-php using your instructions. I continue to receive the error when I attempt to configure:
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the –enable-shared option
Thing is, ffmpeg is installed with –enable-shared:
[root@localhost ffmpeg-php-0.6.0]# ffmpeg
FFmpeg version 0.5-rpmfusion, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: –prefix=/usr –bindir=/usr/bin –datadir=/usr/share/ffmpeg –incdir=/usr/include/ffmpeg –libdir=/usr/lib64 –mandir=/usr/share/man –arch=x86_64 –extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/openjpeg –extra-version=rpmfusion –enable-bzlib –enable-libdc1394 –enable-libfaac –enable-libfaad –enable-libgsm –enable-libmp3lame –enable-libopenjpeg –enable-libschroedinger –enable-libspeex –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –enable-x11grab –enable-avfilter –enable-avfilter-lavf –enable-postproc –enable-swscale –enable-pthreads –disable-static –enable-shared –enable-gpl –disable-debug –disable-stripping –shlibdir=/usr/lib64
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 26 2009 19:39:46, gcc: 4.4.0 20090307 (Red Hat 4.4.0-0.23)
I am using Fedora 11. I successfully installed ffmpeg and ffmpeg-devel via yum.
February 10, 2010
I was trying to install ffmpeg-php on Fedora9, I’ve downloaded the ffpmeg-php-0.6.0 and used phpize and ./configure –enable-shared –prefix=/usr and both of them worked fine but when I tried to run make I got the following error:
“make: *** No targets specified and no makefile found. Stop.”
I tried the same procedure with ffmpeg-php-0.5.1 and ffmpeg-0.5.0 but failed.
Can anyone help with this.
April 24, 2010
Perfect article, thanks!
May 29, 2010
Hi
when i do yum update it gives Error.
[root@MyServer yum.repos.d]# yum update
Setting up Update Process
Setting up repositories
http://apt.sw.be/redhat/elNull/en/i386/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: dag
failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.
seems like files has been moved.
Can you please provide some alternative
Thanks
Ali
October 27, 2010
http://pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/
October 30, 2010
I got stuck at FFMPEG configuration. I am getting this error
Unknown option “–enable-libogg”.
See ./configure –help for available options.
Can anyone help me?
January 21, 2011
Thank you! I have this on my own vps now also i have shared hosting with http://www.semoweb.com and they have this thanks so much
May 8, 2011
Thnx man,
You saved me
I don’t know how to thank you. I have Centos and have been trying to install ffmpeg last couple of days. Got error each time.
This one worked at first attempt.
Thank you very much indeed.
Mustafa
November 1, 2011
System:
SLES 11 x86_64
Php 5.2.6
FFmpeg 0.8.1
FFmpeg-php 0.6.0
I use the same configuration parameter like by php and so the configure: WARNING is understandable, but the make brakes with many errors.
Is there any solution for this problem?
>./configure –prefix=${prefix} –with-ffmpeg=$ffmpeg_dir –with-gd –with-pdo-mysql=${mysql_dir} –with-mysql=${mysql_dir} –with-apxs2=${apache_apxs_dir} –enable-mbstring –enable-exif –enable-soap –enable-zip –with-curl –enable-libxml –with-openssl –with-zlib –enable-bcmath –with-bz2 –enable-calendar –with-curlwrappers –enable-dbase –enable-ftp –with-ttf –enable-gd-native-ttf –with-mcrypt –with-readline –enable-shmop –enable-sockets –enable-wddx –enable-pcntl –with-xmlrpc –enable-zip –with-ldap –with-libdir=lib64
configure: WARNING: unrecognized options: –with-gd, –with-pdo-mysql, –with-mysql, –with-apxs2, –enable-mbstring, –enable-exif, –enable-soap, –enable-zip, –with-curl, –enable-libxml, –with-openssl, –with-zlib, –enable-bcmath, –with-bz2, –enable-calendar, –with-curlwrappers, –enable-dbase, –enable-ftp, –with-ttf, –enable-gd-native-ttf, –with-mcrypt, –with-readline, –enable-shmop, –enable-sockets, –enable-wddx, –enable-pcntl, –with-xmlrpc, –enable-zip, –with-ldap
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for a sed that does not truncate output… /usr/bin/sed
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc and cc understand -c and -o together… yes
checking for system library directory… lib64
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /opt/app/php/5.2.6
checking for PHP includes… -I/opt/app/php/5.2.6/include/php -I/opt/app/php/5.2.6/include/php/main -I/opt/app/php/5.2.6/include/php/TSRM -I/opt/app/php/5.2.6/include/php/Zend -I/opt/app/php/5.2.6/include/php/ext -I/opt/app/php/5.2.6/include/php/ext/date/lib
checking for PHP extension directory… /opt/app/php/5.2.6/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix… /opt/app/php/5.2.6/include/php
checking for re2c… no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk… gawk
checking for ffmpeg support… yes, shared
checking whether to force gd support in ffmpeg-php… no
checking for ffmpeg headers… …found in /opt/app/dls/ffmpeg/0.8.1/include/libavcodec
checking for ffmpeg libavcodec.so… …found in /opt/app/dls/ffmpeg/0.8.1/lib
checking for ffmpeg swscale support… yes
checking for ld used by gcc… /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld… yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognise dependent libraries… pass_all
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 32768
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if gcc static flag works… yes
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC
checking if gcc PIC flag -fPIC works… yes
checking if gcc supports -c -o file.o… yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
configure: WARNING: unrecognized options: –with-gd, –with-pdo-mysql, –with-mysql, –with-apxs2, –enable-mbstring, –enable-exif, –enable-soap, –enable-zip, –with-curl, –enable-libxml, –with-openssl, –with-zlib, –enable-bcmath, –with-bz2, –enable-calendar, –with-curlwrappers, –enable-dbase, –enable-ftp, –with-ttf, –enable-gd-native-ttf, –with-mcrypt, –with-readline, –enable-shmop, –enable-sockets, –enable-wddx, –enable-pcntl, –with-xmlrpc, –enable-zip, –with-ldap
> make
/bin/sh /opt/app/php/ffmpeg-php/0.6.0/libtool –mode=compile gcc -I. -I/opt/app/php/ffmpeg-php/0.6.0 -DPHP_ATOM_INC -I/opt/app/php/ffmpeg-php/0.6.0/include -I/opt/app/php/ffmpeg-php/0.6.0/main -I/opt/app/php/ffmpeg-php/0.6.0 -I/opt/app/php/5.2.6/include/php -I/opt/app/php/5.2.6/include/php/main -I/opt/app/php/5.2.6/include/php/TSRM -I/opt/app/php/5.2.6/include/php/Zend -I/opt/app/php/5.2.6/include/php/ext -I/opt/app/php/5.2.6/include/php/ext/date/lib -I/opt/app/dls/ffmpeg/0.8.1/include/libavcodec/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavformat/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavutil/ -I/opt/app/dls/ffmpeg/0.8.1/include/libswscale/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavfilter/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c -o ffmpeg_movie.lo
gcc -I. -I/opt/app/php/ffmpeg-php/0.6.0 -DPHP_ATOM_INC -I/opt/app/php/ffmpeg-php/0.6.0/include -I/opt/app/php/ffmpeg-php/0.6.0/main -I/opt/app/php/ffmpeg-php/0.6.0 -I/opt/app/php/5.2.6/include/php -I/opt/app/php/5.2.6/include/php/main -I/opt/app/php/5.2.6/include/php/TSRM -I/opt/app/php/5.2.6/include/php/Zend -I/opt/app/php/5.2.6/include/php/ext -I/opt/app/php/5.2.6/include/php/ext/date/lib -I/opt/app/dls/ffmpeg/0.8.1/include/libavcodec/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavformat/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavutil/ -I/opt/app/dls/ffmpeg/0.8.1/include/libswscale/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavfilter/ -I/opt/app/dls/ffmpeg/0.8.1/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c -fPIC -DPIC -o .libs/ffmpeg_movie.o
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:73: error: ‘MAX_STREAMS’ undeclared here (not in a function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_video_stream’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:152: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:152: error: (Each undeclared identifier is reported only once
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:152: error: for each function it appears in.)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_audio_stream’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:165: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_open_movie_file’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:258: warning: ‘av_open_input_file’ is deprecated (declared at /opt/app/dls/ffmpeg/0.8.1/include/libavformat/avformat.h:1090)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_decoder_context’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:484: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getComment’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:531: error: ‘AVFormatContext’ has no member named ‘comment’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:531: error: ‘AVFormatContext’ has no member named ‘comment’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getTitle’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:546: error: ‘AVFormatContext’ has no member named ‘title’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:546: error: ‘AVFormatContext’ has no member named ‘title’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAuthor’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:561: error: ‘AVFormatContext’ has no member named ‘author’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:561: error: ‘AVFormatContext’ has no member named ‘author’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getCopyright’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:575: error: ‘AVFormatContext’ has no member named ‘copyright’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:575: error: ‘AVFormatContext’ has no member named ‘copyright’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAlbum’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:590: error: ‘AVFormatContext’ has no member named ‘album’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:590: error: ‘AVFormatContext’ has no member named ‘album’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getGenre’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:604: error: ‘AVFormatContext’ has no member named ‘genre’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:604: error: ‘AVFormatContext’ has no member named ‘genre’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getTrackNumber’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:619: error: ‘AVFormatContext’ has no member named ‘track’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getYear’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:632: error: ‘AVFormatContext’ has no member named ‘year’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_framerate’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:678: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_framenumber’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:810: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_pixelformat’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:850: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getPixelFormat’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:868: warning: ‘avcodec_get_pix_fmt_name’ is deprecated (declared at /opt/app/dls/ffmpeg/0.8.1/include/libavcodec/avcodec.h:3406)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_codec_name’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:963: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getVideoCodec’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:989: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAudioCodec’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1009: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getVideoStreamId’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1029: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAudioStreamId’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1051: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAudioChannels’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1089: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAudioSampleRate’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1125: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getAudioBitRate’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1161: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘zim_ffmpeg_movie_getVideoBitRate’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1181: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_read_av_frame’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1204: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1215: warning: implicit declaration of function ‘avcodec_decode_video’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1219: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_av_frame’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1246: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1282: error: ‘AVCodecContext’ has no member named ‘hurry_up’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1284: error: ‘AVCodecContext’ has no member named ‘hurry_up’
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c: In function ‘_php_get_sample_aspect_ratio’:
/opt/app/php/ffmpeg-php/0.6.0/ffmpeg_movie.c:1443: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
make: *** [ffmpeg_movie.lo] Fehler 1
November 29, 2011
Have the same problem with avcodec_get_pix_fmt_name while installing libx264
January 19, 2012
I am trying to install ffmpeg in solaris 9. I am installing from the package http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg7/ffmpeginstaller.7.2.tar.gz
As I couldn’t use wget due to firewall, am installing many packages inside the above zip like git, mplayer, xvid to name a few. While using “MAKE” inside git direcotry, I get the following error.
make: Warning: Ignoring DistributedMake -o option
make: Fatal error in reader: Makefile, line 242: Unexpected end of line seen
Current working directory /usr/share/src/ffmpegscript/git-1.7.2.5
make: *** [/perl] Error 1
Can you please assist?