search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Installing FFmpeg, MPlayer and MEncoder on CPanel and Centos 6 on Hyper-V
Posted in Linux Server, Virtual Machine Manager | 8 Comments | 20,153 views | 03/10/2011 13:52

You need FFmpeg, MPlayer and MEncoder for video processing. I’ll show you how to install and configure it on Hyper-V.
I’ve already posted couple of articles about CentOS 6 installation on Hyper-V, so I won’t mention about that again.

You can see CentOS 6 installation on Hyper-V at the following posts:

So I assume you have a CentOS 6 with Hyper-V LIS v3.1. So lets continue with our installation.
First, we need to install RPMforge repository on CentOS 6.

1. Install the DAG GPG key.

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

2. Download RPMforge-release package.

cd /home
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm (if your server x86)
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

3. Verify the RPMforge-release package you have downloaded.

rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

4. Install the RPMforge-release package.

rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

5. Now we can install FFmpeg, MPlayer and MEncoder.

yum install ffmpeg ffmpeg-devel mplayer mencoder

6. You may get this error when you try to install components.

Requires: perl-SGMLSpm >= 1.03ii

7. Download perl-SGMLSpm package to CentOS.

wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/core/3/x86_64/os/Fedora/RPMS/perl-SGMLSpm-1.03ii-14.noarch.rpm

8. perl-SGMLSpm may require OpenJade.

9. Let’s install openjade on CentOS.

yum install openjade

10. Try re-install perl-SGMLSpm.

rpm -ivh perl-SGMLSpm-1.03ii-14.noarch.rpm

11. After perl-SGMLSpm installation, you can continue to install FFmpeg, MPlayer and MEncoder.

yum install ffmpeg ffmpeg-devel mplayer mencoder

12. Now, you can test your ffmpeg installation.

ffmpeg -v

If you see same results on your server, it means your ffmpeg is ready.


Comments (8)

Abdulrhman

October 5th, 2011
11:31:35

Thanks !

but what cpanel ” as ur wrote in the title” has nothing to do with the content ? :D


admin

October 5th, 2011
16:31:29

Hello,

I wrote CPanel because I installed them after CPanel installation. I mean there is no bad effect on CPanel, you can safely install.

Thanks.

Yusuf.


Gurminder

October 7th, 2011
00:29:45

Hi
this looks nice but can u please tell here how to install ffmpeg-php for centos6
my script requires ffmpeg-php as well and need compilation in php.ini
i will be very thankfull to you if u help me on this issue.


admin

October 8th, 2011
12:38:52

Hello Gurminder,

You can see ffmpeg-php installation from this post:
http://www.yusufozturk.info/linux-server/installing-ffmpeg-php-on-cpanel-and-centos-6-on-hyper-v.html

Yusuf.


Doug

November 18th, 2011
00:30:58

I successfully got ffmpeg installed, thanks to your tutorial. The issue I have is that it appears as though the vorbis ogg audio codec only supports decoding, not encoding. From what I have read, this is a compile option for ffmpeg. Do you know anything about this?

ffmpeg -acodec shows ogg, but only with the ‘D’ flag, not ‘E’


Yusuf Ozturk » Installing FFmpeg-PHP on CPanel and Centos 6 on Hyper-V

April 11th, 2013
06:46:55

[…] http://www.yusufozturk.info/linux-server/installing-ffmpeg-mplayer-and-mencoder-on-centos-6-and-cpan… […]


AnimeDose

November 12th, 2013
01:46:53

All I get is “-bash: ffmpeg: command not found” – how do I fix that?


Zafer

August 20th, 2014
17:36:45

Teşekkürler …



Leave a Reply