Closed
Bug 1988676
Opened 9 months ago
Closed 8 months ago
BaseAudioContext: decodeAudioData() does not decode Opus in video/x-matroska
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1988848
People
(Reporter: guest271314, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Steps to reproduce:
See attached HTML and MKV files.
<script type="module">
var ac = new AudioContext({ sampleRate: 22050 });
var mediaElement = document.createElement("video");
mediaElement.controls = true;
mediaElement.autoplay = true;
document.body.appendChild(mediaElement);
const blob = await fetch(
"./test_matroska_audio.mkv",
)
.then((response) => {
console.log(response.headers.get("content-type"));
return response.blob();
});
console.log(blob);
var buffer = await blob.arrayBuffer();
mediaElement.onloadedmetadata = (e) => {
console.log(e);
};
mediaElement.onerror = async (e) => {
console.log(e, blob.type);
const ab = await ac.decodeAudioData(buffer).catch((e) =>
`${e.name} ${e.message}`
);
console.log(ab);
};
mediaElement.onloadedmetadata = async (e) => {
console.log(e, blob.type);
const ab = await ac.decodeAudioData(buffer);
console.log(ab);
};
mediaElement.src = URL.createObjectURL(blob);
</script>
Actual results:
EncodingError The buffer passed to decodeAudioData contains invalid content which cannot be decoded successfully.
Expected results:
Chromium 142
AudioBuffer {length: 34615, duration: 1.5698412698412698, sampleRate: 22050, numberOfChannels: 1}
| Reporter | ||
Comment 1•9 months ago
|
||
Comment 2•9 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Comment 3•8 months ago
|
||
Fixed by bug 1988848.
Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1988848
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•