Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a niceness option to the FFmpeg class initializer #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MaT-PT
Copy link

@MaT-PT MaT-PT commented Jul 15, 2024

Niceness allows a process to have a lower or higher priority on Unix-like systems, this is useful to prevent ffmpeg from hogging all CPU resources in case of multiple concurrent conversions.

This PR adds a niceness parameter to the FFmpeg class constructor, which sets the niceness of the ffmpeg process that will be spawned. It also works on Windows, through creationflags and process priority.

@ecodina
Copy link

ecodina commented Nov 8, 2024

This looks good! There are other useful commands, such as "ionice" or "taskset". I think we could generalize this, by adding "modifier options" which would be appended at the start of FFMPeg.arguments. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants