Quote:
Originally Posted by pitsug
hello everyone! need some help here..
im having trouble on installing ffmpeg on centos 4.4
does centos support this (ffmpeg)?
im always getting this error
Fatal error: Cannot instantiate non-existent class: ffmpeg_movie in /home/username/public_html/domain/upload.php on line 83
|
Here is some guideline for you
You'll have to rebuild ffmpeg if you want that, so you'll need ffmpeg src.rpm[1], amr-nb[2] and amr-wb source[3].
[1]
http://dl.atrpms.net/all/ffmpeg-0.4....524.at.src.rpm or
http://dag.wieers.com/packages/ffmpe...918.rf.src.rpm
[2]
http://www.3gpp.org/ftp/Specs/archiv.../26104-510.zip
[3]
http://www.3gpp.org/ftp/Specs/archiv.../26204-510.zip
It's been years since I used rpm-based distros, so you'll have to work out details yourself[4][6], but procedure is as follows: install src.rpm with rpm -ivv and check the output to see where it installed sources and spec file.
In this case source is ffmpeg-0.4.9 tar.bz2.
Extract it with 'tar -xjf ffmpeg-0.4.9.tar.bz2'.
Then unzip [2] to ffmpeg-0.4.9/libavcodec/amr_float, and [3] to ffmpeg-0.4.9/libavcodec/amrwb_float.
After that, recreate ffmpeg tarball with 'tar -cjf ffmpeg-0.4.9.tar.bz2 ffmpeg-0.4.9'.
Now, you'll have to edit spec file.
Open it in editor, and find %build section in it.
Add '--enable-amr-wb' as ./configure switch(amr_float is enabled by default)[5].
Save spec file.
Build and install it:
rpm -ba ffmpeg.spec
That's it.Hopefully
>
> PS. Would you know of any guide/tutorial that explains how to
> create/modify RPM's, where files are stored and where spec files can be
> found, once they are installed on a system?
http://dag.wieers.com/howto/rpm/
http://www-106.ibm.com/developerworks/library/l-rpm1/
http://www.centos.org/modules/newbb/index.php
man rpm
[4]
http://www.rpm.org/max-rpm/s1-rpm-mi...nia-srpms.html
[5] According to avcodec/amr.c
[6]
http://www.rpm.org/max-rpm/ch-rpm-b-command.html
HTH.