[CentOS_7.4]Linux編譯安裝ffmpeg
阿新 • • 發佈:2018-12-06
安裝過程: 下載安裝源,配置,編譯,安裝,設定環境變數。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
# tar -zxvf ffmpeg-3.1.tar.gz
# cd ffmpeg-3.1
# ./configure --prefix=/usr/local/ffmpeg
# make && make install 等待安裝完成...
# vi /etc/profile
在最後PATH新增環境變數:
PATH=$PATH:
/usr/local/ffmpeg/bin
export
PATH 儲存退出
# source /ect/profile 設定生效
# ffmpeg -version 檢視版本
|
注意:
若安裝過程中出現以下錯誤:
yasm/nasm not found or too old. Use –disable-yasm for a crippled build.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solve the problem.
需要安裝yasm
1 2 3 4 5 |
# wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
# tar -zxvf yasm-1.3.0.tar.gz
# cd yasm-1.3.0
# ./configure
# make && make install
|
結束!