Update README.md

Former-commit-id: 5716291c67
This commit is contained in:
Malte Rosenbjerg 2020-10-24 23:04:01 +02:00 committed by GitHub
parent 7f7aac58fa
commit 0f7bb17f8b

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