Add logging when force_key_frames is disabled

This commit is contained in:
Petr Janda 2019-12-06 17:21:24 +10:30
parent 3f43aef997
commit 75426d0004

View file

@ -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";