title: Reduce compiled ffmpeg library size based on what I need
body: <p>I finally managed to build ffmpeg as detailed in here: <a href="https://enoent.fr/blog/2014/06/20/compile-ffmpeg-for-android/" rel="noreferrer">https://enoent.fr/blog/2014/06/20/compile-ffmpeg-for-android/</a> and in the end, I have a ffmpeg library which accepts command arguments.</p>
  
  <p>I am ONLY applying a watermark image over the video so for it I am using this ffmpeg command:</p>
  
  <pre><code>ffmpeg -i input.avi -i logo.png -filter_complex 'overlay=10:main_h-overlay_h-10' output.avi
  </code></pre>
  
  <p>Basic config:</p>
  
  <pre><code>  ./configure \
      --prefix=$PREFIX \
      --disable-shared \
      --enable-static \
      --disable-doc \
      --disable-ffmpeg \
      --disable-ffplay \
      --disable-ffprobe \
      --disable-ffserver \
      --disable-doc \
      --disable-symver \
      --enable-protocol=concat \
      --enable-protocol=file \
      --enable-muxer=mp4 \
      --enable-demuxer=mpegts \
      --enable-memalign-hack \
      --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
      --target-os=linux \
      --arch=arm \
      --enable-cross-compile \
      --sysroot=$SYSROOT \
      --extra-cflags="-Os -fpic -marm $ADDI_CFLAGS" \
      --extra-ldflags="$ADDI_LDFLAGS"
  </code></pre>
  
  <p>No other commands needed from ffmpeg.</p>
  
  <p>When compiling ffmpeg I get these files:</p>
  
  <p><img src="https://i.stack.imgur.com/8D6hb.png" alt="enter image description here"></p>
  
  <p>I want to reduce the size of the library to as small as possible, so given the above command, are there any files that I can remove from final build ?</p>
  
  <p>ALSO which is the most common CPU found in current devices ? <strong>arm v7vfpv3</strong>, <strong>arm v7vfp</strong>, <strong>arm v7n</strong> ? I want to cover as many devices as possible.</p>
  
  <pre><code>#arm v6
  #CPU=armv6
  #OPTIMIZE_CFLAGS="-marm -march=$CPU"
  #PREFIX=./android/$CPU 
  #ADDITIONAL_CONFIGURE_FLAG=
  #build_one
  
  #arm v7vfpv3
  CPU=armv7-a
  OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
  PREFIX=./android/$CPU
  ADDITIONAL_CONFIGURE_FLAG=
  build_one
  
  #arm v7vfp
  #CPU=armv7-a
  #OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU "
  #PREFIX=./android/$CPU-vfp
  #ADDITIONAL_CONFIGURE_FLAG=
  #build_one
  
  #arm v7n
  #CPU=armv7-a
  #OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=neon -marm -march=$CPU -mtune=cortex-a8"
  #PREFIX=./android/$CPU 
  #ADDITIONAL_CONFIGURE_FLAG=--enable-neon
  #build_one
  
  #arm v6+vfp
  #CPU=armv6
  #OPTIMIZE_CFLAGS="-DCMP_HAVE_VFP -mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU"
  #PREFIX=./android/${CPU}_vfp 
  #ADDITIONAL_CONFIGURE_FLAG=
  #build_one
  </code></pre>