45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
|
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev yasm libx264-dev unzip libmp3lame-dev libopus-dev
|
||
|
mkdir ~/ffmpeg_sources
|
||
|
cd ~/ffmpeg_sources
|
||
|
wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master
|
||
|
unzip fdk-aac.zip
|
||
|
cd mstorsjo-fdk-aac*
|
||
|
autoreconf -fiv
|
||
|
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
|
||
|
make
|
||
|
sudo 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
|
||
|
PATH="$PATH:$HOME/bin" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
|
||
|
PATH="$PATH:$HOME/bin" make
|
||
|
sudo make install
|
||
|
make clean
|
||
|
cd ~/ffmpeg_sources
|
||
|
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
|
||
|
tar xjvf ffmpeg-snapshot.tar.bz2
|
||
|
cd ffmpeg
|
||
|
PATH="$PATH:$HOME/bin" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
|
||
|
--prefix="$HOME/ffmpeg_build" \
|
||
|
--extra-cflags="-I$HOME/ffmpeg_build/include" \
|
||
|
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
|
||
|
--bindir="$HOME/bin" \
|
||
|
--enable-gpl \
|
||
|
--enable-libass \
|
||
|
--enable-libfdk-aac \
|
||
|
--enable-libfreetype \
|
||
|
--enable-libmp3lame \
|
||
|
--enable-libopus \
|
||
|
--enable-libtheora \
|
||
|
--enable-libvorbis \
|
||
|
--enable-libvpx \
|
||
|
--enable-libx264 \
|
||
|
--enable-nonfree \
|
||
|
--enable-x11grab
|
||
|
PATH="$PATH:$HOME/bin" make
|
||
|
sudo make install
|
||
|
make distclean
|
||
|
hash -r
|