Sniff Matroska content to set correct mime type
Categories
(Core :: Audio/Video: Playback, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
(Blocks 2 open bugs)
Details
Attachments
(4 files)
We need to let nsMediaSniffer know how to detect Matroska content.
| Assignee | ||
Comment 1•10 months ago
|
||
We can use nestegg to sniff the doc type and determine
whether the content is Matroska. However, at this stage we
cannot distinguish between audio and video; that will be handled
during demuxing. For now, we always return a video MIME type.
| Assignee | ||
Comment 2•10 months ago
|
||
Since MKV cannot yet be demuxed, we are unable to record codec usage in the codec_used [1] probe.
That probe will only reflect MKV usage once the MKV demuxer is implemented.
For now, we introduce a temporary probe to collect MKV usage data. This probe can be removed once codec_used includes MKV.
| Assignee | ||
Comment 3•10 months ago
|
||
This file contains a Matroska doc type but uses a .webm extension.
Before adding Matroska sniffing, the correct MIME type could not be
determined by nsMediaSniffer, so it defaulted to the extension (.webm).
After the change, it will be detected as Matroska, which results in
playback failure since Matroska is not yet supported.
As this file is essentially Matroska, it should be re-enabled in bug
1985419 once Matroska support is implemented.
Comment 6•10 months ago
|
||
Backed out for causing xpc failures @ test_mediasniffer_ext.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/f16328906b1d53e5c0fd8964c1407f2d3195dd7f
| Assignee | ||
Comment 7•10 months ago
|
||
| Assignee | ||
Updated•10 months ago
|
Comment 9•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cbcbb5f9882a
https://hg.mozilla.org/mozilla-central/rev/42905a4d0e8e
https://hg.mozilla.org/mozilla-central/rev/d02721406326
https://hg.mozilla.org/mozilla-central/rev/76f85624496f
Updated•10 months ago
|
Description
•