parameters: (ffprobe_dir, input_video)
return_statement: return return_string
docstring: Gets input video information
      This method reads input video information
      using ffprobe in dictionary.
      Arguments:
          input_video {string} -- input video file path
      Returns:
          dictionary -- JSON text of input video information
docstring_summary: Gets input video information
      This method reads input video information
      using ffprobe in dictionary.
      Arguments:
          input_video {string} -- input video file path
      Returns:
          dictionary -- JSON text of input video information
docstring_tokens: Gets input video information This method reads input video information using ffprobe in dictionary . Arguments : input_video { string } -- input video file path Returns : dictionary -- JSON text of input video information
function: def get_aspect_ratio(ffprobe_dir, input_video):
      """ Gets input video information
      This method reads input video information
      using ffprobe in dictionary.
      Arguments:
          input_video {string} -- input video file path
      Returns:
          dictionary -- JSON text of input video information
      """
      assert get_operating_system() != "win32" or os.path.exists(ffprobe_dir), "%s does not exist!" % ffprobe_dir
  
      # this execution command needs to be hard-coded
      # since video2x only strictly recignizes this one format
      execute = [
          ffprobe_dir,
          '-v',
          'panic',
          '-select_streams',
          'v:0',
          '-show_entries',
          'stream=display_aspect_ratio',
          '-of',
          'csv=p=0',
          input_video
      ]
  
      return_bytes = subprocess.run(execute, check=True, stdout=subprocess.PIPE).stdout
      return_string = return_bytes.decode("utf-8")
  
      if "N/A" in return_string:
          return None
  
      return return_string
function_tokens: def get_aspect_ratio ( ffprobe_dir , input_video ) : assert get_operating_system ( ) != "win32" or os . path . exists ( ffprobe_dir ) , "%s does not exist!" % ffprobe_dir # this execution command needs to be hard-coded # since video2x only strictly recignizes this one format execute = [ ffprobe_dir , '-v' , 'panic' , '-select_streams' , 'v:0' , '-show_entries' , 'stream=display_aspect_ratio' , '-of' , 'csv=p=0' , input_video ] return_bytes = subprocess . run ( execute , check = True , stdout = subprocess . PIPE ) . stdout return_string = return_bytes . decode ( "utf-8" ) if "N/A" in return_string : return None return return_string