code: def ffmpeg_version():
      
  
      cmd = [
          'ffmpeg',
          '-version'
      ]
  
      output = sp.check_output(cmd)
      aac_codecs = [
          x for x in
          output.splitlines() if "ffmpeg version " in str(x)
      ][0]
      hay = aac_codecs.decode('ascii')
      match = re.findall(r'ffmpeg version (\d+\.)?(\d+\.)?(\*|\d+)', hay)
      if match:
          return "".join(match[0])
      else:
          return None
docs: Returns the available ffmpeg version
  
      Returns
      ----------
      version : str
          version number as string