Closed Bug 1945730 Opened 1 year ago Closed 1 year ago

When direct composition is disabled, VP9 video flicks by using ffvpx hw decoding with zero-copy

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1952983

People

(Reporter: sporocyst.tw, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file About:support.txt —

use latest nightly
useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0

STR:

  1. set pref as below:
  • gfx.webrender.dcomp-win.enabled = false
  • media.ffvpx-hw.enabled = true
  • media.wmf.zero-copy-nv12-textures = true
  1. play VP9 video (there are many on youtube.com)

Expect:
Videos play smoothly

Actual:
Videos play but flick


I mentioned this initially in comment15 of bug1936717, but feels it is kind of another issue to bug reporter's problem. So I decided to file a new one.
The key here is to disable direct composition. On some PC, direct composition is spontaneously blocked as a workaround to bug 1638709, which is the very reason why I found this issue, but it can be manually disabled by setting the pref and reproduce the problem.
I believe this actually affects both VP9 and AV1 videos, but I can't confirm it on AV1 since my intel iGPU don't support AV1 HW decoding.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Version: other → unspecified

Alastor, please dupe as appropriate.

Flags: needinfo?(alwu)

Is this issue also happening when setting media.ffvpx-hw.enabled to false? Thanks!

Flags: needinfo?(alwu) → needinfo?(sporocyst.tw)

It happens only when media.ffvpx-hw.enabled is true.

If I set media.ffvpx-hw.enabled to false, the flickering disappears while HW decoding remains functional and working based on what I've seen on Windows' task manager.

Also, setting media.wmf.zero-copy-nv12-textures to false or gfx.direct3d11.reuse-decoder-device to false can avoid the flickering.

Flags: needinfo?(sporocyst.tw)

Ok, I think it's the same as the behavior I observed before, enabling zero copy is still not working well. I will check it later.

Blocks: hw-ffvpx
Severity: -- → S3
Priority: -- → P3
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1952983
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: