From 75426d00042f1140d1a9cd2bb3b53e57cc6db343 Mon Sep 17 00:00:00 2001 From: Petr Janda Date: Fri, 6 Dec 2019 17:21:24 +1030 Subject: [PATCH] Add logging when force_key_frames is disabled --- MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs index 0918d57afa..3207a68825 100644 --- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs @@ -948,9 +948,13 @@ namespace MediaBrowser.Api.Playback.Hls args += " " + EncodingHelper.GetVideoQualityParam(state, codec, encodingOptions, GetDefaultEncoderPreset()); // Unable to force key frames to h264_qsv transcode - if (codec != "h264_qsv") { - args += " " + keyFrameArg; - } + if (codec == "h264_qsv") { + Logger.LogInformation("Bug Workaround: Disabling force_key_frames for h264_qsv"); + } + else + { + args += " " + keyFrameArg; + } //args += " -mixed-refs 0 -refs 3 -x264opts b_pyramid=0:weightb=0:weightp=0";