title: I m trying to use 'ffprobe' with Java or groovy
body: <p>As per my understanding "ffprobe" will provide file related data in JSON format. So, I have installed the ffprobe in my Ubuntu machine but I don't know how to access the ffprobe JSON response using Java/Grails.</p>
  
  <p>Expected response format:</p>
  
  <pre><code>{
      "format": {
          "filename": "/Users/karthick/Documents/videos/TestVideos/sample.ts",
          "nb_streams": 2,
          "nb_programs": 1,
          "format_name": "mpegts",
          "format_long_name": "MPEG-TS (MPEG-2 Transport Stream)",
          "start_time": "1.430800",
          "duration": "170.097489",
          "size": "80425836",
          "bit_rate": "3782576",
          "probe_score": 100
      }
  }
  </code></pre>
  
  <p>This is my groovy code </p>
  
  <pre><code> def process = "ffprobe -v quiet -print_format json -show_format -show_streams HelloWorld.mpeg ".execute()             
          println "Found ${process.text}"
          render  process  as JSON
  </code></pre>
  
  <p>I m able to get the process object and i m not able to get the json response </p>
  
  <p>Should i want to convert the process object to json object?</p>
  
  <p>OUTPUT:</p>
  
  <p>Found java.lang.UNIXProcess@75566697
  org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error converting Bean with class java.lang.UNIXProcess</p>