Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@PyYoshi
Last active April 22, 2017 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PyYoshi/3e3e796f5f2cd8c4f827d40a161a2171 to your computer and use it in GitHub Desktop.
Save PyYoshi/3e3e796f5f2cd8c4f827d40a161a2171 to your computer and use it in GitHub Desktop.
mkdir -p ~/src
cd ~/src
wget https://www.libsdl.org/release/SDL-1.2.15.tar.gz
tar zxvf SDL-1.2.15.tar.gz
cd ~/src/SDL-1.2.15
./configure --prefix=/mingw64 --disable-stdio-redirect
make -j4
make install
cd ~/src
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_stable_x264.tar.bz2
tar xvf last_stable_x264.tar.bz2
cd ~/src/x264-snapshot-*-stable
./configure --prefix=/mingw64 --enable-static
make -j4
make install
cd ~/src
wget https://bitbucket.org/multicoreware/x265/downloads/x265_2.3.tar.gz
tar xvf x265_2.3.tar.gz
cd ~/src/x265_2.3/build/msys
cmake -G "MSYS Makefiles" ../../source -DCMAKE_INSTALL_PREFIX=/mingw64 -DHIGH_BIT_DEPTH=OFF -DENABLE_SHARED=OFF -DWINXP_SUPPORT=ON
make -j4
make install
cd ~/src
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz
tar xvf libogg-1.3.0.tar.gz
cd libogg-1.3.0
./configure --disable-shared --prefix=/mingw64
make -j4
make install
cd ~/src
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz
tar xvf libvorbis-1.3.3.tar.gz
cd libvorbis-1.3.3
./configure --disable-shared --prefix=/mingw64
make -j4
make install
cd ~/src
git clone https://chromium.googlesource.com/webm/libvpx
cd libvpx
git checkout v1.6.1 -b v1.6.1
./configure --prefix=/mingw64
make -j4
make install
cd ~/src
wget http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gz
tar xvf opus-1.1.4.tar.gz
cd opus-1.1.4/
./configure --prefix=/mingw64
make -j4
make install
cd ~/src
git clone https://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
git checkout v0.1.5 -b v0.1.5
./autogen.sh
./configure --disable-shared --enable-static --prefix=/mingw64
make -j4
make install
# Download and Install https://software.intel.com/en-us/media-sdk
cd ~/src
git clone https://github.com/lu-zero/mfx_dispatch.git
cd mfx_dispatch
autoreconf -i
./configure --prefix=/mingw64
make -j4
make install
# Download https://developer.nvidia.com/designworks/video_codec_sdk/downloads/v7.1
# cd ~/src
# unzip Video_Codec_SDK_7.1.9.zip
# cp Video_Codec_SDK_7.1.9/Samples/common/inc/* /mingw64/include/
cd ~/src
git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
cd ~/src/ffmpeg
git checkout release/3.2
# ./configure --prefix=/mingw64 --enable-shared --enable-gpl --enable-nonfree --enable-libx264 --enable-libx265 --enable-libvpx --enable-libfdk-aac --enable-libopus --enable-libvorbis --enable-opengl --enable-nvenc --enable-libmfx
./configure --prefix=/mingw64 --extra-ldflags=-static --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libx264 --enable-libx265 --enable-libvpx --enable-libfdk-aac --enable-libopus --enable-libvorbis --enable-opengl --enable-nvenc --enable-libmfx
make -j4
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment