Repository navigation
load({ threads }) option and a 4 GB heap - #976
Draft
lucasgelfond wants to merge 1 commit into
Draft
lucasgelfond wants to merge 1 commit into
lucasgelfond wants to merge 1 commit into
Conversation
lucasgelfond
added this pull request to stack #973
September 28, 2026 22:50
❌ Deploy Preview for ffmpegwasm failed.
|
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 28, 2026 23:52
37dced5 to
a0a295b
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 28, 2026 23:56
a0a295b to
da9d23e
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 00:17
da9d23e to
a211a98
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 00:37
a211a98 to
c71aff1
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 00:51
c71aff1 to
2d137dd
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 00:59
2d137dd to
8ac9504
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 01:45
8ac9504 to
9f4f75f
Compare
lucasgelfond
removed this pull request from stack #973
September 29, 2026 01:45
lucasgelfond
added this pull request to stack #981
September 29, 2026 01:46
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 01:49
9f4f75f to
f932210
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 01:57
f932210 to
0855ef2
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 03:59
0855ef2 to
d0e61e2
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 04:26
d0e61e2 to
5763cbe
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 05:47
5763cbe to
0ee0a17
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 10:34
0ee0a17 to
8b811fe
Compare
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 10:49
8b811fe to
d6d4df2
Compare
lucasgelfond
removed this pull request from stack #981
September 29, 2026 10:49
lucasgelfond
added this pull request to stack #986
September 29, 2026 10:51
The core-count cap FFmpeg, swscale and x264 size their thread pools from moves from the JS library into fftools/ffwasm.c, so it lives in shared memory and setThreads() (load's threads option) changes it for every thread. The heap may now grow to wasm32's 4 GB instead of 2 GB.
lucasgelfond
force-pushed
the
claude/15-threads-memory
branch
from
September 29, 2026 14:52
d6d4df2 to
ddad72e
Compare
lucasgelfond
removed this pull request from stack #986
September 29, 2026 14:54
lucasgelfond
added this pull request to stack #988
September 29, 2026 14:55
lucasgelfond
removed this pull request from stack #988
September 29, 2026 15:13
lucasgelfond
added this pull request to stack #990
September 29, 2026 15:14
lucasgelfond
removed this pull request from stack #990
September 29, 2026 15:55
lucasgelfond
added this pull request to stack #993
September 29, 2026 15:55
lucasgelfond
removed this pull request from stack #993
September 29, 2026 21:30
lucasgelfond
added this pull request to stack #995
September 29, 2026 21:30
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
load({ threads: n })(Limiting threads count #142, Can we specify threads or workers to be used ? #366): FFmpeg, swscale and x264 size their thread pools for at most n cores (default 4, see Multithreading is not working on any Chromium-based browser, but it's working perfectly on Firefox. #597). In@ffmpeg/corecodecs always use one thread: its threads only take turns.The cap lives in
src/bind/ffmpeg/threads.c, so it sits in shared memory for every thread; no FFmpeg patch is needed.