Bug 261995

Summary: WebM Opus file plays with lots of crack/pops
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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 ***