[TAG] Fwd: FFMPEG Installation

Predrag Ivanovic predivan at ptt.yu
Wed Oct 18 20:05:05 MSD 2006


On Tue, 10 Oct 2006 17:04:22 -0400
Suramya Tomar wrote:

> 2. How to modify (RPM - atrpms.net) installation of FFMPEG to include 
> the amr_nb / amr_wb fixes in order for me to be able to convert 3GPP 
> video to FLV.
> 

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.9-17_r6524.at.src.rpm or http://dag.wieers.com/packages/ffmpeg/ffmpeg-0.4.9-0.6.20060918.rf.src.rpm
[2]http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
[3]http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/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 ;)
 
> Mark
> 
> 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-miscellania-srpms.html
[5] According to avcodec/amr.c 
[6]http://www.rpm.org/max-rpm/ch-rpm-b-command.html

HTH.
Pedja
-- 
 To set aside my fears over the car going bang I have built an ingenious
 squirrel trap from a cat basket, some elastic bands, two cable ties, a
 cork and a piece of string  --  Adrian Foden seeks lunch, in #ukmg





More information about the TAG mailing list