Closed
Bug 1043710
Opened 11 years ago
Closed 11 years ago
Expose h.264 frame reorder depth to PlatformDecoderModules
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: rillian, Assigned: ajones)
References
()
Details
Attachments
(3 files, 2 obsolete files)
8.58 KB,
patch
|
eflores
:
review+
|
Details | Diff | Splinter Review |
940 bytes,
patch
|
ajones
:
review+
|
Details | Diff | Splinter Review |
3.60 KB,
patch
|
ajones
:
review+
|
Details | Diff | Splinter Review |
The Apple VideoToolbox decoder needs to reorder decoded frames itself before returning them. We need to read and return the maximum reorder-depth from the file header to avoid buffering more decoded data than necessary.
This bug is about returning the value through the libstagefright binding's mp4_demuxer::VideoDecoderConfig, and adding code to read it from mp4 files if necessary.
Assignee | ||
Comment 1•11 years ago
|
||
You should be able to keep decoding frames until the decode timestamp is greater than or equal to the earliest presentation timestamp in the reorder queue
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ajones
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8478055 -
Attachment is obsolete: true
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8478090 [details] [diff] [review]
Expose decode timestamp
Review of attachment 8478090 [details] [diff] [review]:
-----------------------------------------------------------------
::: media/libstagefright/binding/MoofParser.cpp
@@ +122,5 @@
> tfhd = Tfhd(box, aTrex);
> } else if (box.IsType("tfdt")) {
> + if (!aTrex.mTrackId || tfhd.mTrackId == aTrex.mTrackId) {
> + tfdt = Tfdt(box);
> + }
This looks like an unrelated change?
Assignee | ||
Comment 4•11 years ago
|
||
Yeah.. that ended up in the wrong patch :-)
Reporter | ||
Comment 5•11 years ago
|
||
Example test file for which our current 3-frame-queue doesn't work:
https://people.mozilla.org/~ajones/mse/test.mp4
Reporter | ||
Comment 6•11 years ago
|
||
Update patch to apply cleanly, remove spurious change.
Attachment #8478090 -
Attachment is obsolete: true
Attachment #8480141 -
Flags: review?(edwin)
Reporter | ||
Comment 7•11 years ago
|
||
At last I can fill in the correct value here.
Attachment #8480143 -
Flags: review?(ajones)
Comment on attachment 8480141 [details] [diff] [review]
Expose decode timestamp
Review of attachment 8480141 [details] [diff] [review]:
-----------------------------------------------------------------
More kft's area.
Attachment #8480141 -
Flags: review?(edwin) → review?(ajones)
Comment on attachment 8480141 [details] [diff] [review]
Expose decode timestamp
Review of attachment 8480141 [details] [diff] [review]:
-----------------------------------------------------------------
Oops, didn't realise this *was* kft's patch uploaded by Ralph.
Attachment #8480141 -
Flags: review?(ajones) → review+
Reporter | ||
Comment 10•11 years ago
|
||
Implement Anthony's idea:
Instead of reading the reorder depth from the file, we can just rely on decode timestamp ordering of the samples. When a frame in the reorder buffer has a pts <= the dts of the frame we just inserted, we know we've seen all the frames we need to reorder.
Attachment #8480199 -
Flags: review?(ajones)
Assignee | ||
Updated•11 years ago
|
Attachment #8480143 -
Flags: review?(ajones) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8480199 -
Flags: review?(ajones) → review+
Reporter | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/632d5a8709cb
https://hg.mozilla.org/mozilla-central/rev/feb4a53fd308
https://hg.mozilla.org/mozilla-central/rev/674723cd981a
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•