mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-30 23:00:18 -04:00
Run background ffmpeg tasks as ProcessPriorityClass.BelowNormal
Follow TrickPlay example of running other background ffmpeg tasks as ProcessPriorityClass.BelowNormal: - Keyframe extraction - Media info probing during library scans - Audio normalization - Image extraction
This commit is contained in:
parent
50180adc53
commit
29e17b6bc0
@ -199,6 +199,7 @@ public partial class AudioNormalizationTask : IScheduledTask
|
||||
{
|
||||
_logger.LogDebug("Starting ffmpeg with arguments: {Arguments}", args);
|
||||
process.Start();
|
||||
process.PriorityClass = ProcessPriorityClass.BelowNormal;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -1122,6 +1122,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
private void StartProcess(ProcessWrapper process)
|
||||
{
|
||||
process.Process.Start();
|
||||
process.Process.PriorityClass = ProcessPriorityClass.BelowNormal;
|
||||
|
||||
lock (_runningProcessesLock)
|
||||
{
|
||||
|
@ -42,6 +42,7 @@ public static class FfProbeKeyframeExtractor
|
||||
try
|
||||
{
|
||||
process.Start();
|
||||
process.PriorityClass = ProcessPriorityClass.BelowNormal;
|
||||
|
||||
return ParseStream(process.StandardOutput);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user