title: Get data from native process on Android
body: <p>I´m converting a video with my app, and I got it using the FFmpeg library. I´m using a static compiled version of FFmpeg and I run my command like this:</p>
  
  <pre><code>        //Conversion video
          try {
              Process p = Runtime.getRuntime().exec("data/data/package/cache/ffmpeg -i "   path   " -g "   String.valueOf(keyFrames)   " -s 720x480 -vcodec libx264 -an -y /sdcard/lowResolution.mp4");
              p.waitFor();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          Log.d(TAG, "Video convertido"); 
  </code></pre>
  
  <p>It works well but it takes me too much time, so I would like to put a progress bar, so I should need to read output events of the process (the same output I can see when I execute the command in terminal) in order to know how long will it take or something like that.</p>
  
  <p>Sorry for my english and thanks for help!!</p>