Do not set different force_key_frames for vod streams

pull/8744/head
Dominik 2 years ago
parent abcf9c4819
commit 87f3bdb918

@ -1272,22 +1272,11 @@ namespace MediaBrowser.Controller.MediaEncoding
{ {
var args = string.Empty; var args = string.Empty;
var gopArg = string.Empty; var gopArg = string.Empty;
var keyFrameArg = string.Empty;
if (isEventPlaylist) var keyFrameArg = string.Format(
{
keyFrameArg = string.Format(
CultureInfo.InvariantCulture, CultureInfo.InvariantCulture,
" -force_key_frames:0 \"expr:gte(t,n_forced*{0})\"", " -force_key_frames:0 \"expr:gte(t,n_forced*{0})\"",
segmentLength); segmentLength);
}
else if (startNumber.HasValue)
{
keyFrameArg = string.Format(
CultureInfo.InvariantCulture,
" -force_key_frames:0 \"expr:gte(t,{0}+n_forced*{1})\"",
startNumber.Value * segmentLength,
segmentLength);
}
var framerate = state.VideoStream?.RealFrameRate; var framerate = state.VideoStream?.RealFrameRate;
if (framerate.HasValue) if (framerate.HasValue)

Loading…
Cancel
Save