Is there way to add transition between images when generating mp4
vanaja9966 opened this issue · comments
var tr = $"-filter_complex 'xfade=transition =fadeblack:duration = 1:offset = 4.5'";
IConversionResult conversionResult = await FFmpeg.Conversions.New()
.SetOverwriteOutput(true)
.SetInputFrameRate(0.3)
.BuildVideoFromImages(imageFiles)
.SetFrameRate(20)
.AddParameter($"{tr}"", ParameterPosition.PostInput)
.SetPixelFormat(PixelFormat.yuv420p)
.SetOutput(output.mp4)
.Start()
Unable to get video while adding filter_complex. Is there method we can add Transition between images.
Hello,
It's a quite complicated query. In that case, I would suggest using direct arguments to pass it to ffmpeg.