2
失敗安裝FFmpeg的這是我目前以下過程:在Ubuntu 14.04 LTS上libvpx
安裝依賴
sudo apt-get remove ffmpeg x264 libx264-dev
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall texi2html \
libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev \
libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev libavcodec-dev
安裝X264
cd /opt
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-static --disable-opencl
make
sudo checkinstall --pkgname=x264 --default --pkgversion="3:$(./version.sh | \
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes
安裝libvpx
cd /opt
git clone https://chromium.googlesource.com/webm/libvpx.git
cd libvpx
./configure
make
sudo checkinstall --pkgname=libvpx --pkgversion="`date +%Y%m%d%H%M`-git" --backup=no \
--default --deldoc=yes
安裝跛腳
sudo apt-get remove libmp3lame-dev
sudo apt-get install nasm
cd /opt
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
tar xzvf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure --enable-nasm --disable-shared
make
sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.98.4" --backup=no --default --deldoc=yes
安裝FFmpeg的
cd /opt
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
git checkout release/2.8
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc \
--enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb \
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid \
--enable-x11grab --enable-libvpx --enable-libmp3lame
make
這裏,在編譯FFmpeg的,我碰到下面的錯誤導致安裝失敗:
libavcodec/libvpxenc.c:107:6: error: ‘VP8E_UPD_ENTROPY’ undeclared here (not in a function)
[VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY",
^
libavcodec/libvpxenc.c:107:5: error: array index in initializer not of integer type
[VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY",
^
libavcodec/libvpxenc.c:107:5: error: (near initialization for ‘ctlidstr’)
libavcodec/libvpxenc.c:108:6: error: ‘VP8E_UPD_REFERENCE’ undeclared here (not in a function)
[VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE",
^
libavcodec/libvpxenc.c:108:5: error: array index in initializer not of integer type
[VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE",
^
libavcodec/libvpxenc.c:108:5: error: (near initialization for ‘ctlidstr’)
libavcodec/libvpxenc.c:109:6: error: ‘VP8E_USE_REFERENCE’ undeclared here (not in a function)
[VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE",
^
libavcodec/libvpxenc.c:109:5: error: array index in initializer not of integer type
[VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE",
^
libavcodec/libvpxenc.c:109:5: error: (near initialization for ‘ctlidstr’)
make: *** [libavcodec/libvpxenc.o] Error 1
我認爲它最近對libvpx存儲庫進行了一些更改。 那麼,有沒有人有任何暗示我應該如何解決這個問題?
omg我之前看到了票,錯過了它已解決的事實。謝謝你,先生! – LePhleg
更新:我相信最新的版本已經納入了這個提交,所以這個錯誤應該不會更多! – mprat
你也可以試試我的這個安裝程序,https://github.com/razzbee/ffmpeg_installer – razzbee