Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created February 1, 2016 00:32
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 andrey-utkin/925ce227b2b530d1e808 to your computer and use it in GitHub Desktop.
Save andrey-utkin/925ce227b2b530d1e808 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
function build() {
DESTDIR=$1
shift
export PKG_CONFIG_PATH=$DESTDIR/lib/pkgconfig
git clean -dxf
./configure --enable-libx264 --enable-gpl --prefix=$DESTDIR "$@"
make -j5
make install
make -C doc/examples transcoding
cp doc/examples/transcoding $DESTDIR
}
git reset --hard 4ab4793c155e66ce7845831a5761c2bc0d04b035
wget https://github.com/andrey-utkin/ffmpeg/commit/7e12ed3c07e38d49b3aa025897a222a92fbaf3a5.patch
git am 7e12ed3c07e38d49b3aa025897a222a92fbaf3a5.patch
build /tmp/ffmpeg.static
build /tmp/ffmpeg.shared --enable-shared
for x in /tmp/ffmpeg.{static,shared}
do
pushd $x
export LD_LIBRARY_PATH="$x/lib"
./bin/ffmpeg -f lavfi -i testsrc -t 1 -c:v libx264 -y test.mkv
./transcoding test.mkv out.mkv || true # this fails
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment