class ActiveStorage::Previewer::VideoPreviewer

def ffmpeg_exists?

def ffmpeg_exists?
  return @ffmpeg_exists if defined?(@ffmpeg_exists)
  @ffmpeg_exists = system(ffmpeg_path, "-version", out: File::NULL, err: File::NULL)
end