mp4 avc file fails to play in Firefox
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: brkkyk, Unassigned)
Details
Attachments
(1 file)
(deleted),
image/png
|
Details |
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:
-
Create index.html file
-
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>
- 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.
Comment 1•3 years 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 revert this change in case you think the bot is wrong.
Comment 2•3 years ago
|
||
The issue is reproducible on Firefox 97.0.1 and Firefox Nightly 99.0a1
It does only occur on MacOS Monterey (12)
Comment 3•3 years ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 4•3 years ago
|
||
The message is "Video can't be played because video is corrupt." I do hear audio. Safari and Chrome can play the mp4.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Playback works on Windows.
Comment 6•3 years ago
|
||
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
Comment 7•3 years ago
|
||
I can play this file in Firefox Nightly on macOS Monterey 12.1 on my mac M1 Max
Comment 8•3 years ago
|
||
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.
Comment 9•3 years ago
|
||
It also works for me on my M1 Max with 12.3
Comment 10•3 years ago
|
||
Jim, what GPU do you have in the machine that reproduced the problem?
Comment 13•2 years ago
|
||
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).
Updated•2 years ago
|
Description
•