Centos 7 安装 FFmpeg

Step 1: Update the system

sudo yum install epel-release -y
sudo yum update -y
sudo shutdown -r now

Step 2: Install the Nux Dextop YUM repo

There are no official FFmpeg rpm packages for CentOS for now. Instead, you can use a 3rd-party YUM repo, Nux Dextop, to finish the job.

On CentOS 7, you can install the Nux Dextop YUM repo with the following commands:

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

For CentOS 6, you need to install another release:

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

Step 3: Install FFmpeg and FFmpeg development packages

sudo yum install ffmpeg ffmpeg-devel -y

Step 4: Test drive

1) Confirm the installation of FFmpeg:

ffmpeg

This command provides detailed info about FFmpeg installed on your system. At the time of writing, the version of FFmpeg installed using Nux dextop is 2.6.8.

If you want to learn more about FFmpeg, input:

ffmpeg -h

2) Convert an mp3 audio file to an ogg audio file.

You need to determine the appropriate parameters when using FFmpeg. For example, you can convert an mp3 file to an ogg file using the following commands:

cd
wget https://archive.org/download/MLKDream/MLKDream_64kb.mp3
ffmpeg -i MLKDream_64kb.mp3 -c:a libvorbis -q:a 4 MLKDream_64kb.ogg

3) Convert an flv video file to an mp4 video file.

Here is an example of lossless conversion from flv to mp4:

cd
wget https://archive.org/download/beeenieilp/beeen.flv
ffmpeg -i beeen.flv -y -vcodec copy -acodec copy beeen.mp4

That concludes our tutorial. Thank you for reading.

时间: 2025-01-15 03:38:19

Centos 7 安装 FFmpeg的相关文章

使用yum在centos下安装ffmpeg

使用yum在centos下安装ffmpeg 说明:在写这篇文章时不知道查了多少资料不是资料不完整就是根本不能安装,网上许多资料都是转载.写这篇文章时我亲自做了测试,安装完全通过,如果有什么不对的地方欢迎拍砖  一.安装ffmpeg  操作系统:centos 5.6  (一)安装编译环境  #yum install -y automake autoconf libtool gcc gcc-c++   (二)安装所需程序库的RPM包到 centos(因为centos自带的库中没有ffmpeg包,这里

centos上安装ffmpeg

FFmpeg介绍FFmpeg是一个开源免费跨平台的视频和音频流方案,属于自由软件,采用LGPL或GPL许可证(依据你选择的组件).它提供了录制.转换以及流化音视频的完整解决方案.它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec里很多codec都是从头开发的. 安装之前准备: 编译工具提前安好,使用yum yum -y install gcc cc cl正式开始: 第一步:安装ffmpeg时需要提前安装yasm插件.下面开始安装. wg

Centos linux 安装ffmpeg

1.下载ffmpeg.下载网址:http://www.ffmpeg.org/download.html 2.解压缩tar -zxvf ffmpeg-2.0.1.tar.gz 3.配置,生成Makefile./configure --enable-shared --disable-yasm --prefix=/usr/local/ffmpeg如果执行结果不对,可以根据提示信息,并查看帮助,解决问题./configure --help 4.编译安装makemake install 5.安装之后在/u

centos yum安装ffmpeg

一.安装前都需要先安装epel扩展源 yum -y install epel-release 二.对于6,安装yum源之后直接安装即可: su -c 'yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release

centos 安装ffmpeg 及h264编码打包

切记删除原有ffmpeg 1.编译yasm. ./configure --prefix=/usr/local/yasm make make install 2.解压x264,进入目录,输入: ./configure --prefix=/usr/local/x264 --enable-shared --enable-static --enable-yasm make make install 3.解压ffmpeg,进入目录,输入: ./configure --prefix=/usr/local/f

在CentOS上安装FFMPEG和Gstream-ffmpeg

当我们用CentOS7自带的源时,是yum search不到标题上述的两个相关的包的,而opencv需要用到FFmpeg读取视频文件.这就必须安装了. 可以参考FFMPEG官方给出的文档: http://rpmfusion.org/FAQ 用一个rpmfusion的第三方外部软件仓库来安装标题说的包. 先需要安装这个源,运行命令: su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates

CentOS下yum安装FFmpeg

一.yum安装FFmpeg 1.    最偷懒的方式就是yum安装了,自动解决依赖.不过CentOS系统默认无FFmpeg源,企业版 Linux 附加软件包EPEL源也不包含,需要手动添加yum源配置/etc/yum.repos.d/dag.repo:   [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag

centOS下快速安装FFMPEG

因为项目需求要用到FFMPEG做一些音频处理(虽然也就压MP3封面, 音频压缩的简单功能), 在MAC下面安装的很顺利, 但是到了阿里云的centOS下面安装各种痛苦, google一搜索,如果自己从源码安装编译, 整个流程都2页, 按照流程做还各种报错, 安装太麻烦了, 要解决的问题太多. 继续搜索,运气比较好找到一个方法能很快速度安装的, 安装出来的版本不知道完不完整,不过足够做一些简单的音频处理 https://www.centos.org/forums/viewtopic.php?f=4

CentOS 6/7安装ffmpeg

环境 CentOS 6/7 安装 导入GPG key rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms 安装ATRPMS Repo rpm -ivh http://dl.atrpms.net/all/atrpms-repo-6-7.el6.x86_64.rpm 选择ATRPMS Repo安装ffmpeg yum -y --enablerepo=atrpms install ffmpeg ffmpeg-devel 验证ffmpeg