update bitrate filter
This commit is contained in:
parent
02f749c654
commit
5833aedb15
|
@ -62,7 +62,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
new TaskTriggerInfo
|
new TaskTriggerInfo
|
||||||
{
|
{
|
||||||
Type = TaskTriggerInfo.TriggerDaily,
|
Type = TaskTriggerInfo.TriggerDaily,
|
||||||
TimeOfDayTicks = TimeSpan.FromHours(1).Ticks,
|
TimeOfDayTicks = TimeSpan.FromHours(2).Ticks,
|
||||||
MaxRuntimeMs = Convert.ToInt32(TimeSpan.FromHours(4).TotalMilliseconds)
|
MaxRuntimeMs = Convert.ToInt32(TimeSpan.FromHours(4).TotalMilliseconds)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1467,7 +1467,7 @@ namespace MediaBrowser.Api.Playback
|
||||||
}
|
}
|
||||||
|
|
||||||
// h264
|
// h264
|
||||||
return string.Format(" -b:v {0} -maxrate {0} -bufsize {1}",
|
return string.Format(" -maxrate {0} -bufsize {1}",
|
||||||
bitrate.Value.ToString(UsCulture),
|
bitrate.Value.ToString(UsCulture),
|
||||||
(bitrate.Value * 2).ToString(UsCulture));
|
(bitrate.Value * 2).ToString(UsCulture));
|
||||||
}
|
}
|
||||||
|
|
|
@ -816,7 +816,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
}
|
}
|
||||||
|
|
||||||
// h264
|
// h264
|
||||||
return string.Format(" -b:v {0} -maxrate {0} -bufsize {1}",
|
return string.Format(" -maxrate {0} -bufsize {1}",
|
||||||
bitrate.Value.ToString(UsCulture),
|
bitrate.Value.ToString(UsCulture),
|
||||||
(bitrate.Value * 2).ToString(UsCulture));
|
(bitrate.Value * 2).ToString(UsCulture));
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,6 +287,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_logger.Info("Attempting to update encoder path to {0}. pathType: {1}", path ?? string.Empty, pathType ?? string.Empty);
|
||||||
|
|
||||||
Tuple<string, string> newPaths;
|
Tuple<string, string> newPaths;
|
||||||
|
|
||||||
if (string.Equals(pathType, "system", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(pathType, "system", StringComparison.OrdinalIgnoreCase))
|
||||||
|
|
|
@ -112,7 +112,7 @@ namespace MediaBrowser.ServerApplication
|
||||||
|
|
||||||
// save it
|
// save it
|
||||||
IPersistFile file = (IPersistFile)link;
|
IPersistFile file = (IPersistFile)link;
|
||||||
file.Save(targetPath, false);
|
file.Save(targetPath, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user