Bug 261995 - WebM Opus file plays with lots of crack/pops
Summary: WebM Opus file plays with lots of crack/pops
Status: RESOLVED DUPLICATE of bug 261994
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-23 02:37 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-09-25 14:16 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-09-23 02:37:51 PDT
In bug 261994, we added a 1s audio webm file made of 0.5s of audio with 40ms packets and .5s of audio with 20ms packets.

While the file plays and no longer error, audio playback quality is bad.

The reason for this is that we have small gaps between each packets due to incorrect muxing, as the gap quickly adds up to be over 15ms, we stop correcting them.

This is an audio only file, there's no A/V sync to be worried about, we shouldn't attempt to smooth the gap; we could completely ignore the container timestamps and entirely rely on the number of frames decoded so far.
Comment 1 Radar WebKit Bug Importer 2023-09-23 02:38:07 PDT
<rdar://problem/115929491>
Comment 2 Jean-Yves Avenard [:jya] 2023-09-25 14:16:48 PDT
it was an issue in the frame size calculation done in bug 261994.

*** This bug has been marked as a duplicate of bug 261994 ***