mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
removed default framerate from hls
This commit is contained in:
parent
e0f46bb91e
commit
d60fca112b
@ -142,29 +142,10 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||||||
args += GetOutputSizeParam(state, codec, performSubtitleConversion);
|
args += GetOutputSizeParam(state, codec, performSubtitleConversion);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the output framerate based on the FrameRate param
|
if (state.VideoRequest.Framerate.HasValue)
|
||||||
var framerate = state.VideoRequest.Framerate ?? 0;
|
|
||||||
|
|
||||||
// We have to supply a framerate for hls, so if it's null, account for that here
|
|
||||||
if (state.VideoStream != null)
|
|
||||||
{
|
{
|
||||||
if (framerate.Equals(0))
|
args += string.Format(" -r {0}", state.VideoRequest.Framerate.Value);
|
||||||
{
|
|
||||||
framerate = state.VideoStream.AverageFrameRate ?? 0;
|
|
||||||
}
|
|
||||||
if (framerate.Equals(0))
|
|
||||||
{
|
|
||||||
framerate = state.VideoStream.RealFrameRate ?? 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (framerate.Equals(0))
|
|
||||||
{
|
|
||||||
framerate = 23.976;
|
|
||||||
}
|
|
||||||
|
|
||||||
framerate = Math.Round(framerate);
|
|
||||||
|
|
||||||
args += string.Format(" -r {0}", framerate);
|
|
||||||
|
|
||||||
args += " -vsync vfr";
|
args += " -vsync vfr";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user