update bitrate filter

This commit is contained in:
Luke Pulverenti 2016-12-23 03:50:32 -05:00
parent 02f749c654
commit 5833aedb15
5 changed files with 6 additions and 4 deletions

View File

@ -62,7 +62,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
new TaskTriggerInfo
{
Type = TaskTriggerInfo.TriggerDaily,
TimeOfDayTicks = TimeSpan.FromHours(1).Ticks,
TimeOfDayTicks = TimeSpan.FromHours(2).Ticks,
MaxRuntimeMs = Convert.ToInt32(TimeSpan.FromHours(4).TotalMilliseconds)
}
};

View File

@ -1467,7 +1467,7 @@ namespace MediaBrowser.Api.Playback
}
// h264
return string.Format(" -b:v {0} -maxrate {0} -bufsize {1}",
return string.Format(" -maxrate {0} -bufsize {1}",
bitrate.Value.ToString(UsCulture),
(bitrate.Value * 2).ToString(UsCulture));
}

View File

@ -816,7 +816,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
}
// h264
return string.Format(" -b:v {0} -maxrate {0} -bufsize {1}",
return string.Format(" -maxrate {0} -bufsize {1}",
bitrate.Value.ToString(UsCulture),
(bitrate.Value * 2).ToString(UsCulture));
}

View File

@ -287,6 +287,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
return;
}
_logger.Info("Attempting to update encoder path to {0}. pathType: {1}", path ?? string.Empty, pathType ?? string.Empty);
Tuple<string, string> newPaths;
if (string.Equals(pathType, "system", StringComparison.OrdinalIgnoreCase))

View File

@ -112,7 +112,7 @@ namespace MediaBrowser.ServerApplication
// save it
IPersistFile file = (IPersistFile)link;
file.Save(targetPath, false);
file.Save(targetPath, true);
}
else
{