歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux編譯升級Ffmpeg步驟

Linux編譯升級Ffmpeg步驟

日期:2017/3/1 15:36:57   编辑:關於Linux
Linux編譯升級Ffmpeg步驟 如果服務器已經安裝了一個 Ffmpeg 的話,比如已安裝在 /usr/local/ffmpeg 目錄。版本升級步驟如下: 1.下載 ffmpeg-*.tar.gz 到 Ffmpeg 官網 https://ffmpeg.org/download.html 挑選你要升級到的版本,然後下載,比如作者下載的是 ffmpeg-2.0.tar.gz。 2.編譯安裝 tar -zxvf ffmpeg-2.0.tar.gz cd ffmpeg-2.0 ./configure --enable-shared --prefix=/usr/local/ffmpeg make make install 3.動態鏈接庫 vi /etc/ld.so.conf 加入:/usr/local/ffmpeg/lib 執行 ldconfig 4.為 Ffmpeg 加入環境變量 vi /etc/profile 加入以下內容: FFMPEG=/usr/local/ffmpeg PATH加入:$FFMPEG/bin 5.使修改立即生效 source /etc/profile 執行 ffmpeg -version 打印結果 ffmpeg version 2.0 built on Jul 24 2013 09:59:06 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --enable-shared --prefix=/usr/local/ffmpeg libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.100 / 55. 12.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 79.101 / 3. 79.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 證明已升級成功。
Copyright © Linux教程網 All Rights Reserved