I´m using ffmpeg
to convert images to a video. I don´t know how to get all images in given directory.
Future<int> execute(String command) async {
return await _flutterFFmpeg.execute(command);
}
void _onCreateVideoFromImages() {
execute("ffmpeg -r 1/5 -start_number 2 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4")
.then((rc) {
if (rc == 0) {
print("Video completed");
} else {
print(rc);
}
});
}
My images a saved in the AppDirectory
. How could I add this path to the ffmpeg execute
?