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

today's leftovers

  • Parler Tricks: Making Software Disappear

    Much has been written and broadcast about the recent actions from Google and Apple to remove the Parler app from their app stores. Apps get removed from these app stores all the time, but more than almost any past move by these companies, this one has brought the power Big Tech companies wield over everyone’s lives to the minds of every day people. Journalists have done a good job overall in presenting the challenges and concerns with this move, as well as addressing the censorship and anti-trust issues at play. If you want a good summary of the issues, I found Cory Doctorow’s post on the subject a great primer. [...] This is part of the article where Android users feel smug. After all, while much more of their data gets captured and sold than on iOS, in exchange they still (sometimes) have the option of rooting their phones and (sometimes) “sideloading” applications (installing applications outside of Google’s App Store). If Google bans an app, all a user has to do is follow a list of complicated (and often sketchy) procedures, sometimes involving disabling protections or installing sketchy software on another computer, and they can wrench back a bit of control over their phones. Of course in doing so they are disabling security features that are the foundation for the rest of Android security, at which point many Android security experts will throw up their hands and say “you’re on your own.” [...] The Librem 5 phone runs the same PureOS operating system as Librem laptops, and it features the PureOS Store which provides a curated list of applications known to work well on the phone’s screen. Even so, you can use the search function to find the full list of all available software in PureOS. After all, you might want that software to be available when you dock your Librem 5 to a larger screen. We aim to provide software in the PureOS store that respects people’s freedom, security, and privacy and will audit software that’s included in the store with that in mind. That way people have a convenient way to discover software that not only works well on the phone but also respects them. Yet you are still free to install any third-party software outside of the PureOS Store that works on the phone, even if it’s proprietary software we don’t approve of.

  • Apple Mulls Podcast Subscription Push Amid Spotify's Land Grab

    The talks, first reported by The Information, have been ongoing since at least last fall, sources tell to The Hollywood Reporter, and ultimately could end up taking several different forms. Regardless, it’s clear that Tim Cook-led Apple — after spending the last two years watching rival-in-music-streaming Spotify invest hundreds of millions of dollars to align itself with some of the most prolific producers and most popular personalities in podcasting — is no longer content sitting on the sideline. “There’s a huge opportunity sitting under their nose with 1.4 million iOS devices globally,” says Wedbush Securities analyst Daniel Ives, “and they don’t want to lose out.” Apple declined to comment about its podcasting plans.

    Much of the growth of the podcasting industry over the last decade can be traced back to Apple and its former CEO Steve Jobs, who in 2005 declared that he was “bringing podcasting mainstream” by adding support for the medium to iTunes. A few years later, the company introduced a separate Podcasts app that quickly became the leading distribution platform for the medium. But Apple, which netted $275 billion in sales in fiscal 2020, has refrained from turning podcasting — still a relatively small industry that the Interactive Advertising Bureau estimated would bring in nearly $1 billion in U.S. advertising revenue last year — into a moneymaking venture.

  • Blacks In Technology and The Linux Foundation Partner to Offer up to $100,000 in Training & Certification to Deserving Individuals [Ed: Linux Foundation exploits blacks for PR, even though it does just about nothing for blacks [1, 2]]

    The Linux Foundation, the nonprofit organization enabling mass innovation through open source, and The Blacks In Technology Foundation, the largest community of Black technologists globally, today announced the launch of a new scholarship program to help more Black individuals get started with an IT career. Blacks in Technology will award 50 scholarships per quarter to promising individuals. The Linux Foundation will provide each of these recipients with a voucher to register for any Linux Foundation administered certification exam at no charge, such as the Linux Foundation Certified IT Associate, Certified Kubernetes Administrator, Linux Foundation Certified System Administrator and more. Associated online training courses will also be provided at no cost when available for the exam selected. Each recipient will additionally receive one-on-one coaching with a Blacks In Technology mentor each month to help them stay on track in preparing for their exam.

  • the tragedy of gemini

    While everything I have seen served via Gemini is friendly and sociable, the technical barriers of what-is-a-command-line and how-do-I-use-one are a fence put up that keep out the riffraff. Certainly, you can walk around the corner and go through the gate, but ultimately the geminiverse is lovely because it is underpopulated, slower-paced, and literate. It is difficult enough to access that those who can use it can be welcoming without worrying its smallness will be compromised.

    The tragedy is that I don’t think many of its denizens would claim that they only want to hear from technical, educated people, but in order to use a small [Internet], an August [Internet], they have let the fence keep out anyone else.

Devices: GigaIPC, Raspberry Pi, and Arduino Projects

  • Rugged systems provide IP67 waterproofing

    GigaIPC unveiled two compact, IP67-protected “QBix-WP” computers with Linux support and rugged M12 ports for 2x LAN, 3x COM, GPIO, and 9-36V input: one with 8th Gen Whiskey Lake and the other with Apollo Lake. Taiwan-based GigaIPC has announced a “QBiX-WP Series” of rugged embedded systems with IP67 protections: an 8th Gen Whiskey Lake based QBiX-WP-WHLA8265H-A1 and an Apollo Lake powered QBiX-WP-APLA3940H-A1. IP67 provides level 6 “dust-tight” protection against dust ingression and level 7 waterproofing against liquid ingress including immersion at up to 1 meter for 30 minutes.

  • Deter burglars with a Raspberry Pi chatbot
  • Arduino Blog » 3D-printed mobile robot platform based on the Arduino Due

    Although an Arduino can be a great way to provide computing power for a mobile robot platform, you’ll need a variety of other electronics and mechanical components to get it going. In his write-up, computer science student Niels Post outlines how he constructed a robot that travels via two stepper motors, along with casters to keep it upright. The round chassis is 3D-printed and runs on three rechargeable 18650 batteries.

  • Arduino Blog » Making your own Segway, the Arduino way

    After obtaining motors from a broken wheelchair, this father-son duo went to work turning them into a new “Segway.” The device is controlled by an Arduino Uno, along with a pair of motor drivers implemented handle the device’s high current needs. An MPU-6050 allows it to react as the rider leans forward and backwards, moving with the help of a PID loop. Steering is accomplished via a potentiometer, linked to a bent-pipe control stick using a bottle cap and glue.

Programming: PureScript, C++, Lua, and Raku

  • Excellent Free Tutorials to Learn PureScript - LinuxLinks

    PureScript is a small strongly, statically typed programming language with expressive types, written in and inspired by Haskell, and compiling to Javascript. It can be used to develop web applications, server side apps, and also desktop applications with use of Electron.

  • C++ Operator Overloading – Linux Hint

    This article provides a guide to operator overloading in C++. Operator overloading is a useful and powerful feature of the C++ programming language. C++ allows overloading of most built-in operators. In this tutorial, we will use several examples to demonstrate the operator overloading mechanism. [...] The C++ language allows programmers to give special meanings to operators. This means that you can redefine the operator for user-defined data types in C++. For example, “+” is used to add built-in data types, such as int, float, etc. To add two types of user-defined data, it is necessary to overload the “+” operator.

  • Lua, a misunderstood language

    Lua is one of my favourite programming languages. I’ve used it to build a CMS for my old educational website, for creating cool IoT hardware projects, for building little games, and experimenting with network decentralisation. Still, I don’t consider myself an expert on it at all, I am at most a somewhat competent user. This is to say that I have had exposure to it in various contexts and through many years but I am not deep into its implementation or ecosystem. Because of that, it kinda pains me when I read blog posts and articles about Lua that appear to completely miss the objective and context of the language. Usually these posts read like a rant or a list of demands. Most recently, I saw a post about Lua’s Lack of Batteries on LWN and a discussion about that post on Hacker News that made me want to write back. In this post I’ll address some of the comments I’ve seen on that original article and on Hacker News.

  • A Complete Course of the Raku programming language

    This course covers all the main aspects of the language that you need to use in your daily practice. The course consists of five parts that explain the theory and offer many practical assignments. It is assumed that you try solving the tasks yourself before looking to the solution.

    If you’re only starting to learn Raku, you are advised to go through all the parts in the order they are listed in the table of contents. If you have some practice and you want to have some specific training, you are welcome to start with the desired section.

Software: Trakt Scrobbler, GIMP, and More

  • Sync mpv, VLC, Plex And MPC-BE/MPC-HC With Trakt.tv Using Trakt Scrobbler

    Trakt Scrobbler is a Trakt.tv scrobbler for Linux, macOS and Windows, which supports VLC, MPV, MPC-BE/MPC-HC and Plex (doesn't require a Plex Pass). The tool is controlled from the command line. After the initial setup, Trakt Scrobbler runs in the background, monitoring what's playing (movies / TV show episodes) in the media players you configure, and sending this information to Trakt.tv. It also displays optional desktop notifications when scrobbling begins and ends

  • [PPA Update] GIMP 2.10.22 with Python Script Support in Ubuntu 18.04

    For Ubuntu 18.04 users sticking to the PPA build of GIMP image editor 2.10.22, now the Python Script support is back. Since old GTK2 and Python 2 libraries being removed from Ubuntu universe repositories, the Python script support was excluded due to lack of dependencies when I was uploading the GIMP packages into PPA. Ubuntu 18.04 was neglected, though. It meets all the dependencies to build the requested feature. So I added it back. Hope it’s not too late for you :). And the package was totally built via the rules from otto-kesselgulasch’s PPA.

  • Linux Release Roundup: Kdenlive 20.12.1, BleachBit 4.2.0 & LibreOffice 7.1 RC - OMG! Ubuntu!

    I’m keen to get back into the habit of posting Linux release roundups. The last one I wrote was way back in 2019 — so it’s been a while! [...] Well, open source and Linux-focused development never stops. App, tool, kernel, driver, distro, and framework updates pop out each and every week. Not all of these updates are what you’d call ‘substantial’ or ‘must-read’ news. Point releases, for instance, are difficult to “pad out” into a full length article (much less sound like one you’d want to read about). I’m loathe to start firing out 8 short posts a day on thin topics. It clogs up your feed reader and pushes genuinely interesting content off the main page. Hence the roundups. I get the satisfaction of being able to cover the “lite” news items I normally skip (and mention distro releases I might not normally be able to), and you get the satisfaction of knowing you’re missing out on even less stuff. Keen to see what meaty chunks are threaded on this week’s skewer? Read on…