update bitrate filter
This commit is contained in:
parent
02f749c654
commit
5833aedb15
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -112,7 +112,7 @@ namespace MediaBrowser.ServerApplication
|
|||
|
||||
// save it
|
||||
IPersistFile file = (IPersistFile)link;
|
||||
file.Save(targetPath, false);
|
||||
file.Save(targetPath, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user