[Webkit-unassigned] [Bug 229251] New: [WebAudio/WebM] Incorrect number of frames returned if decoding frame rate doesn't match original
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 18 14:56:04 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=229251
Bug ID: 229251
Summary: [WebAudio/WebM] Incorrect number of frames returned if
decoding frame rate doesn't match original
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Audio
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jean-yves.avenard at apple.com
CC: cdumez at apple.com
When calling decodeAudioData with a context where a sampling rate set is different to the original content, the number of frames returned may be incorrect
STR:
1- Open https://jyavenard.github.io/htmltests/tests/webaudio/decodeAudioData.html
2- Select opus.webm as the file to use
3- Set the sampling rate to 44100
4- Press play
The numbers showing are 88254 frames 2.001224489795918
which indicates that we've returned 88254 frames and that the length of the blob decoded is over 2s
This file is originally encoded at 48kHz and is exactly 2s long. When forcing the content to be decoded at 44.1kHz we should be getting 88200 frames and a 2s duration.
Something is wrong in the resampling and the trimming.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210818/bc4fcf73/attachment.htm>
More information about the webkit-unassigned
mailing list