mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Update README.md
This commit is contained in:
parent
e9f08accc3
commit
5716291c67
1 changed files with 2 additions and 2 deletions
|
@ -34,14 +34,14 @@ Easily build your FFMpeg arguments using the fluent argument builder:
|
||||||
Convert input file to h264/aac scaled to 720p w/ faststart, for web playback
|
Convert input file to h264/aac scaled to 720p w/ faststart, for web playback
|
||||||
```csharp
|
```csharp
|
||||||
FFMpegArguments
|
FFMpegArguments
|
||||||
.FromFileInput(inputPath, true, options => options
|
.FromFileInput(inputPath)
|
||||||
|
.OutputToFile(outputPath, false, options => options
|
||||||
.WithVideoCodec(VideoCodec.LibX264)
|
.WithVideoCodec(VideoCodec.LibX264)
|
||||||
.WithConstantRateFactor(21)
|
.WithConstantRateFactor(21)
|
||||||
.WithAudioCodec(AudioCodec.Aac)
|
.WithAudioCodec(AudioCodec.Aac)
|
||||||
.WithVariableBitrate(4)
|
.WithVariableBitrate(4)
|
||||||
.WithFastStart()
|
.WithFastStart()
|
||||||
.Scale(VideoSize.Hd))
|
.Scale(VideoSize.Hd))
|
||||||
.OutputToFile(outputPath)
|
|
||||||
.ProcessSynchronously();
|
.ProcessSynchronously();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue