Update README.md

Former-commit-id: 7884e91f63
This commit is contained in:
Max Bagryantsev 2020-04-30 15:23:55 +03:00 committed by GitHub
parent 0fc86a1a52
commit 37f12fd2ea

View file

@ -363,7 +363,16 @@ Custom video converting presets could be created with help of `ArgumentsContaine
var container = new ArgumentsContainer(); var container = new ArgumentsContainer();
container.Add(new VideoCodecArgument(VideoCodec.LibX264)); container.Add(new VideoCodecArgument(VideoCodec.LibX264));
container.Add(new ScaleArgument(VideoSize.Hd)); container.Add(new ScaleArgument(VideoSize.Hd));
```
or use Fluent API
```csharp
var container = new ArgumentContainer()
.VideoCodec(VideoCodec.LibX264)
.Scale(VideoSize.Hd);
```
```csharp
var ffmpeg = new FFMpeg(); var ffmpeg = new FFMpeg();
var result = ffmpeg.Convert(container, new FileInfo("input.mp4"), new FileInfo("output.mp4")); var result = ffmpeg.Convert(container, new FileInfo("input.mp4"), new FileInfo("output.mp4"));
``` ```