How to install ffmpeg,mp4box,mplayer,mencoder,flvtool2,ffmpeg-php on CentOS

Source: Internet
Author: User
Tags cpanel epel repo

1. Enable rpm Fusion Yum repositorythe CentOS rpm packages of ffmpeg, MPlayer, MEncoder and Mp4box is available on RPM Fu Sion YUM Repository. RPM Fusion repo depends on packages from EPEL repo. So enable these repositories by installing following RPM packages:

RPM-UVH http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
RPM-UVH http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm
RPM-UVH http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/ rpmfusion-nonfree-release-5-0.1.noarch.rpm
Note:for following ' Yum' Commands, use the switch –exclude "*.i386″On 64-bit systems such as to avoid installing both 64-bit and 32-bit packages. Of course, do not use this switch on 32-bit systems
2. Install FFmpeg, mplayer and mencoder install these packages using following Yum command:
Yum install ffmpeg mplayer mencoder
This would also install various dependency packages like Libtheora, Libvorbis, Libogg, Lame, OPENCORE-AMR, x264, Xvidcore E TC 3. Install Flvtool2 This RPM package are available on RPM Fusion repo. But it also requires Ruby RPMs. However, it is not recommend to install Ruby RPMs on a cpanel server. Cpanel have its own Ruby installer script. So install ruby using following cpanel script
/scripts/installruby
Flvtool2 is available as a Ruby Gems package. Use following gem command to install Flvtool2:
gem install flvtool2
4. Install Mp4box Mp4box is provided by the GPAC package. Install Gpac and its library packages:
Yum install Gpac gpac-libs
5. Install ffmpeg-php ffmpeg-php requires ffmpeg development package. Install this package using Yum:
Yum Install Ffmpeg-devel
Now download the latest ffmpeg-php package:
wget http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
Untar this package, build and install it with following commands:
tar xjf ffmpeg-php-0.6.0.tbz2
CD ffmpeg-php-0.6.0
Phpize
./configure
Make

Make install
Common errors:during ./configureStep if you get a error like "FFmpeg headers not found. Make sure FFmpeg is compiled as shared libraries using the–enable-shared option HTTP://WWW.AIDERPRO.COM/INSTALL-FFMPEGM p4boxmplayermencoderflvtool2ffmpeg-php-centos-2/

How to install ffmpeg,mp4box,mplayer,mencoder,flvtool2,ffmpeg-php on CentOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.