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

GNOME: GUADEC, GSoC, GitLab

  • Petr Kovar: GUADEC 2018
    Back from GUADEC, held in the beautiful Andalusian city of Almería, Spain, from 6th July through 11th July, 2018, I wanted to share a few notes wrt documentation and localization activities at the conference and during the traditional post-conference hacking days.
  • GUADEC18 Developer Center BoF Part 1: The Developer Experience
    At this year’s GUADEC lightning talks I spontaneously announced and arranged a Developer Center BoF (Birds of a Feather) session. We were six attendants who met together Wednesday the 11th September. I think it is important that we communicate our doings to the rest of the community, so I will make a few short blog posts based on our meeting notes and my own thoughts on the subject.
  • GSoC 2018: Safe Shared Access to Cairo Image Surfaces
    I’m working on librsvg, a GNOME SVG rendering library, to port the SVG filter effects and related infrastructure from C to Rust. Librsvg uses Cairo, a 2D graphics library, for most of its drawing operations. Cairo can draw to a number of different surfaces like XCB and Xlib windows and pixmaps, PDF documents and PostScript files.
  • Have you ever commented while angry?
    Here’s my proposal (feature request for GitLab / irssi?

OSS: Apache Cassandra, Jib,WSO2 and More

  • Apache Cassandra at 10: Making a community believe in NoSQL
    Ten years ago this month, when Lehman Brothers was still just about in business and the term NoSQL wasn't even widely known, let alone an irritant, Facebook engineers open-sourced a distributed database system named Cassandra. Back then, the idea that huge numbers of companies would need a scalable database was almost laughable – and that grip of traditional relational database systems is reflected in the mythical moniker given to what would become one of the first of many databases designed to run on a cluster of machines. Named after the Greek figure who was cursed to utter the truth but was never believed, Cassandra might seem an odd choice for a system whose raison d'être is believability – but it delivered a nice dig at the stalwarts of the RDBMS world… and their trust in a false Oracle.
  • Google Launches Jib, Automated Container Packaging for Java Apps
    Google has released software that could automate the packaging of a Java program so that it can be run in the cloud-native environment. Jib is an open-source Java “containerizer,” one that handles all the steps of packaging your application into a container image, according to Appu Goundan and Qingyang Chen, two Google engineers who co-wrote a blog post announcing the new technology. Created over two decades ago at Sun Microsystems, Java was introduced as a “write once, run anywhere” programming language, where all the code would be packaged in a JAR file, and run by a Java Virtual Machine on any platform. The requirements for running code anywhere have expanded with the introduction of containerization, however. Few shops are Java-only these days, and many are turning to containerization for true application portability,
  • WSO2 Summer 2018 Release Brings Agility to Secure Microservices Integration
  • New Operations in Mexico Extend WSO2’s Reach Across Latin America
  • How Open Source Became The Default Business Model For Software
  • 10 Best Kodi Addons You Should Install In 2018 | Legal Addons
    Kodi is one of the most popular media player software which enables you to access videos, music, and pictures via the internet or local storage on a host of platforms. Managed by XBMC foundation, Kodi is an open source software. However, its reputation has been soiled by labeling it as a piracy bearer, and that is why many ask “Is Kodi legal?” You can read more about Kodi and whether it is legal or not here.
  • Summer of Code: Plan for the grand finale
    To get that done, I have to polish up my smack-openpgp branch which has grown to a size of 7000 loc. There are still some minor quirks, but Florian recommended to focus on the big picture instead of spending too much time on small details and edge cases. I also have to release pgpainless to maven central and establish some kind of release cycle. It will be a future challenge for me personally to synchronize the releases of smack-openpgp and pgpainless.
  • Collaborative World Shaping: Why Open-Source Tech Matters in a For-Impact Future
    How many lives could be saved if there was a way to vastly cut down inefficiency and through bureaucracy, by problem solving at a global scale? Could technology help us reach more individuals in need more meaningfully, substantially helping people affected by disasters – in less time? The technology is already out there – but not enough people know about it. In 2017, Hurricane Irma—the strongest hurricane ever recorded in the Atlantic Ocean—made landfall; with widespread, “catastrophic” damage, disaster relief organizations were overwhelmed. “A lot of traditional means of crisis response are very top down, and they didn’t really kick in — we saw headlines about how the Red Cross didn’t show up to shelters,” said Greg Bloom, a community organizer and civic hacker who knew he had to step in to assist.
  • The First Open-Source Smart Contract Platform to be Started by Rootstock
    RSK Labs, formerly known as Rootstock, an Argentinian startup building the first open-source smart contract platform with a 2-way peg to Bitcoin.RSK Labs CEO Diego Gutiérrez Zaldívar on Bitcoin Smart Contracts Sidechain and Crypto Industry Challenges. Even though at this point of time the 2-way peg security of the RSK blockchain is still relying on a group of third parties called ‘Federation’, in the future the developers promise to bring a “trustless” automatic peg. How fast this happens to some degree depends on the overall miners support. The company says its goal is to add value and functionality to the Bitcoin ecosystem by enabling Ethereum-like smart-contracts, near instant payments and higher-scalability, and this past January after almost two years of development its mainnet dubbed Bamboo was finally launched.
  • Creality’s Ender 3 3D Printer is Now Fully Open Source
    Creality3D, founded in 2014, is a 3D printer manufacturer based in China, offering more than 20 products. Their popular Ender 3 was recently voted “Best 3D Printer Under $200” by All3DP (review here). Now, the company is making their most popular 3D printer, the Ender 3, completely open source. This makes it the first Open Source Hardware Association certified 3D printer in China. This means not just a few files have been shared, but all hardware, CAD files, board schematics and firmware files are available. You can find the updated versions on the company’s GitHub page.
  • Charité's researchers integrate open-source platform into the 'Human Brain Project'
    Universitätsmedizin Berlin and the Berlin Institute of Health (BIH) are pleased to announce that 'The Virtual Brain' neuroinformatics platform has joined the EU's Flagship 'Human Brain Project'. With financial support from the EU's Horizon 2020 research and innovation program, Charité's researchers are now integrating their open-source platform into the 'Human Brain Project'. This will provide participating researchers with a research infrastructure that promotes efficiency and reproducibility. The researchers will focus on refining the theoretical underpinnings of the computer models used, developing efficient simulation technology, and working on neuroinformatics solutions that enhance the reproducibility of studies.

Kernel and Graphics: PDS, VKMS and Nouveau

  • PDS 0.98s release
    PDS 0.98s is released with the following changes 1. Fix compilation issue on raspberry pi. 2. Minor rework and optimization on balance code path. 3. Fix wrong nr_max_tries in migrate_pending_tasks. This is mainly a bug fix and minor optimization release for 4.17. The rework of balance code doesn't go well, it actually make more overhead than current implement. Another rework which based on current implement is still on going, hopefully be included in next release.
  • PDS-MQ CPU Scheduler Revised For The Linux 4.17 Kernel With Minor Optimizations
    Alfred Chen announced this week the release of PDS-mq 0.98s, his latest patch-set of this CPU scheduler against the Linux 4.17 upstream code-base and includes minor optimization work and bug fixes. The PDS scheduler stands for the "Priority and Deadline based Skiplist multiple queue scheduler" that is derived from Con Kolivas' former BFS scheduler with Variable Run Queue (VRQ) support. PDS design principles are to be a simple CPU process scheduler yet efficient and scalable. PDS-mq differs from Con Kolivas' current MuQSS scheduler.
  • Add infrastructure for Vblank and page flip events in vkms simulated by hrtimer
    Since the beginning of May 2018, I have been diving into the DRM subsystem. In the beginning, nothing made sense to me, and I had to fight hard to understand how things work. Fortunately, I was not alone, and I had great support from Gustavo Padovan, Daniel Vetter, Haneen Mohammed, and the entire community. Recently, I finally delivered a new feature for VKMS: the infrastructure for Vblank and page flip events. At this moment, VKMS have regular Vblank events simulated through hrtimers (see drm-misc-next), which is a feature required by VKMS to mimic real hardware [6]. The development approach was entirely driven by the tests provided by IGT, more specifically the kms_flip. I modified IGT to read a module name via command line and force the use of it, instead of using only the modules defined in the code (patch submitted to IGT, see [1]). With this modification in the IGT, my development process to add a Vblank infrastructure to VKMS had three main steps as Figure 1 describes.
  • The State Of The VKMS Driver, Preparations For vBlank & Page Flip Events
    One of the exciting additions to look forward to with the upcoming Linux 4.19 kernel cycle is the virtual "VKMS" kernel mode-setting driver. The driver is still a work-in-progress, but multiple developers are working on it.
  • NIR Continues To Be Prepped For OpenCL Support
    Longtime Nouveau contributor Karol Herbst who joined Red Hat several months ago has been working on Nouveau NIR support as stepping towards SPIR-V/compute support and this summer the work very much remains an active target.
  • Nouveau Gallium3D Moves Closer Towards OpenGL 4.5 Compliance
    While the RadeonSI and Intel i965 Mesa drivers have been at OpenGL 4.5 compliance for a while now, the Nouveau "NVC0" Gallium3D driver has been bound to OpenGL 4.3 officially. This Nouveau Gallium3D driver for NVIDIA "Fermi" graphics hardware and newer has effectively supported all of the OpenGL 4.4/4.5 extensions, but not officially. Originally the NVC0 problem for OpenGL 4.4 and newer was the requirement of passing the OpenGL Conformance Test Suite (CTS), which at first wasn't open-source. But now The Khronos Group has made it available to everyone as open-source. Additionally, the proper legal wrangling is in place so the Nouveau driver could become a conforming Khronos adopter under the X.Org Foundation without any associated costs/fees with Nouveau being purely open-source and primarily considered a community driver.

DistroWatch The Best Website For Distro Hoppers

The DistroWatch features release announcements of new versions of hundreds of Linux and other distributions. It does host reviews of distros, podcasts, and newsletters. DistroWatch first published by Ladislav Bodnar, the founder, and maintainer, on May 31, 2001. DistroWatch initially focused on Linux distributions. But later based on user requests, it went on adding different flavors of operating systems like BSD family, Android x86, Oracle Solaris, MINIX, and Haiku etc. The DistroWatch presents detailed information at one place in a very convenient manner. At the time of writing this article, the DistroWatch hosted information of more than 300 active distributions (referring the list of distros populated under drop-down feature on the first page of the DistroWatch) and more than hundred in queue. It is said that the DistroWatch lives out of advertising and donation. LinuxCD.org is the first to advertise on the DistroWatch site. Read more