1 下载所需要的软件

mkdir /usr/local/soft

cd /usr/local/soft

wget https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz

freetype  下载地址  http://www.linuxfromscratch.org/blfs/view/svn/general/freetype2.html

fribidi  下载地址
http://www.linuxfromscratch.org/blfs/view/svn/general/fribidi.html fontconfig 下载地址
http://www.linuxfromscratch.org/blfs/view/svn/general/fontconfig.html harfbuzz 下载地址
https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.2.7.tar.bz2
2 软件安装
yasm 安装
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix=/usr/local/yasm
make
make install
配置环境变量
vim /etc/profile
export YASM=/usr/local/yasm
export PATH=${YASM}/bin:${PATH} source /etc/profile #查看版本 测试是否安装成功
yasm --version nasm 安装
wget http://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2 tar -jxvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
./configure --prefix=/usr/local/nasm
make
make install #配置环境变量
export NASM=/usr/local/nasm
export PATH=${NASM}/bin:${PATH} source /etc/profile x264 安装
下载地址 https://code.videolan.org/videolan/x264
wget https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.gz tar -zxvf x264-master.tar.gz
cd x264-master
./configure --prefix=/usr/local/x264 --enable-shared
make
# 配置环境变量 export PKG_CONFIG_PATH=/usr/local/x264/lib/pkgconfig
export PATH=${PKG_CONFIG_PATH}/bin:${PATH} source /etc/profile harfbuzz 安装
tar -jxvf harfbuzz-1.2.7.tar.bz2
cd harfbuzz-1.2.7
./configure --prefix=/usr/local/harfbuzz
make
make install freetype 安装
tar -xvf freetype-2.10.4.tar.xz
cd freetype-2.10.4
./configure --prefix=/usr/local/freetype --disable-static
make
make install fribidi 安装
tar -xvf fribidi-1.0.9.tar.xz
cd fribidi-1.0.9
./configure --prefix=/usr/local/fribidi
make
make install fontconfig 安装
tar -jxvf fontconfig-2.13.1.tar.bz2
cd fontconfig-2.13.1
./configure --prefix=/usr/local/fontconfig
make
make install libass 安装
https://www.linuxfromscratch.org/blfs/view/svn/multimedia/libass.html tar -xvf libass-0.15.1.tar.xz cd libass-0.15.1
./configure --prefix=/usr/local/libass --disable-static
make
make install 配置环境变量
vim /etc/profile export PKG_CONFIG_PATH=/usr/local/x264/lib/pkgconfig:/usr/local/freetype/lib/pkgconfig:/usr/local/harfbuzz/lib/pkgconfig:/usr/local/fribidi/lib/pkgconfig:/usr/local/libass/lib/pkgconfig export PATH=${PKG_CONFIG_PATH}/bin:${PATH} #生效
source /etc/profile ld.so.conf 配置 vim /etc/ld.so.conf #添加一下内容
/usr/local/ffmpeg/lib
/usr/local/x264/lib
/usr/local/freetype/lib
/usr/local/firbidi/lib
/usr/local/harfbuzz/lib
/usr/local/libass/lib #生效
ldconfig
3 ffmpeg 安装
tar -jxvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure --prefix=/usr/local/ffmpeg --enable-libx264 --enable-gpl --enable-libass --enable-fontconfig --enable-openssl --enable-nonfree
make
make install #配置环境变量
export FFMPEG=/usr/local/ffmpeg
export PATH=${FFMPEG}/bin:${PATH} source /etc/profile ffmpeg --version

 安装好 x264
vim /etc/ld.so.conf
在该文件夹中添加
/usr/local/ffmpeg/lib
/usr/local/x264/lib #配置生效
ldconfig
字体文件添加
商用免费下载
下载地址:https://izihun.com/shangyongziti/r2/
linux 添加字体
以宋体为例,新建 songti 文件夹,将字体文件放入该文件夹中 cd /usr/share/fonts/songti
mkfontscale
mkfontdir
fc-cache-fv

ffmpeg安装教程的更多相关文章

  1. Linux+apache+mono+asp.net安装教程

    Linux+apache+mono+asp.net安装教程(CentOS上测试的) 一.准备工作: 1.安装linux系统(CentOS,这个就不多讲了) 2.下载所需软件 http-2.4.4.ta ...

  2. ffmpeg 安装,转视频格式为m3u8,压缩视频

    # ffmpegffmpeg 安装,转视频格式为m3u8,压缩视频 ## ffmpeg 安装直接安装: apt-get install ffmpeg 运行 `ffmpeg` 看是否出现版本号以判断是否 ...

  3. Greenplum 源码安装教程 —— 以 CentOS 平台为例

    Greenplum 源码安装教程 作者:Arthur_Qin 禾众 Greenplum 主体以及orca ( 新一代优化器 ) 的代码以可以从 Github 上下载.如果不打算查看代码,想下载编译好的 ...

  4. git 安装教程

    昆,简单说下安装教程1,安装Git2,安装TortoiseGit3,打开第一步安装的git工具GIT BASH

  5. Docker和Docker-compose安装教程以及docker-elk,docker-storm安装教程

    此安装教程仅供我自己安装配置时查看,其他的人不可以偷看!!! 安装Docker 1. Update package information, ensure that APT works with th ...

  6. RHEL 6.3 详细安装教程

    以前刚接触linux时,什么都不懂,为了学习,在电脑上安装双系统(原系统为Win7),吃过不少苦头,在网上搜教程,很多都是语焉不详,导致安装过程中战战兢兢.最近朋友面试运维,面试官有考他对linux安 ...

  7. Android Studio的下载和安装教程(从ADT到AS)

    之前一直使用的是Android development tools(简称ADT),后来说是google对ADT不再提供支持,然后一直在考虑是否把自己电脑换成Android Studio(简称AS),从 ...

  8. mysql快速导出数据库ER图和数据字典(附navicat11安装教程及资源)

    ♣ mysql使用navicat11快速导出数据库ER图 ♣ mysql使用navicat11快速导出数据库数据字典 ♣ navicat11 for mysql (这里是mysql5.7.12)专业版 ...

  9. Smokeping安装教程

    Smokeping安装教程 #Smokeping2.6.8安装教程 #2016.3.6 改编v1.0 #Linux运维技术交流 347163978   环境 CentOS release 6.4 (F ...

  10. (二)ADS1.2的安装教程以及使用 调试 (不会 AXD 调试工具)

    安装教程: 参考百度 http://jingyan.baidu.com/article/cdddd41c7db85253cb00e1ae.html 具体使用看: 杨铸的那本书(嵌入式底层软件驱动开发) ...

随机推荐

  1. Scala集合总结

    Scala同时支持可变集合和不可变集合,包含两个包: 可变集合:scala.collection.mutable 不可变集合:scala.collection.immutable Scala默认采用不 ...

  2. 算子groupByKey和reduceByKey的区别

    groupByKey根据k对v进行分组,如果要实现wordCount,需要再使用一个聚合算子,例如mapValues reduceByKey有聚合功能,最重要的是在shuffle过程之前可以对分区内相 ...

  3. SQL中各种join的区别

    INNER JOIN 在表中存在至少一个匹配时,INNER JOIN 关键字返回行 返回的是一个交集 内连接就是等值连接 自然连接(outer join. left join, right join) ...

  4. csec的key更新

    在对csec的使用中(其他遵循hsm key update协议的芯片也适用),kdf的运算过程中遇到的数据都是128bit.不需要考虑padding的问题.目前并没有找到对padding的一致性的处理 ...

  5. [NOIP1999 提高组] 旅行家的预算

    洛咕 题意:一个旅行家想驾驶汽车以最少的费用从一个城市到另一个城市(假设出发时油箱是空的).给定两个城市之间的距离 \(D_1\).汽车油箱的容量 \(C\)(以升为单位).每升汽油能行驶的距离 \( ...

  6. es 部署 进程、文件数 配置

    1.  /etc/security/limits.conf elasticsearch soft nofile 65536 elasticsearch hard nofile 65536 elasti ...

  7. 统计 nginx access.log

    awk '{print $1}' access22.log | sort | uniq -c | sort -nr -k1

  8. 实例正常,page页损坏处理

    1.select count(*) from XXXXX_homework; 可以查询 2.check table XXXXX_homework; 有报错,报连接失败. ERROR 2013 (HY0 ...

  9. vue 使用 swiper vue-awesome-swiper

    文档地址 https://github.com/surmon-china/vue-awesome-swiper 演示地址 https://v1.github.surmon.me/vue-awesome ...

  10. HTML学习笔记1----HTML是什么

    随笔记录方便自己和同路人查阅. #------------------------------------------------我是可耻的分割线--------------------------- ...