Language Selection

English French German Italian Portuguese Spanish

How to install ffmpeg on centos/rhel, The simple way!

Filed under
Howtos

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!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Problem installing....

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]#

re: Problem Installing

Either install the GPG keys for DAG's repository (RPMforge) - see here.

Or disable gpgcheck (i.e. set to gpgcheck=0) - not recommended for security reasons.

ffmpeg-php doesn't work

Thank you for your Tip,
I could install ffmpeg but cannot configure ffmpeg-php ( after phpize )
.
Do you have any idea about what should I do ?
Thanks

[root@localhost ffmpeg-php-0.5.1]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
[root@localhost ffmpeg-php-0.5.1]#

re: ffmpeg-php doesn't work

First, did you build ffmpeg as shared as the error asks? And if you just installed ffmpeg, try running ldconfig and see if that helps any.

still cannot

srlinuxx wrote:
First, did you build ffmpeg as shared as the error asks? And if you just installed ffmpeg, try running ldconfig and see if that helps any.

I just used yum install ffmpeg .
after adding dag to my rep.

try adding /usr/local/lib to

try adding /usr/local/lib to /etc/ld.so.conf
then do ldconfig -v

if you install the ffmpeg from dag it should do fine.

still cannot

felosi wrote:
try adding /usr/local/lib to /etc/ld.so.conf
then do ldconfig -v

if you install the ffmpeg from dag it should do fine.

Hello , Yes I installed from dag I used yum install ffmpeg

/etc/ld.so.conf has the following

include ld.so.conf.d/*.conf
/usr/ofed/lib
/usr/local/lib

I did ldconfig -v
but getting the same result .

is there any ideas ?
is there an option to do something like
yum install ffmpeg with --enable-shared ?

Thanks

ahh, yum install

ahh, yum install ffmpeg-devel that will do it

More in Tux Machines

Linux Foundation: OpenContrail, SDNs, ONAP

  • Juniper Flips OpenContrail To The Linux Foundation
    It’s a familiar story arc for open source efforts started by vendors or vendor-led industry consortiums. The initiatives are launched and expanded, but eventually they find their way into independent open source organizations such as the Linux Foundation, where vendor control is lessened, communities are able to grow, and similar projects can cross-pollinate in hopes of driving greater standardization in the industry and adoption within enterprises.
  • Juniper Hands OpenContrail SDN to Linux Found. Before It's Too Late
    After failing to develop a community around the project and receiving pushback from a major backer, Juniper may be saving Contrail from becoming irrelevant
  • CableLabs Announces Two Open Source Projects for NFV
    SNAPS is an overarching program at CableLabs to facilitate the adoption of software-defined networking (SDN) and network functions virtualization (NFV) within the CableLabs’ community. The organization says it spearheaded SNAPS to fill in gaps within open source to ease the adoption of SDN and NFV for its cable members.
  • Bell becomes first operator to launch ONAP in production
    Canadian telecommunications company Bell announced it has become the first company to launch an open source version of the Open Network Automation Platform (ONAP) in production. The announcement was noted by Arpit Joshipura, general manager of networking and orchestration at the Linux Foundation, in a company blog post. According to Joshipura, the news marks a first step toward using ONAP as a common platform across Bell’s network as the company re-aligns itself to follow a multi-partner DevOps model.

OSS/Sharing Leftovers

  • Chrome 64 Beta: stronger pop-up blocker, Resize Observer, and import.meta
  • Chrome 64 Beta Brings Stronger Pop-Up Blocker, JavaScript Improvements
    Ahead of the holidays Google has pushed out the Chrome 64 beta to all supported platforms.
  • The Apache Software Foundation Announces Apache® Hadoop® v3.0.0 General Availability
    The Apache Software Foundation (ASF), the all-volunteer developers, stewards, and incubators of more than 350 Open Source projects and initiatives, today announced Apache® Hadoop® v3.0.0, the latest version of the Open Source software framework for reliable, scalable, distributed computing.
  • Open source science: Scientists researching rice plant genetics agree to not file for patents
    The Foundation for Food and Agriculture Research (FFAR), a nonprofit established in the 2014 Farm Bill with bipartisan congressional support, awarded a $1 million Seeding Solutions grant to University of California, Davis (UC Davis) to study the genetics of rice plants. Together with researchers at the University of North Carolina and collaborators, the team will develop and implement a chemistry-driven gene discovery approach to identify genes that modulate root traits.
  • Lytro could open source their light-field photo sharing platform
  • Lytro considering open source light field photo sharing platform
    Lytro is reportedly considering an open source solution after announcing it would no longer support its sharing platform for Lytro cameras’ ‘living images.’
  • When Waze Won't Help, Palestinians Make Their Own Maps
    If you want to drive the 15 or so miles from Jerusalem to the city of Jericho, in the Palestinian Territories, Google Maps will tell you: “Can’t find a way there.” Waze will issue a warning: “Caution: This destination is in a high risk area or is prohibited to Israelis by law.” If you press “Confirm Drive” nonetheless, the app will direct you, just not all the way. When you pass from Israel into the West Bank, part of the occupied Palestinian Territories, Waze’s directions simply end. To keep going, you need to change your setting to allow access to “high risk” areas. Even then, GPS coverage tends to be limited.
  • Using Gmail with OAUTH2 in Linux and on an ESP8266
    One of the tasks I dread is configuring a web server to send email correctly via Gmail. The simplest way of sending emails is SMTP, and there are a number of scripts out there that provide a simple method to send mail that way with a minimum of configuration. There’s even PHP mail(), although it’s less than reliable.
  • Simplicity Before Generality, Use Before Reuse
    A common problem in component frameworks, class libraries, foundation services, and other infrastructure code is that many are designed to be general purpose without reference to concrete applications. This leads to a dizzying array of options and possibilities that are often unused or misused — or just not useful. Generally, developers work on specific systems; specifically, the quest for unbounded generality rarely serves them well (if at all). The best route to generality is through understanding known, specific examples, focusing on their essence to find an essential common solution. Simplicity through experience rather than generality through guesswork.
  • What Ruby Needs
    Of all of the questions we receive at RedMonk, one of the most common concerns programming languages. Whether from members of a given community or a commercial entity, the desire is to better understand a given language’s trajectory and the context around it. Is it going up or down, and what are the reasons for that direction? And, of course: can that direction be meaningfully changed? Recently, we’ve received several such inquiries around Ruby. For those with an interest in the language, then, the following is a quick public summary of the answers we’ve been providing privately.
  • HTML 5.2 is done, HTML 5.3 is coming
    Today W3C releases HTML 5.2. This is the second revision of HTML5, following last year’s HTML 5.1 Recommendation. In 2014 we expressed a goal to produce a revision roughly every year; HTML 5.2 is a continuation of that commitment. This Recommendation like its predecessor provides an updated stable guide to what is HTML. In the past year there has been a significant cleanup of the specification. We have introduced some new features, and removed things that are no longer part of the modern Web Platform, or that never achieved broad interoperability. As always we have also fixed bugs in the specification, making sure it adapts to the changing reality of the Web. Many of the features added integrate other work done in W3C. The Payment Request API promises to make commerce on the Web far easier, reducing the risks of making a mistake or being caught by an unscrupulous operator. New security features such as Content Security Policy protect users more effectively, while new work incorporated from ARIA helps developers offer people with disabilities a good user experience of their applications.

Games: SteamOS Birthday, Best Linux Games of 2017, Finding Paradise

  • It's Been Four Years Since SteamOS Began Shipping With Not Much To Show
    It was four years ago this week that Valve began shipping SteamOS, their Debian-based Linux distribution intended for Steam Machines and those wanting a gaming-oriented Linux distribution. While Valve still technically maintains the SteamOS Linux distribution, the outlook at this point is rather bleak. For our coverage from four years ago when Valve began shipping SteamOS 1.0 based on Debian Wheezy, see SteamOS Compositor Details, Kernel Patches, Screenshots, Former NVIDIA, Microsoft Developers Doing Lots Of The SteamOS Work, and The First NVIDIA GeForce Benchmarks On The SteamOS Beta.
  • 7 Best Linux Games of 2017
    We take a look at the best Linux games of 2017, ranging from AAA titles to introspective indie hits. So park your gamepad, pop your feet up, and raise a glass of something socially acceptable to what’s been another terrific year for Tux fans with twitchy thumbs!
  • Finding Paradise Available Now for PC, Mac, and Linux
    Canadian indie game studio Freebird Games has released Finding Paradise, a spiritual successor to the studio's hit game To the Moon. You can check out the game's release date trailers below, the first being slightly less of a "serious" trailer:

OSS: Blockchain, Avast, Predictions, GreenKey

  • Startup Aims to Build Open-Source Telecom Ecosystem on Blockchain
    There are 2,000+ mobile network operations in charge of providing communication services at global scale. However, the traditional infrastructure is centralized, inflexible and inaccurate. Common services like 3G/4G, Wi-Fi, BOSS mobile communications solutions and companies that use cloud-based communications solutions are often unable to render accurate content billing and distribution. Conventional mobile packages overcharge customers, not to mention that they pose concerns around data transmissions. An alternative solution to average mobile network providers could be Blockchain technology.
  • Merry Xmas, fellow code nerds: Avast open-sources decompiler
    Malware hunting biz and nautical jargon Avast has released its machine-code decompiler RetDec as open source, in the hope of arming like-minded haters of bad bytes and other technically inclined sorts with better analytical tools. As discussed as the recent Botconf 2017 in France earlier this month, RetDec provides a way to turn machine code – binary executables – back into an approximation of the original source code.
  • 10 open source predictions for 2018
    With 2017 just about done and dusted, dozens of open source experts have polished their crystal balls and made predictions about what can be expected in the open source space in 2018. Now it's our turn. (With fingers firmly crossed) here are 10 open source trends that you may – or may not – see coming to the fore next year. Some are obvious, some are frivolous, and some could just change your life.
  • Stop Calling Everything "Open Source": What "Open Source" Really Means
    "Open source" is an exciting concept in the world of software and beyond. But it shouldn't be applied to contexts where it makes no sense.
  • GreenKey to join Symphony; open source voice software
    GreenKey, creator of patented voice software with integrated speech recognition designed for the financial markets, today announced the firm has joined the Symphony Software Foundation, a nonprofit organization fostering innovation in financial services through open source software (OSS).
  • GreenKey Joins the Symphony Software Foundation; Will Open Source Voice Software
    GreenKey, creator of patented voice software with integrated speech recognition designed for the financial markets, today announced the firm has joined the Symphony Software Foundation, a nonprofit organization fostering innovation in financial services through open source software (OSS). GreenKey will release a Community Edition of its voice software development kit (SDK) that will enable banks and other financial market firms to "voice enable" any web application.