Closed Bug 1137529 Opened 9 years ago Closed 9 years ago

Attempt to use VDA for high-definition video

Categories

(Core :: Audio/Video, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(1 file, 1 obsolete file)

Apple's VideoToolbox performance can be sub-par on some machines, even when hardware acceleration is in use.

Yet, VDA is always super fast.

So use it for high-def when possible as a temporary work-around.
Assignee: nobody → jyavenard
Try VDA first if the resolution height is >= 720p. Not a perfect test, but seeing the problem is mostly an issue on 1080p and 4K video, 720p will do. Also change so media.apple.forcevda can be changed on the fly. I didn't know about Preferences::AddBoolVarCache when I first wrote that code.
Attachment #8570328 - Flags: review?(giles)
Comment on attachment 8570328 [details] [diff] [review]
Prefer Apple's VDA hardware acceleration for Hi-Def videos

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

Works for me.
Attachment #8570328 - Flags: review?(giles) → review+
https://hg.mozilla.org/mozilla-central/rev/c6e173b28eca
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
This seems to have helped on my Early 2013 MacBook. Yesterday's nightly and today's dev edition dropped many frames playing the longboard video https://www.youtube.com/watch?v=79ImZE0K7xc at 1080p60. With today's nightly it's quite smooth.

However, I still get most frames dropping on https://www.youtube.com/watch?v=-6xgKbQN1KA
partial revert of c6e173b28eca
Attachment #8590657 - Flags: review?(giles)
Comment on attachment 8590657 [details] [diff] [review]
Partial evert of commit c6e173b28eca

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

r=me with commit message changed to:

Bug 1137529: Don't prefer VDA for 720p and above. r=rillian

Partially reverts the prior change.
Attachment #8590657 - Flags: review?(giles) → review+
Comment on attachment 8590657 [details] [diff] [review]
Partial evert of commit c6e173b28eca

Wrong bug#
Attachment #8590657 - Attachment is obsolete: true
Depends on: 1187103
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: