Spaces:
Runtime error
Runtime error
File size: 1,846 Bytes
b68506c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
FFMPEG_PREFIX="$(echo $HOME/local)"
FFMPEG_SOURCES="$(echo $HOME/ffmpeg_sources)"
FFMPEG_BINDIR="$(echo $FFMPEG_PREFIX/bin)"
PATH=$FFMPEG_BINDIR:$PATH
mkdir -p $FFMPEG_PREFIX
mkdir -p $FFMPEG_SOURCES
cd $FFMPEG_SOURCES
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure --prefix="$FFMPEG_PREFIX" --bindir="$FFMPEG_BINDIR"
make
make install
make distclean
cd $FFMPEG_SOURCES
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
./configure --prefix="$FFMPEG_PREFIX" --bindir="$FFMPEG_BINDIR" --enable-static
make
make install
make distclean
cd $FFMPEG_SOURCES
wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master
tar xzvf fdk-aac.tar.gz
cd mstorsjo-fdk-aac*
autoreconf -fiv
./configure --prefix="$FFMPEG_PREFIX" --disable-shared
make
make install
make distclean
cd $FFMPEG_SOURCES
wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
tar xjvf libvpx-v1.3.0.tar.bz2
cd libvpx-v1.3.0
./configure --prefix="$FFMPEG_PREFIX" --disable-examples
make
make install
make clean
cd $FFMPEG_SOURCES
wget https://github.com/FFmpeg/FFmpeg/tarball/master -O ffmpeg.tar.gz
rm -rf FFmpeg-FFmpeg*
tar -zxvf ffmpeg.tar.gz
cd FFmpeg-FFmpeg*
PKG_CONFIG_PATH="$FFMPEG_PREFIX/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="$FFMPEG_PREFIX" --extra-cflags="-I$FFMPEG_PREFIX/include" \
--extra-ldflags="-L$FFMPEG_PREFIX/lib" --bindir="$FFMPEG_BINDIR" --extra-libs="-ldl" --enable-gpl \
--enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora \
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree \
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc
make
make install
make distclean
hash -r
|