Skip to content

load({ threads }) option and a 4 GB heap - #976

Draft
lucasgelfond wants to merge 1 commit into
claude/14-lintfrom
claude/15-threads-memory
Draft

lucasgelfond wants to merge 1 commit into
claude/14-lintfrom
claude/15-threads-memory

Conversation

@lucasgelfond

@lucasgelfond lucasgelfond commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

The cap lives in src/bind/ffmpeg/threads.c, so it sits in shared memory for every thread; no FFmpeg patch is needed.

@lucasgelfond lucasgelfond self-assigned this Sep 28, 2026
@lucasgelfond
lucasgelfond added this pull request to stack #973 September 28, 2026 22:50
@netlify

netlify Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ffmpegwasm failed.

Name Link
🔨 Latest commit ddad72e
🔍 Latest deploy log https://app.netlify.com/projects/ffmpegwasm/deploys/6abbd0cda6ec8800080dd92b

@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 37dced5 to a0a295b Compare September 28, 2026 23:52
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from a0a295b to da9d23e Compare September 28, 2026 23:56
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from da9d23e to a211a98 Compare September 29, 2026 00:17
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from a211a98 to c71aff1 Compare September 29, 2026 00:37
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from c71aff1 to 2d137dd Compare September 29, 2026 00:51
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 2d137dd to 8ac9504 Compare September 29, 2026 00:59
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 8ac9504 to 9f4f75f Compare September 29, 2026 01:45
@lucasgelfond
lucasgelfond removed this pull request from stack #973 September 29, 2026 01:45
@lucasgelfond
lucasgelfond added this pull request to stack #981 September 29, 2026 01:46
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 9f4f75f to f932210 Compare September 29, 2026 01:49
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from f932210 to 0855ef2 Compare September 29, 2026 01:57
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 0855ef2 to d0e61e2 Compare September 29, 2026 03:59
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from d0e61e2 to 5763cbe Compare September 29, 2026 04:26
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 5763cbe to 0ee0a17 Compare September 29, 2026 05:47
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 0ee0a17 to 8b811fe Compare September 29, 2026 10:34
@lucasgelfond
lucasgelfond force-pushed the claude/15-threads-memory branch from 8b811fe to d6d4df2 Compare September 29, 2026 10:49
@lucasgelfond
lucasgelfond removed this pull request from stack #981 September 29, 2026 10:49
@lucasgelfond
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
lucasgelfond force-pushed the claude/15-threads-memory branch from d6d4df2 to ddad72e Compare September 29, 2026 14:52
@lucasgelfond
lucasgelfond removed this pull request from stack #986 September 29, 2026 14:54
@lucasgelfond
lucasgelfond added this pull request to stack #988 September 29, 2026 14:55
@lucasgelfond
lucasgelfond removed this pull request from stack #988 September 29, 2026 15:13
@lucasgelfond
lucasgelfond added this pull request to stack #990 September 29, 2026 15:14
@lucasgelfond
lucasgelfond removed this pull request from stack #990 September 29, 2026 15:55
@lucasgelfond
lucasgelfond added this pull request to stack #993 September 29, 2026 15:55
@lucasgelfond
lucasgelfond removed this pull request from stack #993 September 29, 2026 21:30
@lucasgelfond
lucasgelfond added this pull request to stack #995 September 29, 2026 21:30

This branch has not been deployed

No deployments
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