diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-09-02 07:38:24 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-02 07:38:24 -0600 |
| commit | fe63b7d35a28640371aa55d1132c80e396af9c00 (patch) | |
| tree | 3b13703699a2afc92211f0730bee917bda9fa3b0 /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 5491840c2a8a49a950736f139cc2c50727c6bc73 (diff) | |
| parent | 31d2f653fadda410ecb5b2bc768af51c25485589 (diff) | |
Merge pull request #10183 from nyanmisaka/fix-av1-livetv
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 1905ffb1c..d2eb54bf4 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -1216,6 +1216,12 @@ namespace MediaBrowser.Controller.MediaEncoding int bitrate = state.OutputVideoBitrate.Value; + // Bit rate under 1000k is not allowed in h264_qsv + if (string.Equals(videoCodec, "h264_qsv", StringComparison.OrdinalIgnoreCase)) + { + bitrate = Math.Max(bitrate, 1000); + } + // Currently use the same buffer size for all encoders int bufsize = bitrate * 2; |
