Closed Bug 1988450 Opened 9 months ago Closed 8 months ago

Firefox doesn't decode or play Opus in Matroska container in HTMLAudioElement

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 144
defect

Tracking

()

RESOLVED DUPLICATE of bug 1988848

People

(Reporter: guest271314, Unassigned)

Details

Attachments

(1 file)

Attached video test_matroska_audio.mkv

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:

<script type="module">
  var mediaElement = document.createElement("audio");
  mediaElement.controls = true;
  mediaElement.autoplay = true;
  document.body.appendChild(mediaElement);
  fetch("./test_matroska_audio.mkv")
    .then((response) => {
      console.log(response.headers.get("Content-Type"));
      return response.blob();
    })
    .then((blob) => {
      console.log(blob);
      mediaElement.src = URL.createObjectURL(blob);
    });
</script>

Container and codec

mkvmerge -J test_matroska_audio.mkv
{
  "attachments": [],
  "chapters": [],
  "container": {
    "properties": {
      "container_type": 17,
      "date_local": "2021-09-01T02:02:08+00:00",
      "date_utc": "2021-09-01T02:02:08Z",
      "duration": 1576366000,
      "is_providing_timestamps": true,
      "muxing_application": "libebml v1.4.2 + libmatroska v1.6.4",
      "segment_uid": "ca43ba11aa2c341b485157613d6db376",
      "writing_application": "mkvmerge v60.0.0 ('Are We Copies?') 64-bit"
    },
    "recognized": true,
    "supported": true,
    "type": "Matroska"
  },
  "errors": [],
  "file_name": "test_matroska_audio.mkv",
  "global_tags": [],
  "identification_format_version": 17,
  "track_tags": [
    {
      "num_entries": 1,
      "track_id": 0
    }
  ],
  "tracks": [
    {
      "codec": "Opus",
      "id": 0,
      "properties": {
        "audio_channels": 1,
        "audio_sampling_frequency": 22050,
        "codec_delay": 6500000,
        "codec_id": "A_OPUS",
        "codec_private_data": "4f707573486561640101380122560000000000",
        "codec_private_length": 19,
        "default_track": true,
        "enabled_track": true,
        "forced_track": false,
        "language": "und",
        "language_ietf": "und",
        "minimum_timestamp": 0,
        "number": 1,
        "tag_encoder": "opusenc from opus-tools 0.1.10",
        "uid": 8497742985796830241
      },
      "type": "audio"
    }
  ],
  "warnings": []
}

Actual results:

Media resource blob:null/10d4eac9-db9d-4604-bd84-0b03b38360ce could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)

Expected results:

Playback of Opus in Matroska container by HTMLAudioElement.

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
Blocks: matroska

This is already in our plan, we started supporting AVC and AAC first, and will add more codec support later.

In addition, if you would like to discuss MKV MSE support, please see bug 1988447.

Fixed by bug 1988848.

Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1988848
Resolution: --- → DUPLICATE
No longer blocks: matroska
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: