Closed Bug 1167528 Opened 10 years ago Closed 9 years ago

Firefox can't play a MP4 video when its moov box is at the end of file

Categories

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

37 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bwu, Assigned: ayang)

Details

Attachments

(2 files, 1 obsolete file)

Device: Flame SW version: 3.0 code base (two days again). Repro step: 1. Push the test video to phone. 2. Open Video APP. Expected result: The thumbnail of the test file will be shown. Actual result: The running dot-line (means it is generating thumbnail) on the top of screen will not stop. The thumbnail is not shown. Repro rate: 100%
The test video file.
After a quick check, Gecko fails to read MetaData and return false @MP4Demuxer::Init()[1] [1]https://dxr.mozilla.org/mozilla-central/source/dom/media/fmp4/MP4Demuxer.cpp?from=MP4Demuxer.cpp&case=true#35
(In reply to Blake Wu [:bwu][:blakewu] from comment #0) > Device: > Flame > > SW version: > 3.0 code base (two days again). Need to also apply the patch, attachment 8609133 [details] [diff] [review], in bug 1166169 to let video play with PDM and new demuxer.
Not only gonk but other platforms have the same problem. The moov is at the end of video and demux can't find it when reading metadata.
Assignee: nobody → ayang
OS: Gonk (Firefox OS) → All
Hardware: ARM → All
Summary: [FFOS] Demuxer cannot demux the attached file which previously could be played in Video APP. → Firefox can't play a MP4 video when its moov box is at the end of file
Attached patch fix_large_box_length (obsolete) — Splinter Review
The video can be played after applied this patch; however, it displays error the end. This video has unknown box, I guess our demuxer doesn't recognize it.
Gonk is ok after applying demux patch. It could be problem of Mac PlatformDecoderModule.
I'll add a test case later.
Attachment #8611044 - Attachment is obsolete: true
Attachment #8613424 - Flags: review?(ajones)
Comment on attachment 8613424 [details] [diff] [review] fix_large_box_length Review of attachment 8613424 [details] [diff] [review]: ----------------------------------------------------------------- A mochitest for this case would probably help us avoid breaking this again.
Attachment #8613424 - Flags: review?(ajones) → review+
Component: Audio/Video → Audio/Video: Playback
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: