private Map<String,Object> parse (String aJson) throws Exception {
    Map<String,Object> result = json.readValue(aJson,Map.class);
    ArrayList<Object> video = new ArrayList<>();
    ArrayList<Object> audio = new ArrayList<>();
    result.put("video", video);
    result.put("audio", audio);
    List<Map<String,Object>> streams = (List<Map<String, Object>>) result.get("streams");
    for(int i=0; streams!=null&&i<streams.size(); i++) {
     Map<String, Object> stream = streams.get(i);
     if("video".equals(stream.get("codec_type"))) {
       video.add(stream);
     }
     else if("audio".equals(stream.get("codec_type"))) {
       audio.add(stream);
     }
    }
    return result;
  }
Executes an ffprobe command on a given input. 

@author Arik Cohen
@since May 23, 2017
src/main/java/com/creactiviti/piper/taskhandler/media/Ffprobe.java