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

ffmpeg is ran with 8 threads, not following the Parallel Jobs setting #5

Open
kannes opened this issue Jun 1, 2020 · 2 comments
Open

Comments

@kannes
Copy link

kannes commented Jun 1, 2020

In the GUI you can set a value for "Parallel Jobs".

When videos get encoded however, ffmpeg is ran with --threads 8 (probably with as many parallel instances as the Parallel Jobs setting value is).

Now I don't know the internals of this tool but I would suggest ffmpeg being run with a super conservative -threads 1 so it does not surprisingly use more cores than what the user set Parallel Jobs to.

@rsargent
Copy link
Member

rsargent commented Jun 1, 2020

We measured performance to be better with --threads 8, and there didn't seem to be much downside even when there are more total threads than cores. Many jobs are I/O bound and not CPU bound, so many jobs use less than 1 core at any given time.

You mention a user being surprised if more cores are used instantaneously than the number of "Parallel Jobs". What's the practical problem? Is it something we could explain to the user with documentation or a short snippet next to the Parallel Jobs setting?

@kannes
Copy link
Author

kannes commented Sep 27, 2020

Sorry for the late reply: CPU starvation and thus the system not being usable for anything else anymore.

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

No branches or pull requests

2 participants