title: FFMPEG convert video to gif
body: <p><br>I want convert video to gif with FFMPEG.
  <br>and this is my code:</p>
  <pre><code>                File gifFile=new File(file.getParentFile().getPath()+&quot;/someee.gif&quot;);
                  String[] command = {&quot;-i&quot;, file.getPath(), gifFile.getPath()};
                  FFmpeg.getInstance(getContext()).execute(command, new ExecuteBinaryResponseHandler()
                  {
                      @Override
                      public void onSuccess(String message) {
                          Log.i(&quot;FFmpegggggggg:success&quot;, message);
                      }
  
                      @Override
                      public void onProgress(String message) {
                          Log.i(&quot;FFmpegggggggg:onProgre&quot;, message);
  
                      }
  
                      @Override
                      public void onFailure(String message) {
                          Log.i(&quot;FFmpegggggggg:Fail&quot;, message);
  
                      }
  
                      @Override
                      public void onStart() {
                          Log.i(&quot;FFmpegggggggg:Start&quot;, &quot;Start&quot;);
  
                      }
  
                      @Override
                      public void onFinish() {
                          Log.i(&quot;FFmpegggggggg:Finish&quot;, &quot;finish&quot;);
  
                      }
                  });
  </code></pre>
  <p>variable file = user choose file from gallery and I take it;
  this is example for file and giftfile path:</p>
  <pre><code>/storage/emulated/0/Download/Comp 1.mp4
  /storage/emulated/0/Download/someee.gif
  </code></pre>
  <p>I try two ways and both return error to me:
  <br>1 - Create someee.gif in Download directry
  <br>2 - Whitout create someee.gif in download directory
  <br>And this is my error:</p>
  <pre><code>E/FFmpeg: Exception while trying to run: [/data/user/0/com.diacotdj.liom/files/ffmpeg, ffmpeg, -i, /storage/emulated/0/Download/Comp 1.mp4, /storage/emulated/0/Download/someee.gif]
  java.io.IOException: Cannot run program &quot;/data/user/0/com.diacotdj.liom/files/ffmpeg&quot;: error=2, No such file or directory
  </code></pre>
  <p>What can i do?</p>