Open cwilby opened 3 months ago
Setting a limit on the maximum amount of parallel streaming of files through ffmpeg.
This field should be added. It can be used as part of a query to the jobs table to determine whether a job can be processed or should be retried later.
Ability to set a manual limit on CPU load usage (e.g. 25, 50, 75, 100%) when using ffmpeg on weak hardware servers.
It is not possible to limit the CPU load on a single thread with FFmpeg (e.g, limit 1 thread to 50% CPU usage), however it is possible to limit the number of threads used by FFmpeg, which (depending on your CPU) may translate to the number of cores that are used, which may also translate to a percentage limit.
The existing Threads value can be used in this case, it detects the number of cores so you can effectively set a "percentage". I don't think this should be changed to an actual percentage control given that may not always be accurate given the CPU architecture.
Discussed in https://github.com/cwilby/nextcloud-workflow-media-converter/discussions/464