mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
Merge pull request #48 from WeihanLi/master
fix ArgumentContainer
Former-commit-id: 41da885395
This commit is contained in:
commit
2c60d39c85
1 changed files with 3 additions and 3 deletions
|
@ -358,9 +358,9 @@ public enum VideoCodec
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
### ArgumentBuilder
|
### ArgumentBuilder
|
||||||
Custom video converting presets could be created with help of `ArgumentsContainer` class:
|
Custom video converting presets could be created with help of `ArgumentContainer` class:
|
||||||
```csharp
|
```csharp
|
||||||
var container = new ArgumentsContainer();
|
var container = new ArgumentContainer();
|
||||||
container.Add(new VideoCodecArgument(VideoCodec.LibX264));
|
container.Add(new VideoCodecArgument(VideoCodec.LibX264));
|
||||||
container.Add(new ScaleArgument(VideoSize.Hd));
|
container.Add(new ScaleArgument(VideoSize.Hd));
|
||||||
|
|
||||||
|
@ -368,7 +368,7 @@ 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"));
|
||||||
```
|
```
|
||||||
|
|
||||||
Other availible arguments could be found in `FFMpegCore.FFMPEG.Arguments` namespace.
|
Other availible arguments could be found in `FFMpegCore.FFMPEG.Argument` namespace.
|
||||||
|
|
||||||
If you need to create your custom argument, you just need to create new class, that is inherited from `Argument`, `Argument<T>` or `Argument<T1, T2>`
|
If you need to create your custom argument, you just need to create new class, that is inherited from `Argument`, `Argument<T>` or `Argument<T1, T2>`
|
||||||
For example:
|
For example:
|
||||||
|
|
Loading…
Reference in a new issue