title: Android ICS FFMPEG scale video not working
body: <p>I am using <a href="https://github.com/guardianproject/android-ffmpeg-java" rel="nofollow">Guardian Project Android Java FFMPEG</a> library to resize videos. Current code which is working on <code>android 5.0.1 / 5.1.0 / 4.4.4</code> :</p>
  
  <pre><code>    File fileTmp = getCacheDir();
      FfmpegController fc = null;
      try {
          fc = new FfmpegController(this, fileTmp);
      } catch (IOException e) {
          e.printStackTrace();
      }
      String path = Environment.getExternalStorageDirectory().getPath() + "/Movies/nexus.mp4";
      final String outPath = Environment.getExternalStorageDirectory().getPath() + "/Movies/test.mp4";
      final Clip out = new Clip(path);
      try {
          if (fc != null) {
              fc.convert(out, outPath, new ShellUtils.ShellCallback() {
                  @Override
                  public void shellOut(String shellLine) {
                      Log.e("", "SHELL OUT: " + shellLine);
                  }
  
                  @Override
                  public void processComplete(int exitValue) {
                      Log.e("", "PROCESS COMPLETE: " + exitValue);
                  }
              });
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>Using this code on Android 4.0.4 (Ice Cream Sandwich) doesn't do anything. While testing on other devices <code>exitValue</code> in <code>processComplete</code> is always equal to <code>0</code>, but on ICS it's <code>11</code>. Here is the output in LogCat: </p>
  
  <pre><code>SHELL OUT: /data/data/org.hardartcore.ffmpeg/app_bin/ffmpeg -y -i /mnt/sdcard/Movies/NEXUS.mp4 -ab 160k -r ntsc-film -vf scale=568:320 -strict -2 /mnt/sdcard/Movies/Test.mp4
  PROCESS COMPLETE: 11
  </code></pre>
  
  <p>I don't think it's something from ffmpeg, more like a problem when the library is trying to execute ffmpeg executable from raw folder in internal memory, but I can't see any logs or errors which indicate that too.</p>
  
  <p>So my question is, if there is any mistake which I am doing using / running this code or something which can prevent ffmpeg executable from running on old devices with Android ICS?</p>
  
  <p>Thanks in advance!</p>