Centos6.5 一件安装FFmpeg 包括其中的坑
2019獨角獸企業重金招聘Python工程師標準>>>
網上發現了一個shell 可以一件安裝所有解碼器編譯安裝的FFmpeg
http://www.yaosansi.com/post/ffmpeg-on-centos/ Shell腳本
http://download.csdn.net/detail/dulin19870504/9652383 CSDN的資源
問題1
于是下載上傳至服務器安裝,發現命令找不到,
-bash: ffmpeg: command not found由于沒有加到環境變量里,改寫命令
進入到安裝目錄執行
/usr/local/ffmpeg2/ffmpeg --help發現依然不行。
于是乎
參考了下面這篇稿子,將的mplayer 也出現類似的問題
照貓畫虎,咱也測測
ldd /usr/local/ffmpeg2/bin/ffmpeg果然有5個動態鏈接庫沒有找到
libxvidcore.so.4 => not foundlibopencore-amrwb.so.0 => not foundlibopencore-amrnb.so.0 => not foundlibmp3lame.so.0 => not foundlibfaac.so.0 => not found但是進入的/usr/lib 去find 發現都有。
更新一下鏈接庫配置
ldconfig在測 ,動態鏈接庫都找到了。看來一件安裝shell運行以后還要更新一下動態鏈接庫的配置
在運行ffmpeg ok
問題2
?
安裝編譯libvorbis報錯
/*********************************這里是分隔符**************************/?
出錯提示
:?***?Could?not?run?Ogg?test?program,?checking?why...?
***?The?test?program?compiled,?but?did?not?run.?This?usually?means?
***?that?the?run-time?linker?is?not?finding?Ogg?or?finding?the?wrong?
***?version?of?Ogg.?If?it?is?not?finding?Ogg,?you'll?need?to?set?your?
***?LD_LIBRARY_PATH?environment?variable,?or?edit?/etc/ld.so.conf?to?point?
***?to?the?installed?location?Also,?make?sure?you?have?run?ldconfig?if?that?
***?is?required?on?your?system
***?If?you?have?an?old?version?installed,?it?is?best?to?remove?it,?although?
***?you?may?also?be?able?to?get?things?to?work?by?modifying?LD_LIBRARY_PATH?
configure:?error:?must?have?Ogg?installed!
問題出在/etc/ld.so.conf文件上,加上附加庫就行
解決:?
#?vi?/etc/ld.so.conf?
include?/etc/ld.so.conf.d/*.conf?
/usr/local/lib
退出更新
#?ldconfig?–v
再編譯就沒事了?
轉載于:https://my.oschina.net/lambert519/blog/882871
總結
以上是生活随笔為你收集整理的Centos6.5 一件安装FFmpeg 包括其中的坑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 当前可用的喜马拉雅专辑下载器
- 下一篇: VMWare16下载安装Centos7镜