Page 1 of 2 12 LastLast
Results 1 to 25 of 36
  1. #1
    Join Date
    May 2006
    Posts
    1,426

    Thumbs up How to install ffmpeg on centos/rhel, the simple way

    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
    Code:
    nano -w /etc/yum.repos.d/dag.repo
    Insert
    Code:
    [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.

  2. #2
    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...

    Code:
    =============================================================================
     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]#

  3. #3
    Join Date
    May 2002
    Location
    Raleigh, NC
    Posts
    714
    try installing the rpmforge rpm on your system first:

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

  4. #4
    Thanks, that worked....

  5. #5
    Join Date
    Jul 2007
    Location
    western Canada
    Posts
    4
    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

  6. #6
    Is there any documentation for installing ffmpeg on winows

  7. #7
    Join Date
    Jul 2007
    Location
    western Canada
    Posts
    4
    there is a link but I do not have enough posts to put it in here

  8. #8
    what if the OS is debian like, slackware or gentoo?

    for better instructions go here:
    http://forums.theplanet.com/index.php?showtopic=64541
    Server Surgeon George
    http://www.serversurgeon.com
    Linux, BSD and Windows Administration Services
    Toll Free US 877-378-7436 International +1-213-291-9191

  9. #9
    Join Date
    May 2002
    Location
    Raleigh, NC
    Posts
    714
    Quote Originally Posted by houlie View Post
    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

  10. #10
    Join Date
    May 2006
    Posts
    1,426
    Quote Originally Posted by izghitu View Post
    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

  11. #11
    Join Date
    Jul 2007
    Location
    western Canada
    Posts
    4
    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

  12. #12
    Quote Originally Posted by SecureServerTech View Post
    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 it
    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.
    Server Surgeon George
    http://www.serversurgeon.com
    Linux, BSD and Windows Administration Services
    Toll Free US 877-378-7436 International +1-213-291-9191

  13. #13
    another short cut to compile ffmpeg. nice one.
    Affordable Managed Hosting Solutions for Professional & Business since 2001
    Mxhub.com - Global : USA - UK - Canada - Europe - Asia Pacific


  14. #14
    Join Date
    May 2006
    Posts
    1,426
    Quote Originally Posted by izghitu View Post
    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

  15. #15
    Join Date
    Jul 2007
    Location
    western Canada
    Posts
    4
    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.

  16. #16
    Join Date
    May 2006
    Posts
    1,426
    what happens when you add the repo, rpmforge, and then yum install ffmpeg ?

  17. #17
    Join Date
    Nov 2005
    Location
    Romania
    Posts
    194
    This is ... what`s that word, oh yes, awsome !

  18. #18
    Join Date
    Jul 2007
    Location
    Zamunda
    Posts
    161
    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

  19. #19
    Join Date
    May 2006
    Posts
    1,426
    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

  20. #20
    Join Date
    Jul 2007
    Location
    Zamunda
    Posts
    161
    thanks for the reply

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


  21. #21
    Join Date
    Jul 2007
    Location
    Zamunda
    Posts
    161
    I can,t install it , I try all ... nothing

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

    thanks

  22. #22
    Join Date
    May 2006
    Posts
    1,426
    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?

  23. #23
    Join Date
    Jul 2007
    Location
    Zamunda
    Posts
    161
    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

  24. #24
    Join Date
    May 2006
    Posts
    1,426
    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.

    Code:
    yum update
    Code:
    yum install ffmpeg ffmpeg-devel
    And 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

  25. #25
    Join Date
    Jul 2006
    Location
    Clovis, CA
    Posts
    278
    FOR the ultra easy way to install all the video codecs try http://ffmpeginstall.sourceforge.net/

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •