Repository navigation
[BUG] Infinite export loop when adding looped background music to a silent video at 1x speed #1284
Description
Activity
- addedbugSomething isn't working correctlySomething isn't working correctly
on May 27, 2026 github-actions commented
on May 27, 2026 on May 27, 2026 – with GitHub ActionsContributorMore actions👋 Thanks for opening an issue, @shahabhilash!
Our maintainers will review this shortly 🚀
Before you start working
- 📖 Read the CONTRIBUTING.md guide
- 💬 Wait for a maintainer to assign you the issue before starting work
- 🔍 Search for existing issues to avoid duplicates
For GSSoC'26 contributors
If you're contributing under GirlScript Summer of Code 2026, please mention it in your comment when requesting assignment:
"I'd like to work on this — contributing under GSSoC'26"
Architecture notes
Reframe is a static Next.js app with
output: "export". Key points:- All video processing uses FFmpeg.wasm (client-side, no server)
headers()innext.config.tswon't work — usevercel.jsoninsteadnot-found.tsxrequirespublic/404.html+vercel.jsonroutes config
Happy contributing! ⭐ Star the repo if you find it useful!
/assign
github-actions commented
on May 27, 2026 on May 27, 2026 – with GitHub ActionsContributorMore actionsHey @shahabhilash, this issue has been assigned to you! 🎉 Please make progress within 5 days or it will be automatically unassigned due to inactivity.
github-actions commented
on May 29, 2026 on May 29, 2026 – with GitHub ActionsContributorMore actionsHey @shahabhilash, just a friendly reminder that this issue has had no activity for 2 days. Please leave an update or let us know if you need help! ⏰
@magic-peach A fix has been implemented and PR #1289 is open for review.
Hey @shahabhilash, final warning!
⚠️ This issue has had no activity for 4 days and will be automatically unassigned in 24 hours if there is no update.This issue has been unassigned from @shahabhilash due to 5 days of inactivity and is open for anyone to pick up — comment
/assignto claim it!- addedduplicateThis issue or pull request already existsThis issue or pull request already exists
on Sep 15, 2026 Thanks for this report! This looks like the same underlying bug as #1577 (infinite export loop / OOM when looping background music on a video with no original audio) — #1577 has a bit more detail on the root cause, so I'm closing this one in favor of that one to keep the discussion in one place. Please jump into #1577 if you have anything to add — reproduction steps, environment details, anything helps!
github-actions commented
on Sep 15, 2026 on Sep 15, 2026 – with GitHub ActionsContributorMore actions
Bug: Infinite export when looping background music on videos without original audio
Description
If a user uploads a video that has no audio track (or mutes the original audio so
hasOriginalAudio === false) and adds a background music track with “Loop Music” enabled, the export process never finishes.The FFmpeg process continues indefinitely, eventually:
Steps to Reproduce
OR mute the original audio so
hasOriginalAudioevaluates tofalseExpected Behavior
The export should stop when the video duration ends and produce a valid output file.
Actual Behavior
The export runs indefinitely because the looped audio stream never terminates.
Root Cause
In
src/lib/ffmpeg.tsinsidebuildArguments:loopMusicis enabled, the background music input is prefixed with: