...making Linux just a little more fun!
Suramya Tomar [suramya at suramya.com]
Tue, 10 Oct 2006 17:04:22 -0400
Hey Everyone, Got the questions below via email and I was hoping one of you might have an answer for him (The stuff in brackets are my questions):
1. If /tmp partition is mounted with noexec and nosuid flags, is it not possible to run ./configure? If so how can we bypass this?
(I remember reading somewhere that mounting /tmp with noexec and nosuid is a good security precaution, but if it causes trouble with the ./configure then is it worth it?)
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.
Thanks for the help.
- Suramya
-------- Original Message --------
Subject: Re: FFMPEG Installation Date: Tue, 10 Oct 2006 17:57:20 +0100 From: <markw2@fireflyuk.net> To: TAG <tag@lists.linuxgazette.net> To: Suramya Tomar <suramya at suramya.com>References: <004901c6ea0e$05b24a10$0502a8c0 at MARKDESKTOP> <452BC78B.9040008 at suramya.com>
Hi Suramya, thanks for your reply. It's really appreciated.
Please feel free to forward my e-mail to this group as it would be great to have a solution to this.
Thanks again and best regards
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?
----- Original Message -----
From: "Suramya Tomar" <suramya@suramya.com> To: TAG <tag@lists.linuxgazette.net> To: <markw2 at fireflyuk.net>Sent: Tuesday, October 10, 2006 5:17 PM
Subject: Re: FFMPEG Installation
> Hey Mark, > I don't know a solution to your problem off the top of my head, but I > know someone who does, Basically its a group called The Answer Gang (TAG) > at the linuxgazette.net (Of which I am also a member) which answers linux > related questions and the resulting exchange/solutions are printed in the > next issue of the LG so that others can also benefit from it. > > If you don't mind then I will forward your mail to them and hopefully we > will have a solution for this soon. > > Let me know. > > Thanks, > Suramya > >> Hi there, >> I saw your tutorial on the Installation of ffmpeg at >> https://www.linuxjournal.com/article/8517. >> I'd like to ask if it would be at all possible for some assistance from >> yourself to modify my (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. >> I've just purchased a new dedicated server with CentOS 4.4 and >> WHM/cPanel, and my problems have started because I can't install FFMPEG >> directly using subversion and the standard make install method, because >> /tmp partition is mounted with noexec and nosuid flags, so it's not >> possible to run the ./configure command. >> Unless there's some kind of simple method which allows me to temporarily >> alter how ./configure operates, so that it doesn't try to store files in >> /tmp, I really don't know what to do, other than what I've already done; >> installing an RPM version of which I don't know how to add on the amr >> fixes. >> The reason I contacted you in particular is because you wrote a tutorial >> on the subject off ffmpeg and from looking through your website, you have >> a great deal of expertise in managing Linux. >> If you could please get back to me with how much you would charge etc to >> do this, I would very much appreciate it. It would just be nice to be >> able to talk to somebody trustworthy, who understands and is willing to >> assist me with these issues. >> Best regards >> Mark Worthington > > > -- > ----------------------------------------------------------------- > Name : Suramya Tomar email: suramya at suramya.com > Yahoo ID: suramya AIM: SuramyaTomar > Homepage URL: https://www.suramya.com > ----------------------------------------------------------------- > > ********************************************************** > Disclaimer: > Any errors in spelling, tact, or fact are transmission errors. > **********************************************************
--************************************************************Name : Suramya Tomar email: suramya at suramya.com Yahoo ID: suramya AIM: SuramyaTomar Homepage URL: https://www.suramya.com
Predrag Ivanovic [predivan at ptt.yu]
Wed, 18 Oct 2006 18:05:05 +0200
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]https://dl.atrpms.net/all/ffmpeg-0.4.9-17_r6524.at.src.rpm or https://dag.wieers.com/packages/ffmpeg/ffmpeg-0.4.9-0.6.20060918.rf.src.rpm [2]https://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip [3]https://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zipIt'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.specThat'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?
https://dag.wieers.com/howto/rpm/ https://www-106.ibm.com/developerworks/library/l-rpm1/ https://www.centos.org/modules/newbb/index.php man rpm [4]https://www.rpm.org/max-rpm/s1-rpm-miscellania-srpms.html [5] According to avcodec/amr.c [6]https://www.rpm.org/max-rpm/ch-rpm-b-command.htmlHTH.
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