string inputVideoPath = Path.Combine("C:", "Temp", "input.mkv");
string outputPathMp4 = Path.Combine("C:", "Temp", "result.mp4");
IMediaInfo info = await FFmpeg.GetMediaInfo(inputVideoPath);
IStream videoStream = info.VideoStreams.FirstOrDefault()
?.SetFramerate(29.97);
return FFmpeg.Conversions.New()
.AddStream(videoStream, audioStream)
.SetOutput(outputPathMp4);