I recently had the need to install FfMpeg for a project I am working on. After Googling for some time I learned a little bit about the ffmpeg project. The most interesting thing I learned was their are no formal releases of the project. So I just downloaded it from SVN using the following command:
svn export svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
Then I just ran
./configure
In the directory I downloaded ffmpeg too, and finally
make && make install
That’s it, it was up and running in a few minutes. I have added this here because so many of the blogs with information regarding Ffmpeg and CentOS 5 were out of date or wrong. It also helps that my version of CentOS already had gcc and gcc-c++ installed, both of which are needed to compile these from their sources.
Update:
I have written a tutorial for a much more robust install of ffmpeg. Read: A Robust ffmpeg Install for CentOS 5.
WHen I try to compile I get the following error:
In file included from libavdevice/v4l.c:32:
/usr/include/linux/videodev.h:56: error: syntax error before “ulong”
/usr/include/linux/videodev.h:72: error: syntax error before ‘}’ token
libavdevice/v4l.c: In function `grab_read_header’:
libavdevice/v4l.c:77: error: storage size of ‘tuner’ isn’t known
libavdevice/v4l.c:141: error: invalid application of `sizeof’ to incomplete type `video_tuner’
libavdevice/v4l.c:148: error: invalid application of `sizeof’ to incomplete type `video_tuner’
libavdevice/v4l.c:77: warning: unused variable `tuner’
make: *** [libavdevice/v4l.o] Error 1
Do you have any idea what the problem is?
I get the EXACT same error on Centos 4.6
So I decided to export an arbitrary revision number (14000), and it worked!
So somewhere between 14000 and 15290 (HEAD as of this writing) something got BORKED. But what can you expect from a project with no stable releases?
@ retry
you might try checking this post: http://gregorytomlinson.com/encoded/2008/06/11/a-robust-ffmpeg-install-for-centos-5/
Some of this has been discussed there
Yeah but my problem wasn’t related to trying to get extra codecs working. It’s an error in some device code in the core ffmpeg. I was getting that error with a vanilla configuration.