'How to export multi photos as a video in flutter?
how I can make a video By merging several photos? I only found this package ffmpeg_kit_flutter and used it as follows But I'm having a problem 1- In merging several photos 2- Put a duration between them
01.jpg,02.jpg,03.jpg,04.jpg
Future<void> VideoMerger() async {
loading = true;
notifyListeners();
if(await Permission.storage.request().isGranted){
String commandToExecute ='-r 15 -f mp3 -i /storage/emulated/0/Download/khh.mp3 -f image2 -i /storage/emulated/0/Download/01.jpg -y /storage/emulated/0/Download/output.mp4';
await FFmpegKit.executeAsync(commandToExecute).then((rc) {
loading = false;
notifyListeners();
print('FFmpeg process exited with rc: $rc');
});
}else if (await Permission.storage.isPermanentlyDenied){
loading = false;
notifyListeners();
openAppSettings();
}
}
Solution 1:[1]
I have just found that I can test the class of an object with inherits, as in
assert_engine(inherits( 1.5),"numeric"))
but I'd still like to know why I can't use class.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | JeremyC |
