title: how do i modify this ffmpeg build script for minimal binary size output
body: <p>I'm trying to build the ffmpeg binaries for android on 3 chipsets. The output file size is too large to include in the project around 15mb. </p>
  
  <p><a href="https://github.com/falnatsheh/ffmpeg-android" rel="nofollow">https://github.com/falnatsheh/ffmpeg-android</a> is the github project repo</p>
  
  <p>the .sh build script for ffmpeg is like this</p>
  
  <pre><code>#!/bin/bash
  
  . abi_settings.sh $1 $2 $3
  
  pushd ffmpeg
  
  case $1 in
    armeabi-v7a | armeabi-v7a-neon)
      CPU='cortex-a8'
    ;;
    x86)
      CPU='i686'
    ;;
  esac
  
  make clean
  
  ./configure \
  --target-os="$TARGET_OS" \
  --cross-prefix="$CROSS_PREFIX" \
  --arch="$NDK_ABI" \
  --cpu="$CPU" \
  --enable-runtime-cpudetect \
  --sysroot="$NDK_SYSROOT" \
  --enable-pic \
  --enable-libx264 \
  --enable-pthreads \
  --disable-debug \
  --disable-ffserver \
  --enable-version3 \
  --enable-hardcoded-tables \
  --disable-ffplay \
  --disable-ffprobe \
  --enable-gpl \
  --enable-yasm \
  --disable-doc \
  --disable-shared \
  --enable-static \
  --pkg-config="${2}/ffmpeg-pkg-config" \
  --prefix="${2}/build/${1}" \
  --extra-cflags="-I${TOOLCHAIN_PREFIX}/include $CFLAGS" \
  --extra-ldflags="-L${TOOLCHAIN_PREFIX}/lib $LDFLAGS" \
  --extra-libs="-lm" \
  --extra-cxxflags="$CXX_FLAGS" || exit 1
  
  make -j${NUMBER_OF_CORES} &amp;&amp; make install || exit 1
  
  popd
  </code></pre>
  
  <p>I tried adding --disable-everything as the first line in configure but then the compiler complains that I didnt set a target-os even though its the next line</p>
  
  <p>In the app I only use ffmpeg to take input mp4 videos and transpose and rotate them
  here are the two commands</p>
  
  <pre><code>-y -i %s -vf transpose=%d -tune film -metadata:s:v rotate=0 -c:v libx264 -preset ultrafast -crf 27 -c:a copy -bsf:a aac_adtstoasc %s
  </code></pre>
  
  <p>where %s is a file path</p>
  
  <p>and then concat files</p>
  
  <pre><code>-y -i concat:%s -preset ultrafast -crf 27 -c:v copy -c:a copy -bsf:a aac_adtstoasc %s
  </code></pre>
  
  <p>If someone can help me with the build script that would be awesome</p>