Web Hosting Talk







View Full Version : How to install ffmpeg on centos/rhel, the simple way


jon-f
06-07-2007, 05:43 PM
I seen where a lot of server management companies are charging big bucks for this, so this might save you some time and money.
First
nano -w /etc/yum.repos.d/dag.repo
Insert
[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 and search for ffmpeg and install all ffmpeg packages including devel.
Seems there is some lib problems along the way so in /etc/ld.so.conf
add
/usr/local/lib
then
ldconfig -v
To install the php extension follow the simple directions on http://ffmpeg-php.sourceforge.net/
Then you should be all set!



Tried and tested on 2 different centos server, works fine.

Pulsorock
06-29-2007, 01:45 PM
Thanks for the tutorial. I tried the steps, but when I try to install via yum, it saids this error:


warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for imlib2-1.2.2-1.el5.rf.i386.rpm is not installed

Here is the output...

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ffmpeg i386 0.4.9-0.9.20070530.el5.rf dag 5.3 M
Installing for dependencies:
SDL i386 1.2.10-8.el5 base 233 k
a52dec i386 0.7.4-8.el5.rf dag 78 k
faac i386 1.25-2.el5.rf dag 134 k
faad2 i386 2.5-2.el5.rf dag 327 k
giflib i386 4.1.3-7.1.el5.1 base 39 k
gsm i386 1.0.10-6.el5.rf dag 68 k
imlib2 i386 1.2.2-1.el5.rf dag 919 k
lame i386 3.97-1.el5.rf dag 619 k
libmp4v2 i386 1.5.0.1-3.el5.rf dag 895 k
libogg i386 2:1.1.3-3.el5 base 19 k
libtheora i386 1.0alpha7-1 base 708 k
libvorbis i386 1:1.1.2-2 base 192 k
x264 i386 0.0.0-0.4.20070529.el5.rf dag 789 k
xvidcore i386 1.1.2-1.el5.rf dag 532 k

Transaction Summary
=============================================================================
Install 15 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 11 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6


Public key for imlib2-1.2.2-1.el5.rf.i386.rpm is not installed
[root@localhost home]#

TQ Mark
06-29-2007, 03:14 PM
try installing the rpmforge rpm on your system first:

http://dag.wieers.com/rpm/packages/rpmforge-release/

Pulsorock
06-29-2007, 03:35 PM
Thanks, that worked....

houlie
07-08-2007, 12:29 AM
TQ Mark

I had the same msg about the key, followed your link to the rpm's. Can you tell me which one I choose?

thanks

Shining Star
07-08-2007, 01:38 AM
Is there any documentation for installing ffmpeg on winows

houlie
07-08-2007, 02:38 AM
there is a link but I do not have enough posts to put it in here

ServerSurgeon George
07-08-2007, 03:54 AM
what if the OS is debian like, slackware or gentoo?

for better instructions go here:
http://forums.theplanet.com/index.php?showtopic=64541

TQ Mark
07-08-2007, 12:26 PM
TQ Mark

I had the same msg about the key, followed your link to the rpm's. Can you tell me which one I choose?


pick the latest version for your distro. i.e. el4 = RHEL 4 or CentOS 4.x

jon-f
07-08-2007, 04:54 PM
what if the OS is debian like, slackware or gentoo?

for better instructions go here:
http://forums.theplanet.com/index.php?showtopic=64541

lol ya better instructions. compiling from source and even then it not work for most. I dont think so. That takes forever and its much easier to install the rpms. Im not saying this post is super awesome cause I made it and all but it is the easiest and fastest way to do it

On the dag repo, you can download and install their key or install the rpmforge, getting the one for your distro. If you use centos 5 get the rhel 5 one and so on

houlie
07-08-2007, 11:07 PM
yum search ffmpeg
has given me a large list to choosse from
do I need to install
xmms-wma.i38
xine-lib.i386
vlc.i386
motion.i386
gstreamer-ffmpeg.i386
videolan-client.i386

ServerSurgeon George
07-09-2007, 05:41 AM
lol ya better instructions. compiling from source and even then it not work for most.

Why it should not work for all? In contrary compiling from sources works for all types of OS(BSD, MAC, Linux) and for all distributions

I dont think so. That takes forever and its much easier to install the rpms. Im not saying this post is super awesome cause I made it and all but it is the easiest and fastest way to do itCompiling from sources takes forever? I don't think so. Easier to install from RPMs? Maybe but what if I use Debian or Suse or Slackware or FreeBSD and I do not have yum or RPMs? The fact that you made it does not necessarily mean that it's awesome and is the easiest and fastest.

Mxhub
07-09-2007, 06:36 AM
another short cut to compile ffmpeg. nice one.

jon-f
07-09-2007, 10:54 PM
Why it should not work for all? In contrary compiling from sources works for all types of OS(BSD, MAC, Linux) and for all distributions

Compiling from sources takes forever? I don't think so. Easier to install from RPMs? Maybe but what if I use Debian or Suse or Slackware or FreeBSD and I do not have yum or RPMs? The fact that you made it does not necessarily mean that it's awesome and is the easiest and fastest.

Man cmon, how could you possibly have looked at this thread for argument. Look at the title of the thread , notice : centos/rhel not mac, freebsd, or slackware.

I mean serious, if you have a redhat based system , just have to install an rpm and a repo, and then install it fairly simple. Whats the harm in that?

Just relax man, this is just a thread for an easy way to do something on a redhat based server, no need for a debate ;)

houlie
07-10-2007, 03:52 AM
Well it did not work .. but then I am not an expert. I am trying to install on a Virtuozzo VPS with CentOS and Plesk 8.1. I had been told that it may not install properly on Plesk.

jon-f
07-10-2007, 04:58 AM
what happens when you add the repo, rpmforge, and then yum install ffmpeg ?

bin_asc
09-09-2007, 02:45 PM
This is ... what`s that word, oh yes, awsome ! :)

BaiGanio
09-14-2007, 01:15 AM
hi SecureServerTech

can you explane again how to do this please :

______________________________________________________________

Then yum update and search for ffmpeg and install all ffmpeg packages including devel.
Seems there is some lib problems along the way so in /etc/ld.so.conf
add
/usr/local/lib
then
ldconfig -v

-----------------------------------------------------------------------------------------------------

thanks

jon-f
09-14-2007, 09:56 AM
Well I dont know your particular situation. but you can check /etc/ld.so.conf
and make sure all your lib diretories are in there, if not then add them and do ldconfig -v

BaiGanio
09-14-2007, 10:42 PM
thanks for the reply

I try to insnall it on LiteSpeed STD , will try now again

:agree:

BaiGanio
09-14-2007, 11:45 PM
I can,t install it , I try all ... nothing

can you please explane step by step , if you have the time

thanks

jon-f
09-15-2007, 12:12 AM
Well you just get the romforge from dag as listed above, install ffmpeg and ffmpeg-devel.
Then you should be good to go

What problems are you getting?

BaiGanio
09-15-2007, 12:33 AM
I don't know
I,m not realy familliar with bash and Linux commands
I did all you says , nothing happend
I don't know how to run yum install
cam you please tell me one more time , step by step hoe to do it

thanks

PP I try on CentOS 4.5

jon-f
09-15-2007, 12:47 AM
Well, you really need a crash course in servers ;)
And you can find everything, all knowledge possible about running a server from google. Googling what you wanna do like "How to install ffmpeg" or how to install ffmpeg-php" And "unix commands"

Anyway, here ya go. Now you copy and paste
what you see in the code field, These are commands.

rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
yum update
yum install ffmpeg ffmpeg-develAnd in you can use "yum search "softwarename" to find software you are looking for. When you find the software just "yum install softwareyoufound"

Now, youre on your own on the php module, you can find the walkthrough on it by googling ffmpeg-php

Andrew.S
10-08-2007, 12:15 AM
FOR the ultra easy way to install all the video codecs try http://ffmpeginstall.sourceforge.net/

Kounterfeit
11-14-2007, 08:28 PM
Is there any documentation for installing ffmpeg on winows

Umm, yeah ... it's called an executable.

How hard is it to install something on windows? lol.

jon-f
11-14-2007, 09:03 PM
FOR the ultra easy way to install all the video codecs try http://ffmpeginstall.sourceforge.net/

Replying to an old post just liek the two above me lol./
But I got to looking on that ffmpeginstall site

This is a generel installer.

I dont think id want to run anything as root from guys who cant even spell lol.

But really though on centos or redhat, simply install the rpmforge
http://dag.wieers.com/rpm/FAQ.php#B1

yum install ffmpeg*
and anything else you need, simple as that. It has worked on every single centos, fedora, and rhel server Ive done it on

mp3dude
05-30-2008, 06:52 AM
well everything works good i did it with the "For CentOS Yum users there is a very good document on how to enable RPMforge safely using the Yum priorities plugin " wiki.centos.org/Repositories/RPMForge

itajooba
09-10-2008, 04:33 AM
Hi,

I got the following error:


-----------------
yum update /etc/yum.repos.d/dag.repo
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* dag: apt.sw.be
* base: centos.arcticnetwork.ca
* updates: mirror.hmc.edu
* addons: centos.arcticnetwork.ca
* extras: mirror.hmc.edu
primary.xml.gz 100% |=========================| 2.6 MB 00:24
dag : ################################################## 7496/7496
Excluding Packages in global exclude list
Finished
Setting up Update Process
Could not find update match for /etc/yum.repos.d/dag.repo
No Packages marked for Update
---------------

bin_asc
09-10-2008, 07:35 AM
You need to add the repo to the /etc/yum.conf, that command you issues is not correct.

itajooba
09-10-2008, 07:55 AM
i have entered :
-------
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl= apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
---------
where did i went wrong?

bin_asc
09-10-2008, 07:57 AM
You entered :

yum update /etc/yum.repos.d/dag.repo

Yum things "/etc/yum.repos.d/dag.repo" is an app.

You just need to do :

yum update

itajooba
09-10-2008, 08:03 AM
Ho.. Thanks...

Now i am getting :

[~]# yum update
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* dag: apt.sw.be
* base: centos.arcticnetwork.ca
* updates: mirror.hmc.edu
* addons: dds.gina.alaska.edu
* extras: mirror.hmc.edu
dag 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package rsync.i386 0:3.0.3-1.el5.rf set to be updated
---> Package kernel.i686 0:2.6.18-92.1.10.el5 set to be installed
---> Package syslinux.i386 0:3.71-1.el5.rf set to be updated
--> Processing Dependency: perl(Crypt::PasswdMD5) for package: syslinux
--> Processing Dependency: perl(Digest::SHA1) for package: syslinux
---> Package mtr.i386 2:0.74-1.el5.rf set to be updated
---> Package lftp.i386 0:3.7.3-1.el5.rf set to be updated
--> Finished Dependency Resolution
Error: Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux
Error: Missing Dependency: perl(Digest::SHA1) is needed by package syslinux

bin_asc
09-10-2008, 08:06 AM
I don`t want to make it too easy for you :P , so check this :

http://www.google.com/search?hl=en&rls=com.microsoft%3A*%3AIE-SearchBox&rlz=1I7SKPB&q=linux+install+perl+mod

itajooba
09-10-2008, 09:27 AM
Ok... thanks..
i visited cosmicscripts(dot)com / servers / perlmodules.html

but still getting same error.

can you suggest some more clue

alwaysonline247
09-22-2008, 10:57 PM
thanks for the info