How to install FFMPEG on CentOS 7.6 | LinuxHelp Tutorials

How to install FFMPEG on CentOS 7.6 | LinuxHelp Tutorials

如何在CentOS 7.6上安装FFMPEG

在CentOS 7.6上安装FFmpeg 4.1.3

介绍

FFmpeg是一个免费的开放源代码项目,包含用于处理视频,音频和其他多媒体文件和流的庞大的库和程序软件套件。FFmpeg是一种视频编辑软件,可用于在Linux中转换音频和视频流。本教程涵盖在CentOS 7.6上安装FFmpeg 4.1.3的视频。

下载链接:

https://raw.githubusercontent.com/q3aql/ffmpeg-install/master/ffmpeg-install        MPEG 4.1.3v

安装

使用wget命令下载FFmpeg。在以下命令中提供了下载链接。

[root@linuxhelp:~]# wget  https://raw.githubusercontent.com/q3aql/ffmpeg-install/master/ffmpeg-install
--2019-05-21 14:59:25--  https://raw.githubusercontent.com/q3aql/ffmpeg-install/master/ffmpeg-install
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.128.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4037 (3.9K) [text/plain]
Saving to: ‘ffmpeg-install’
ffmpeg-install                100%[================================================>]   3.94K  --.-KB/s    in 0.001s  
2019-05-21 14:59:27 (3.04 MB/s) - ‘ffmpeg-install’ saved [4037/4037]

列出内容以查看下载的文件。

[root@linuxhelp ~]# ll
total 28
-rw-------. 1 root root  2097 Dec  9  2017 anaconda-ks.cfg
drwxr-xr-x. 2 root root     6 Dec 12  2017 Desktop
drwxr-xr-x. 2 root root     6 Dec 12  2017 Documents
drwxr-xr-x. 2 root root     6 Dec 12  2017 Downloads
-rw-r--r--  1 root root  4037 May 21 16:43 ffmpeg-install
-rw-r--r--. 1 root root  2128 Dec 12  2017 initial-setup-ks.cfg
drwxr-xr-x. 2 root root     6 Dec 12  2017 Music
drwxr-xr-x. 2 root root     6 Dec 12  2017 Pictures
drwxr-xr-x. 2 root root     6 Dec 12  2017 Public
-rw-r--r--  1 root root 16004 Mar  8 13:10 remi-release-7.rpm
drwxr-xr-x. 2 root root     6 Dec 12  2017 Templates
drwxr-xr-x. 2 root root     6 Dec 12  2017 Videos

使下载的文件可执行

[root@linuxhelp ~]# chmod a+x ffmpeg-install 

安装FFMPEG的发行版本

[root@linuxhelp ~]# ./ffmpeg-install --install release
./ffmpeg-install: line 68: axel: command not found
axel disabled
./ffmpeg-install: line 76: aria2c: command not found
aria2c disabled
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5769  100  5769    0     0   3355      0  0:00:01  0:00:01 --:--:--  3354

下载ffmpeg-release-amd64-static.tar.xz(wget)

--2019-05-21 16:44:11--  https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
Resolving johnvansickle.com (johnvansickle.com)... 162.222.226.121
Connecting to johnvansickle.com (johnvansickle.com)|162.222.226.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32676780 (31M) [application/x-xz]
Saving to: ‘ffmpeg-release-amd64-static.tar.xz’

100%[====================================================================================================>] 32,676,780   454KB/s   in 55s    

2019-05-21 16:45:07 (582 KB/s) - ‘ffmpeg-release-amd64-static.tar.xz’ saved [32676780/32676780]

ffmpeg-4.1.3-amd64-static/
ffmpeg-4.1.3-amd64-static/GPLv3.txt
ffmpeg-4.1.3-amd64-static/manpages/
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-all.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-scaler.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-resampler.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-filters.txt
ffmpeg-4.1.3-amd64-static/manpages/ffprobe.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-devices.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-utils.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-protocols.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-codecs.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg-bitstream-filters.txt
ffmpeg-4.1.3-amd64-static/manpages/ffmpeg.txt
.
.
.
.
.
ffmpeg-4.1.3-amd64-static/model/model_V8a.model
ffmpeg-4.1.3-amd64-static/model/vmaf_v0.6.1.pkl
ffmpeg-4.1.3-amd64-static/model/nflxtrain_norm_type_none.pkl.model
ffmpeg-4.1.3-amd64-static/model/nflxtrain_vmafv3a.pkl.model
ffmpeg-4.1.3-amd64-static/model/nflxall_vmafv3a.pkl.model
ffmpeg-4.1.3-amd64-static/readme.txt
ffmpeg-4.1.3-amd64-static/ffmpeg
Done!

检查FFmpeg的版本。

[root@linuxhelp ~]# ffmpeg -version
ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      56. 22.100 / 56. 22.100
libavcodec     58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.  5.100 / 58.  5.100
libavfilter     7. 40.101 /  7. 40.101
libswscale      5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100
libpostproc    55.  3.100 / 55.  3.100

这样,在CentOS 7.6上FFmpeg 4.1.3的安装就结束了。



Tags: published
November 07, 2019 at 01:07PM
Open in Evernote

评论

此博客中的热门博文

Telegram MTProto Proxy 介绍说明 – 开源代码|技术|教程资源|网络资源|首页不显示 – 如有乐享

监控FRPS端口并自动重启进程linux脚本_FRP教程_电脑博士

进阶Spring Boot(二)---Tomcat与Undertow 吞吐量对比 - 简书