Closed Bug 1111319 Opened 10 years ago Closed 10 years ago

Mac: H264 video playback excessively juddery sometimes

Categories

(Core :: Audio/Video, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37
Tracking Status
firefox36 --- fixed
firefox37 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(2 files, 1 obsolete file)

On mac, I've noticed that video playback is often juddery. Far more than it ought to be.

This is particularly obvious in panning scene like in this video:
http://people.mozilla.org/~jyavenard/mediatest/avc3.mp4

Using FFmpeg decoder is super smooth; the the Apple's h264 decoder isn't anywhere as smooth.
frames in that video are returned out of order.
Assignee: nobody → jyavenard
Summary: H264 video playback excessively juddery sometimes → Mac: H264 video playback excessively juddery sometimes
Debugging patch, this will abort whenever we return a frame out of order
Re-order frame according to defined sliding decoding window.
Attachment #8540600 - Flags: review?(giles)
Comment on attachment 8540600 [details] [diff] [review]
Reorder video frames with respect to decoding sliding window

Review of attachment 8540600 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with comment addressed.

::: dom/media/fmp4/apple/AppleVDADecoder.cpp
@@ +295,1 @@
>        mCallback->Output(readyData);

Fix indent.

This is a single line without the nsRefPtr in DrainReorderedFrames() which I think would also be fine here now that we don't have any other code touching readyData.
Attachment #8540600 - Flags: review?(giles) → review+
Rebase for new patch, and handle seeks. No crashes so far with this current version of the patch
Attachment #8540539 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/a7e45fb4b943
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Blocks: 1115594
Comment on attachment 8540600 [details] [diff] [review]
Reorder video frames with respect to decoding sliding window

Approval Request Comment
[Feature/regressing bug #]: MSE
[User impact if declined]: Less consistent testing; sites more likely to serve flash video.
[Describe test coverage new/current, TBPL]: Landed on m-c.
[Risks and why]: We change the way we reorder frames for display, so playback will be different for some files. Seems to work better in practice than what we had before.
[String/UUID change made/needed]: None.
Attachment #8540600 - Flags: approval-mozilla-aurora?
Attachment #8540600 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: