mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
bufsize change
This commit is contained in:
parent
c3fa40715c
commit
e8b4ff5346
@ -146,7 +146,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||
builder.AppendLine(playlistUrl);
|
||||
|
||||
// Low bitrate stream
|
||||
//builder.AppendLine("#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=64000");
|
||||
//builder.AppendLine("#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000");
|
||||
//playlistUrl = "hls/" + Path.GetFileName(firstPlaylist).Replace(".m3u8", "-low/stream.m3u8");
|
||||
//builder.AppendLine(playlistUrl);
|
||||
|
||||
|
@ -188,7 +188,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||
|
||||
if (bitrate.HasValue)
|
||||
{
|
||||
args += string.Format(" -b:v {0} -maxrate {0} -minrate {0} -bufsize ({0}/11)", bitrate.Value.ToString(UsCulture));
|
||||
args += string.Format(" -b:v {0} -maxrate {0} -minrate {0} -bufsize ({0}/10)", bitrate.Value.ToString(UsCulture));
|
||||
}
|
||||
|
||||
// Add resolution params, if specified
|
||||
|
@ -285,7 +285,7 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
|
||||
if (bitrate.HasValue)
|
||||
{
|
||||
args += string.Format(" -b:v {0} -maxrate {0} -minrate {0} -bufsize ({0}/11)", bitrate.Value.ToString(UsCulture));
|
||||
args += string.Format(" -b:v {0} -maxrate {0} -minrate {0} -bufsize ({0}/10)", bitrate.Value.ToString(UsCulture));
|
||||
}
|
||||
|
||||
return args.Trim();
|
||||
|
Loading…
Reference in New Issue
Block a user