mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
remove -g from video params
This commit is contained in:
parent
3ff23530e7
commit
3d566d2f6b
2 changed files with 0 additions and 9 deletions
|
@ -151,9 +151,6 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||||
|
|
||||||
args += string.Format(" -r {0}", framerate);
|
args += string.Format(" -r {0}", framerate);
|
||||||
|
|
||||||
// Needed to ensure segments stay under 10 seconds
|
|
||||||
args += string.Format(" -g {0}", framerate);
|
|
||||||
|
|
||||||
args += " -vsync vfr";
|
args += " -vsync vfr";
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(state.VideoRequest.Profile))
|
if (!string.IsNullOrEmpty(state.VideoRequest.Profile))
|
||||||
|
|
|
@ -87,12 +87,6 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||||
if (string.Equals(Path.GetExtension(outputPath), ".mp4", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(Path.GetExtension(outputPath), ".mp4", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
format = " -f mp4 -movflags frag_keyframe+empty_moov";
|
format = " -f mp4 -movflags frag_keyframe+empty_moov";
|
||||||
var framerate = state.VideoRequest.Framerate ??
|
|
||||||
state.VideoStream.AverageFrameRate ?? state.VideoStream.RealFrameRate ?? 23.976;
|
|
||||||
|
|
||||||
framerate *= 2;
|
|
||||||
|
|
||||||
keyFrame = " -g " + Math.Round(framerate);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Format("{0} {1} -i {2}{3}{4} -threads 0 {5} {6} {7}{8} \"{9}\"",
|
return string.Format("{0} {1} -i {2}{3}{4} -threads 0 {5} {6} {7}{8} \"{9}\"",
|
||||||
|
|
Loading…
Reference in a new issue