executeFFmpegWithArguments method
A wrapper for the great FFmpeg application.
The command man ffmpeg
(if you have installed ffmpeg on your computer) will give you many informations.
If you do not have ffmpeg
on your computer you will find easyly on internet many documentation on this great program.
We use here our own ffmpeg "execute" procedure instead of the one provided by the flutter_ffmpeg plugin, so that the developers not interested by ffmpeg can use Flutter Sound without the flutter_ffmpeg plugin and without any complain from the link-editor.
Executes FFmpeg with commandArguments
provided.
Implementation
Future<int?> executeFFmpegWithArguments(List<String?> arguments) async {
if (!isFFmpegAvailable()) {
return 0;
}
flutterFFmpeg ??= FlutterFFmpeg();
return flutterFFmpeg!.executeWithArguments(arguments);
}