tomaszzmuda / Xabe.FFmpeg

.NET Standard wrapper for FFmpeg. It allows to process media without know how FFmpeg works, and can be used to pass customized arguments to FFmpeg from dotnet core application.

Home Page:https://xabe.net/product/xabe_ffmpeg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.