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

Early Returns on Firefox Quantum Point to Growth

When we set out to launch Firefox Quantum earlier this year, we knew we had a hugely improved product. It not only felt faster — with a look and feel that tested off the charts — it was measurably faster. Thanks to multiple changes under the hood, we doubled Firefox’s speed while using 30% less memory than Chrome. In less than a month, Firefox Quantum has already been installed by over 170M people around the world. We’re just getting started and early returns are super encouraging. Read more Also: Mozilla Joins Net Neutrality Blackout for ‘Break the Internet’ Day

Linux Foundation News

  • Juniper Networks Reinforces Longstanding Commitment to Open Source by Moving OpenContrail's Codebase to the Linux Foundation
    Juniper Networks (NYSE: JNPR), an industry leader in automated, scalable and secure networks, today further bolstered its support for open standards during its annual NXTWORK user conference, by announcing its intent to move the codebase for OpenContrail™, an open-source network virtualization platform for the cloud, to the Linux Foundation. Juniper first released its Juniper® Contrail® products as open sourced in 2013 and built a vibrant user and developer community around this project. Earlier this year, Juniper expanded the project's governance, creating an even more open, community-led effort to strengthen the project for its next growth phase. Adding OpenContrail's codebase to the Linux Foundation's networking projects will further its objective to grow the use of open source platforms in cloud ecosystems.
  • Hyperledger Hub Supports Open Source Blockchain Development
    Hyperledger is a global blockchain collaboration hub created and hosted by nonprofit The Linux Foundation. Its members are leaders in finance, banking, the Internet of Things, supply chains, manufacturing and technology. Now two years in, Hyperledger compares closely to the Ethereum Enterprise Alliance. Hyperledger is a hub for communities of software developers building blockchain frameworks and platforms. These developers, on the other hand, are a mix of individuals and teams from organizations around the world.
  • Linux Foundation Continues to Emphasize Diversity and Inclusiveness at Events
    This has been a pivotal year for Linux Foundation events. Our largest gatherings, which include Open Source Summit, Embedded Linux Conference, KubeCon + CloudNativeCon, Open Networking Summit, and Cloud Foundry Summit, attracted a combined 25,000 people from 4,500 different organizations globally. Attendance was up 25 percent over 2016. Linux Foundation events are often the only time that developers, maintainers, and other pros who contribute to Linux and other critical open source projects — like AGL, Kubernetes and Hyperledger to name a few — get together in person. Face-to-face meetings are crucial because they speed collaboration, engagement and innovation, improving the sustainability of projects over time.  

today's leftovers

  • Personal Backups with Duplicati on Linux
  • Flatpak'ed Epiphany Browser Becomes More Useful
    Epiphany 3.27.3 was released this morning as the newest release of GNOME's web browser in the road to the GNOME 3.28 stable desktop debut next March.
  • BlackArch 2017.12.11
    Today we released new BlackArch Linux ISOs. For details see the ChangeLog below. Here's the ChangeLog: update blackarch-installer to version 0.6.2 (most important change) included kernel 4.14.4 updated lot's of blackarch tools and packages updated all blackarch tools and packages updated all system packages bugfix release! (see blackarch-installer)
  • Latest Linux Distribution Releases (The Always Up-to-date List)
  • Mining cryptocurrency with Raspberry Pi and Storj
    I'm always looking for ways to map hot technologies to fun, educational classroom use. One of the most interesting, and potentially disruptive, technologies over the past few years is cryptocurrencies. In the early days, one could profitably mine some of the most popular cryptocurrencies, like Bitcoin, using a home PC. But as cryptocurrency mining has become more popular, thanks in part to dedicated mining hardware, the algorithms governing it have boosted computational complexity, making home PC mining often impractical, unprofitable, and environmentally unwise.
  • Huawei Collaborated with the Developers of Phoenix OS for the Mate 10’s Easy Projection Feature
    Though the company has virtually no presence in the United States, Huawei is a top 3 smartphone manufacturer in the world. Its subsidiary, Honor, aims to penetrate the Indian market with budget smartphones. Elsewhere, Huawei recently launched the Huawei Mate 10 and Mate 10 Pro in several markets around the world, and rumors have it the device will launch in the United States as well. Apart from the AI features powered by the company’s HiSilicon Kirin 970 SoC, one of the company’s most publicized features is Easy Projection. While not as powerful as Samsung DeX, it brings a desktop OS-like experience without needing to purchase an expensive accessory. Huawei is pushing the feature on its flagship devices, though there’s something about Easy Projection that hasn’t really been mentioned in the press yet. Behind Huawei’s Easy Projection feature is a relatively unheard of player—Beijing Chaozhuo Technology, developers of Phoenix OS.
  • Namaste ! (on the road to Swatantra 2017)
    I’ll have the pleasure to give a talk about GCompris, and another one about Synfig studio. It’s been a long time since I didn’t talk about the latter, but since Konstantin Dmitriev and the Morevna team were not available, I’ll do my best to represent Synfig there.
  • #PeruRumboGSoC2018 – Session 4
    We celebrated yesterday another session of the local challenge 2017-2 “PeruRumboGSoC2018”. It was held at the Centro Cultural Pedro Paulet of FIEE UNI. GTK on C was explained during the fisrt two hours of the morning based on the window* exercises from my repo to handle some widgets such as windows, label and buttons.
  • Chrome 63 revamps Bookmark Manager w/ Material Design on Mac, Windows, Linux, Chrome OS
    Chrome 63 began rolling out to Android and desktop browsers last week with the usual security fixes and new developer features. On the latter platform, this update introduces Material Design to the Bookmark Manager. Several versions ago, Google began updating various aspects of the browser with Material Design, including History, Downloads, and Settings. Like the Flags page for enabling experiments and in-development features, which Google also revamped in version 63, the Bookmark Manager (Menu > Bookmarks > Bookmark Manager) adopts the standard Materials UI elements. This includes an app bar that houses a large search bar. It adopts the same dark blue theme and includes various Material animations and flourishes.
  • ExpressVPN Unveils Industry’s First Suite of Open-Source Tools to Test for Privacy and Security Leaks
  • New format in GIMP: HGT
    Lately a recurrent contributor to the GIMP project (Massimo Valentini) contributed a patch to support HGT files. From this initial commit, since I found this data quite cool, I improved the support a bit (auto-detection of the variants and special-casing in particular, as well as making an API for scripts). So what is HGT? That’s topography data basically just containing elevation in meters of various landscape (HGT stands for “height“), gathered by the Shuttle Radar Topography Mission (SRTM) run by various space agencies (NASA, National Geospatial-Intelligence Agency, German and Italian space agencies…).
  • What You Need To Know About The Intel Management Engine
    Over the last decade, Intel has been including a tiny little microcontroller inside their CPUs. This microcontroller is connected to everything, and can shuttle data between your hard drive and your network adapter. It’s always on, even when the rest of your computer is off, and with the right software, you can wake it up over a network connection. Parts of this spy chip were included in the silicon at the behest of the NSA. In short, if you were designing a piece of hardware to spy on everyone using an Intel-branded computer, you would come up with something like the Intel Managment Engine. Last week, researchers [Mark Ermolov] and [Maxim Goryachy] presented an exploit at BlackHat Europe allowing for arbitrary code execution on the Intel ME platform. This is only a local attack, one that requires physical access to a machine. The cat is out of the bag, though, and this is the exploit we’ve all been expecting. This is the exploit that forces Intel and OEMs to consider the security implications of the Intel Management Engine. What does this actually mean?

Red Hat News