Centos7安装FFmpeg音/视频工具简易文档

ffmpeg是一个很强大的音视频处理工具,官网是:http://ffmpeg.org/ 官网介绍ffmpeg是:一个完整的、跨平台的解决方案,可以记录、转换和传输音频和视频。ffmpeg既可以播放视频,也提供命令行工具来处理视频,另外还有强大的视频处理库用于开发,下面是以Linux为例介绍ffmpeg的安装流程的简单的命令行对视频进行转码操作,是ffmpeg中最最简单的入门内容.

Mac 安装步骤

brew tap homebrew-ffmpeg/ffmpeg

brew install homebrew-ffmpeg/ffmpeg/ffmpeg –with-chromaprint \
–with-fdk-aac \
–with-game-music-emu \
–with-libbluray \
–with-libbs2b \
–with-libcaca \
–with-libgsm \
–with-libmodplug \
–with-librsvg \
–with-libsoxr \
–with-libssh \
–with-libvidstab \
–with-libvmaf \
–with-libxml2 \
–with-opencore-amr \
–with-openh264 \
–with-openjpeg \
–with-openssl \
–with-rtmpdump \
–with-rubberband \
–with-speex \
–with-srt \
–with-tesseract \
–with-two-lame \
–with-wavpack \
–with-webp \
–with-xvid \
–with-zeromq \
–with-zimg

Ubuntu 安装步骤

apt update && \
apt-get install -y software-properties-common && \
apt update && \
add-apt-repository -y ppa:jonathonf/ffmpeg-4 && \ 
apt install -y ffmpeg

Centos7 安装步骤

yum install epel-release -y && \
yum update -y && \
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro && \
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm && \
yum install ffmpeg ffmpeg-devel -y

提醒:CentOS 此方式安装 FFmpeg 的版本较低

FFmpeg 相关命令

查看当前版本

ffmpeg -version

相关文档

ffmpeg 官网
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg

到此这篇关于Centos7安装FFmpeg音/视频工具简易文档的文章就介绍到这了,更多相关Centos7安装FFmpeg内容请搜素以前的文章或下面相关文章,希望大家以后多多支持!


数据运维技术 » Centos7安装FFmpeg音/视频工具简易文档