getMediaInformation static method

Future<MediaInformationSession> getMediaInformation(
  1. String path, [
  2. int? waitTimeout = null
])

Extracts media information for the file specified with path.

Implementation

static Future<MediaInformationSession> getMediaInformation(String path,
    [int? waitTimeout = null]) async {
  final commandArguments = [
    "-v",
    "error",
    "-hide_banner",
    "-print_format",
    "json",
    "-show_format",
    "-show_streams",
    "-show_chapters",
    "-i",
    path
  ];
  return FFprobeKit.getMediaInformationFromCommandArguments(
      commandArguments, waitTimeout);
}