executeAsync static method

Future<FFmpegSession> executeAsync(
  1. String command, [
  2. FFmpegSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null,
  4. StatisticsCallback? statisticsCallback = null,
])

Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.

Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.

Implementation

static Future<FFmpegSession> executeAsync(String command,
        [FFmpegSessionCompleteCallback? completeCallback = null,
        LogCallback? logCallback = null,
        StatisticsCallback? statisticsCallback = null]) async =>
    FFmpegKit.executeWithArgumentsAsync(
        FFmpegKitConfig.parseArguments(command),
        completeCallback,
        logCallback,
        statisticsCallback);