How to Install FFmpeg on CentOS
source link: https://www.vultr.com/docs/how-to-install-ffmpeg-on-centos
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Using a Different System?
FFmpeg is a popular open-source solution to record, convert, and stream audio and video, which is widely used in all kinds of online streaming services. This guide has been tested on CentOS 6, 7, and 8.
Prerequisites
- Deploy a new Vultr CentOS cloud server instance.
- Create a sudo user.
- Update the system.
CentOS 8
Install the Extra Packages for Enterprise Linux repository.
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
$ sudo yum install http://rpmfind.net/linux/centos/8-stream/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm
Install the FFmpeg and FFmpeg development packages.
# sudo yum install ffmpeg ffmpeg-devel
CentOS 7
Install the Nux Dextop repository.
$ sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
$ sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Install the FFmpeg and FFmpeg development packages.
$ sudo yum install ffmpeg ffmpeg-devel -y
CentOS 6
Install the Nux Dextop repository.
$ sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
$ sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
Install the FFmpeg and FFmpeg development packages.
$ sudo yum install ffmpeg ffmpeg-devel -y
Test the Installation
Confirm the installation of FFmpeg:
$ ffmpeg -version
Example: Convert an MP3 audio file to an OGG audio file.
$ cd
$ wget https://archive.org/download/MLKDream/MLKDream_64kb.mp3
$ ffmpeg -i MLKDream_64kb.mp3 -c:a libvorbis -q:a 4 MLKDream_64kb.ogg
Example: Convert an MP4 video file to an OGG video file.
$ cd
$ wget https://archive.org/30/items/I_Have_A_Dream_Speech_excerpt/I_Have_A_Dream_Speech_excerpt.mpeg4 -O MLKDream.mpeg4
$ ffmpeg -i MLKDream.mpeg4 -codec:v libtheora -qscale:v 3 -codec:a libvorbis -qscale:a 3 -f ogv MLKDream.ogv
More Information
Want to contribute?
You could earn up to $600 by adding new articles
Recommend
-
3
How to install OwnCloud 8 in CentOS 6 running on Parallels Plesk 12 with the MySQL database? advertisements The installation from Terminal wor...
-
4
How to install Docker on CentOS paulwong My Links Blog Stats Posts - 1074 Stories - 10 Comments - 108 ...
-
4
How To Install FFmpeg on Fedora 34/33/32/31/30/29Question: How can install FFmpeg on Fedora 34/33/32/31/30/29?. FFmpeg is a free and open source multimedia framework that can encode, decode, stream, transcode, mux, demux, pla...
-
2
FFmpeg是一个免费的开放源代码工具集,用于处理多媒体文件。 它包含一组共享的音频和视频库,例如libavcodec,libavformat和libavutil。 使用FFmpeg,您可以在各种视频和音频格式之间转换,设置采样率,捕获流音频/视频以及调整视频大小。本文介绍了如何...
-
12
Using a Different System? ...
-
4
Using a Different System? ...
-
7
Using a Different System? ...
-
3
严禁垃圾中文技术网站复制粘贴 流程:安装SRS服务接收ffmpeg的推流,SRS会提供一个flv的播放地址,前端通过fls.js播放即可,无需flash。 1.安装ffmpeg 提供两个版本,都能推流 ffmpeg-5.0.tar.gz
-
14
#!/bin/bash for Ubuntu Install pre-requirements sudo apt-get update sudo apt-get install -y chromium-codecs-ffmpeg-extra make directory called "lib_extra" under opera - us...
-
5
Install latest ffmpeg on ubuntu 12.04 or 14.04
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK