title: How to read ffmpeg response from java and use it to create a progress bar?
body: <p>I am working on creating a progress bar for ffmpeg in java. So for that I need to execute a command, then read all of the progress:</p>
  
  <pre><code>String[] command = {"gnome-terminal", "-x", "/bin/sh", "-c","ffmpeg -i /home/tmp/F.webm /home/tmp/converted1.mp4"};
  
  Process process = Runtime.getRuntime().exec(command);
  </code></pre>
  
  <p>This runs perfectly. However, I need to capture the all of the progress to make a progress bar. So how can I read that data from java?</p>