isFFmpegInstalledLinux function

bool isFFmpegInstalledLinux()

Implementation

bool isFFmpegInstalledLinux() {
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libavcodec.so.59.37.100'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libavformat.so.59.27.100'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libavdevice.so.59.7.100'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libavfilter.so.8.44.100'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libavutil.so.57.28.100'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libswresample.so.4.7.100'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(path.dirname(Platform.resolvedExecutable),
          'lib/libswscale.so.6.7.100'))
      .existsSync()) {
    return false;
  }
  return true;
}