code: def download_and_convert_video(path, default_ext=file_formats.MP4, ffmpeg_settings=None):
      
      ffmpeg_settings = ffmpeg_settings or {}
      key = "DOWNLOAD:{}".format(path)
      if not config.UPDATE and FILECACHE.get(key):
          return FILECACHE.get(key).decode('utf-8')
  
      config.LOGGER.info("\tDownloading {}".format(path))
  
      # Get extension of file or default if none found
      extension = os.path.splitext(path)[1][1:].lower()
      converted_path = None
  
      # Convert video to temporary file
      with tempfile.NamedTemporaryFile(suffix=".{}".format(extension), delete=False) as tempf:
          # Write unsupported video to temporary file
          write_and_get_hash(path, tempf)
          tempf.seek(0)
  
          # Compress video into mp4 file
          path, _ext = os.path.splitext(tempf.name)
          converted_path = "{}.{}".format(path, file_formats.MP4)
          tempf.close()
          compress_video(tempf.name, converted_path, overwrite=True, **ffmpeg_settings)
          os.unlink(tempf.name)
  
      # Write file to temporary file
      with tempfile.TemporaryFile() as tempf:
          hash = write_and_get_hash(converted_path, tempf)
          tempf.seek(0)
  
          filename = '{0}.{ext}'.format(hash.hexdigest(), ext=file_formats.MP4)
  
          copy_file_to_storage(filename, tempf)
          os.unlink(converted_path)
  
          FILECACHE.set(key, bytes(filename, "utf-8"))
  
          return filename
docs: download: downloads file
          Args: None
          Returns: filename