[CentOS_7.4]Linux編譯安裝ffmpeg

安裝過程: 下載安裝源,配置,編譯,安裝,設置環境變量。node

# 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       查看版本

  

注意bash

若安裝過程當中出現如下錯誤:ui

yasm/nasm not found or too old. Use –disable-yasm for a crippled build.this

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
ffmpeg-user@ffmpeg.org 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..net

 

須要安裝yasmblog

# 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

  

結束!ip

相關文章
相關標籤/搜索