Skip to content

Instantly share code, notes, and snippets.

@izacus
Created July 2, 2014 10:08
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 izacus/4a9aac792ef61bea10ca to your computer and use it in GitHub Desktop.
Save izacus/4a9aac792ef61bea10ca to your computer and use it in GitHub Desktop.
Compile ffmpeg for Android
./configure --cross-prefix=$TOOLCHAIN_ROOT/bin/arm-linux-androideabi- \
--arch=arm --cpu=armv7-a --target-os=linux --enable-static --disable-shared \
--extra-cflags="$CFLAGS" --extra-ldflags="$LDFLAGS -fwhole-program" \
--prefix=$PREFIX \
--disable-everything --disable-doc --disable-ffprobe --disable-ffserver --enable-ffmpeg --enable-swscale --disable-ffplay \
--enable-demuxer='mov,mp4,3gp' --enable-decoder='mpeg4,h264,h263,aac,amrnb,amrwb' \
--enable-muxer='mp4,image2' --enable-filter='scale,transpose,hflip,vflip,fps,aresample' \
--enable-protocol='file' \
--enable-encoder='libx264,mjpeg,aac' --enable-libx264 --enable-gpl --enable-small
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment