Open Bug 1755936 Opened 3 years ago Updated 2 years ago

mp4 avc file fails to play in Firefox

Categories

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

Unspecified
macOS
defect

Tracking

()

Tracking Status
firefox-esr91 --- affected
firefox97 --- affected
firefox98 --- affected
firefox99 --- affected

People

(Reporter: brkkyk, Unassigned)

Details

Attachments

(1 file)

Attached image firefox-report.png (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36

Steps to reproduce:

I can reproduce by following these steps:

  1. Create index.html file

  2. Put those inside:

<!DOCTYPE html>
<html>
<head>
<title>Firefox Bug</title>
</head>
<body>
<video controls>
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"/>
</video>
</body>
</html>

  1. Try to run it with Firefox 97.0 on macOS Monterey 12.1 (21C52).

"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0"

Actual results:

It tells "No video with supported format and MIME type found."

With console logs below:

Media resource http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4 could not be decoded. index.html

All candidate resources failed to load. Media load paused. index.html

Media resource http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004)
Details: void mozilla::AppleVTDecoder::OnDecodeError(OSStatus): OnDecodeError:ffffcd93

Expected results:

Video should play normally.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

The issue is reproducible on Firefox 97.0.1 and Firefox Nightly 99.0a1

It does only occur on MacOS Monterey (12)

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → macOS
Version: Firefox 97 → Trunk

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)

The message is "Video can't be played because video is corrupt." I do hear audio. Safari and Chrome can play the mp4.

Blocks: media-triage
Severity: -- → S4
Flags: needinfo?(jmathies)
Priority: -- → P3
Summary: Using video tag with specific source fails. → mp4 avc file failes to play in Firefox
Summary: mp4 avc file failes to play in Firefox → mp4 avc file fails to play in Firefox

Playback works on Windows.

log error - [Child 13412, MediaDecoderStateMachine #1] WARNING: Decoder=110cc8400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - void mozilla::AppleVTDecoder::OnDecodeError(OSStatus): OnDecodeError:ffffcd93: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3587

profile - https://share.firefox.dev/3xYCVp0

I can play this file in Firefox Nightly on macOS Monterey 12.1 on my mac M1 Max

Based on the comment 6, the error code is ffffcd93 in hex, which is -12909 (kVTVideoDecoderBadDataErr). It might be related with we didn't setup a correct CMBlockBufferCreateWithMemoryBlock based on sps/pps value.

It also works for me on my M1 Max with 12.3

Jim, what GPU do you have in the machine that reproduced the problem?

Flags: needinfo?(jmathies)

Intel Iris Plus Graphics 655 1536 MB

Flags: needinfo?(jmathies)

note to grab a profile

Flags: needinfo?(jmathies)

See also https://github.com/webcompat/web-bugs/issues/106302 for an MP4 which gives this error on Windows (but plays fine in other browsers).

No longer blocks: media-triage
Flags: needinfo?(jmathies)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: