I want to create a slideshow from images, where each image would be displayed for some period of time (several seconds).
How do I do that?
Currently I was trying to encode short clips with ffmpeg and then stitch those together with mencoder:
foreach (var item in filePattern)
{
var otpt = item.Key + ".mpg";
Process.Start("ffmpeg",
string.Format("-y -r 25 -f image2 -vframes 75 -i {0} {1}", item.Value, otpt)//-loop 1
).WaitForExit();
}
ffmpeg -y -r 25 -f image2 -vframes 75 -i input-pattern output does create a file with 1 frame in it, while ffmpeg -y -loop 1 -r 25 -f image2 -vframes 75 -i input-pattern output on windows never finishes (needs ctrl+c to stop); the second command worked on linux for me.
I need to make this work primary on Windows. Which params should I use?
just add -t 3:
-y -r 25 -f image2 -vframes 75 -i {0} -t 3 {1}