Fix Firefox crackling during remuxed and transcoded playback - #65
Merged
Conversation
blurbery
force-pushed
the
fix/firefox-remux-audio-timestamps
branch
2 times, most recently
from
August 29, 2026 02:38
d1e7850 to
84f98dc
Compare
blurbery
force-pushed
the
fix/firefox-remux-audio-timestamps
branch
from
August 29, 2026 02:48
84f98dc to
8ff6aa1
Compare
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.
What I found
I reproduced this against my production server in Firefox using the same affected file. The source was valid stereo AAC at 48 kHz in Matroska, but Matroska exposed a 1/1000 timebase. Silo copied those rounded timestamps into fragmented MP4: AAC packets were always 21.333 ms long while their PTS advanced by 21.000, 21.333, or 22.000 ms. Firefox treats those gaps as missing audio and inserts silence, which is heard as crackling and popping.
This matches Mozilla bugs 1828967 and 1682532. It is a follow-up to the AAC downmix normalization added through upstream PR #820.
What changed
Evidence
Using Silo's exact production remux arguments, the before output contained 21.000/21.333/22.000 ms PTS steps for fixed 21.333 ms AAC frames. With the new audio recipe, every output PTS advances exactly 21.333 ms. The source itself decodes without FFmpeg warnings.
Tests
AAC|Audio|Remux|FirefoxMatroskapass.