code: def get_ffprobe(path):
      '''
      Gets information about a media file
      TODO: use the class in ffprobe.py - why doesn't it use json output?
      '''
      try:
          with open(os.devnull, 'w') as tempf:
              subprocess.check_call(
                  ['ffprobe', '-h'], stdout=tempf, stderr=tempf)
      except Exception as e:
          raise IOError('ffprobe not found.')
  
      if not os.path.isfile(path):
          raise IOError('No such file: ' + path)
  
      j_str = ""
      try:
          j_str = subprocess.check_output([
              'ffprobe',
              '-v', 'quiet',
              '-print_format', 'json',
              '-show_format',
              '-show_streams',
              path
          ])
      except subprocess.CalledProcessError:
          pass
      j_obj = json.loads(j_str)
  
      return j_obf get_ffprobe(path):
      '''
      Gets information about a media file
      TODO: use the class in ffprobe.py - why doesn't it use json output?
      '''
      try:
          with open(os.devnull, 'w') as tempf:
              subprocess.check_call(
                  ['ffprobe', '-h'], stdout=tempf, stderr=tempf)
      except Exception as e:
          raise IOError('ffprobe not found.')
  
      if not os.path.isfile(path):
          raise IOError('No such file: ' + path)
  
      j_str = ""
      try:
          j_str = subprocess.check_output([
              'ffprobe',
              '-v', 'quiet',
              '-print_format', 'json',
              '-show_format',
              '-show_streams',
              path
          ])
      except subprocess.CalledProcessError:
          pass
      j_obj = json.loads(j_str)
  
      return j_obj
docs: Gets information about a media file
      TODO: use the class in ffprobe.py - why doesn't it use json output?