Open SbiCA opened 1 year ago
Do you resolved it? I have the same issue.
@LucasBicaEVR I ended up doing
// get all the files matching the pattern
var files = Path.Combine(folderPath, "%02d.png");
// call ffmeg with custom arguments
await FFMpegArguments
.FromFileInput(files, false, options =>
{
options.WithCustomArgument("-framerate 1");
options.WithCustomArgument("-pix_fmt yuv420p");
})
.OutputToFile(soundlessVideo, true, options =>
{
options.WithCustomArgument("-vcodec libx264");
options.WithCustomArgument("-crf 25");
})
.ProcessAsynchronously();
cc @rosenbjerg
Hi @rosenbjerg ,
I've tried to use the with a frame rate of 1 but somehow if I put in 3 or 4 images it only takes the first two. I've uploaded a report here https://github.com/SbiCA/ffmpeg-repro (it includes all the assets)
I checked the following things:
None of the things worked š„²
In addition I checked the tests and there is one for this scenario but if I adjust the frame rate from 10 to 5, I would expect the duration to double, right? so it should be 2s. In addition what I don't understand about that test it gets an input of 30 images with a frame rate of 10, so my expectation would be a 3s video in the first place š¤
Cheers