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

Set default value for ffmpeg threads to 1 instead of the implicit 0. #671

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kenmcgaugh
Copy link
Contributor

When set to 0 RV's thread count will explode since it will create (num_cpus+1)(num_sources)(num_reader_threads) threads. In my test of loading 25 prores clips RV's thread count grew to 726 and consumed 10GB of memory. With this change in place, the thread count remained stable at 49 and memory used was 7.5GB.

To restore previous behaviour you can set the env var RV_MOVIEFFMPEG_ARGS="--codecThreads 0".

…When set to 0 RV's thread count will explode since it will create (num_cpus+1)*(num_sources)*(num_reader_threads) threads. To restore previous behaviour set env var RV_MOVIEFFMPEG_ARGS="-codecThreads 0".

Signed-off-by: Ken McGaugh <[email protected]>
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.

1 participant