title: Ffmpeg Android - Minimum binary size to convert WAV to MP3
body: <p>The only thing I want to do is convert wav files to mp3 inside my Android application.</p>
  <p>I am currently using <a href="https://github.com/tanersener/mobile-ffmpeg" rel="nofollow noreferrer">https://github.com/tanersener/mobile-ffmpeg</a> and with audio-release everything is working fine. As the lib size is about 40 MB and I only need a single command, I'd like to build my own .aar file as described in the Wiki to reduce the application size.</p>
  <p>I edited the <code>android-ffmpeh.sh ./configure:</code></p>
  <pre><code>--disable-everything \    
  --enable-pthreads \
  --enable-avcodec \
  --enable-avformat \
  --enable-swresample \
  --enable-avfilter \
  --enable-libmp3lame \
  --enable-parser=mpegaudio \
  --enable-demuxer=mp3,wav,pcm_s16le \
  --enable-muxer=mp3,wav,pcm_s16le \
  --enable-decoder=pcm*,mp3*,wav,pcm_s16le \
  --enable-encoder=pcm*,pcm_s16le,wav,mp3,libmp3lame \
  --enable-filter=aresample \
  --enable-protocol=file \
  </code></pre>
  <p>and then ran <code>./android.sh -l --enable-lame --enable-libiconv</code></p>
  <p>In my Android app FFmpeg loads but the conversion doesn't succed with following error:</p>
  <pre><code>E/mobile-ffmpeg: [AVFilterGraph @ 0x7209dfec40] No such filter: 'anull'
  E/mobile-ffmpeg: Error reinitializing filters!
  E/mobile-ffmpeg: Failed to inject frame into filter network: Invalid argument
  E/mobile-ffmpeg: Error while processing the decoded data for stream #0:0
  I/mobile-ffmpeg: Conversion failed!
  </code></pre>
  <p>Does anyone know what I'm missing or another config to build a minimal size binary for this.
  Any help is highly appreciated!</p>