Update README.md

This commit is contained in:
Malte Rosenbjerg 2020-10-24 23:04:01 +02:00 committed by GitHub
parent e9f08accc3
commit 5716291c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
``` ```