Your Cart is Empty Reseller Login or Sign up FAQ Search

How to install ffmpeg on a VPS

Along with the other reseller hosting services and cheap dedicated server solutions that you can find at our web site we offer and one of the best virtual private server in the net. The virtual private servers offer you the freedom and power of a dedicated server combined with the prices of low cost reseller hosting account. Along with this you have the option of choosing the Control Panel of your VPS and the Linux Operation System on which it will run to further boost your performance and freedom to work with the Virtual Server. The reliable vps hosting that we offer is the best solution for companies that find the other hosting reseller programs we have to just not be enough any more, but are still not ready to move to a full dedicated server hosting.

In this tutorial we will show you how to install FFMPEG on your VPS and allow you to use video streaming. To perform the installation you will have to log to your VPS through SSH and with your root password. From the shell interface you will need to use the following command lines to perform the installation:

yum install ffmpeg ffmpeg-devel

It is possible that in the process you may receive a package not found error. In such cases you will have to add few lines of code to the yum repository for dag packages installation in order to solve this problem. To do this create a file named dag.repo in /etc/yum.repos.d and enter the following lines in it:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=https://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

after that run

yum install ffmpeg ffmpeg-devel

If you do not receive any more errors in the process then the installation will complete correctly and you will have the FFMPEG installed.If not you will receive warnings about a missing GPG public key. To fix this issue you will have to run the following command line in the console:

rpm -Uhv https://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

If at some point you receive a missing dependency error like the example below:

Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package ffmpeg
Error: Missing Dependency: libtheora.so.0(libtheora.so.1.0) is needed by package ffmpeg
Error: Missing Dependency: rtld(GNU_HASH) is needed by package ffmpeg
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package a52dec
Error: Missing Dependency: rtld(GNU_HASH) is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package gsm
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package x264
Error: Missing Dependency: rtld(GNU_HASH) is needed by package xvidcore
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package lame
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package a52dec
Error: Missing Dependency: rtld(GNU_HASH) is needed by package faad2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package x264
Error: Missing Dependency: rtld(GNU_HASH) is needed by package lame
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package xvidcore
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faac
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faad2
Error: Missing Dependency: libgif.so.4 is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package faac
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package gsm
Error: Missing Dependency: libpng12.so.0(PNG12_0) is needed by package imlib2
Error: Missing Dependency: rtld(GNU_HASH) is needed by package libmp4v2
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package libmp4v2

then most probably the version of GLIB 2.3 that you have installed is older than the required version. To check what version of GLIB you have installed on your VPS just run:

yum list glib*

This should show you the latest GLIB package version.

To solve this matter you will need to check if your rpmforge packages are compatible with the current release of your existing CentOS version.

You can check the file /etc/yum.repos.d/rpmforge.repo and it should look something like that for example CentOS release 5.4 (Final). If you find lines like https://apt.sw.be/redhat/el5/en/mirrors-rpmforge you will have to do some changed to the rpmforge.repos like the example below:

Note: It is advisavle to Backup the original rpmforge.repo file before you perform the changes to its content. [rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = https://apt.sw.be/redhat/el4/en/$basearch/dag
mirrorlist = https://apt.sw.be/redhat/el4/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

To check what is the current version and distribution of Linux that you are using type the following command:

cat /etc/redhat-release

Once you have done all of the steps above, perform again yum install ffmpeg. This should solve the problems that you have received in the process. After the installation completes you may check if ffmpeg is working correctly with the following commands.

ffmpeg
ffmpeg -formats
ffmpeg --help
// This lists path of mpeg, its modules and other path information ffmpeg -i Input.file Output.file
This way you can check what audi/video formats are supported

ffmpeg -formats > ffmpeg-format.txt

You can see the ffmped output in the ffmpeg-formats.txt file

D means decode
E means encode
V means video
A means audio
T = Truncated

The cheap VPS servers that we offer provides you with the we offer provides you with the power and stability that are always required in the modern web host business. With them you receive absolute independance and you can start your own web hosting business. In addition the VPS server hosting provides solution from the problems that may be caused by using a cloud hosting account as well as total anonimity as a reseller. The full control that you will have and the help that you can always receive from our experienced support departmet lists us among the best VPS server hosting provides through the net.

« Back to menu