SetInput method not found
CodingOctocat opened this issue · comments
Did you find an answer ? I got the same issue...
Hello,
It changed some time ago.
Try using AddStream instead of SetInput:
var outputPath = "test.mp4";
var mediaInfo = await MediaInfo.Get(Resources.MkvWithAudio);
IConversionResult conversionResult = await FFmpeg.Conversions.New()
.AddStream(mediaInfo.Streams)
.AddParameter($"-ss {TimeSpan.FromSeconds(1)} -t {TimeSpan.FromSeconds(1)}")
.AddParameter("-s 1920x1080")
.SetOutput(outputPath)
.Start();
I'm going to update documentation.
Hello,
Thank you. It works now.