Demo entry 2702334

install ffmpeg


Submitted by anonymous on Sep 18, 2015 at 09:03
Language: Bash. Code size: 1.6 kB.

# 1) set prefix


# 2) install ogg (1.3.0)
cd ~/src
tar xzvf libogg-1.3.0.tar.gz
cd libogg-1.3.0
./configure --prefix=$PREFIX --disable-shared --target=$HOST
make && make install

# 3) install vorbis (1.3.3)
cd ~/src
tar xzvf libvorbis-1.3.3.tar.gz
cd libvorbis-1.3.3
./configure --prefix=$PREFIX --target=$HOST --disable-oggtest --disable-shared
make && make install

# 4) build libvpx (1.4.0)
# Download libvpx 1.4.0 and extract to libvpx-1.4.0
cd libvpx-1.4.0
./configure --prefix=$PREFIX --disable-examples --disable-unit-tests --disable-docs --disable-install-docs --disable-shared

make && make install

# 5) build openh264 (1.4)
# Download openh264 and extract to ~/src/openh264
make && make install

# edit build/ set  AR = x86_64-w64-mingw32-gcc-ar
make ARCH=x86_64 && make install

#copy files from /usr/local/ to $PREFIX

# 6) build ffmpeg
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
cd ~/src
git clone git://
cd ffmpeg

./configure --prefix=$PREFIX --enable-libopenh264 --enable-libvpx --enable-libvorbis --disable-w32threads --enable-pthreads --extra-cflags=-I$PREFIX/include --extra-ldflags=-L$PREFIX/lib --disable-static --enable-shared --enable-version3 --logfile=/dev/stdout --disable-doc --disable-ffplay --disable-ffprobe --disable-ffserver
make && make install

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).