Choose videos where GPU hardware accelerated decoding is supported (Improves by setting media.wmf.vp9.enabled= False)
Categories
(Core :: Graphics, enhancement)
Tracking
()
People
(Reporter: pmenzel+bugzilla.mozilla.org, Unassigned)
References
Details
Attachments
(1 file)
40.14 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Steps to reproduce:
On a Dell Latitude E7250 with Debian sid/unstable and Nightly 113.0a1 (20230322094136), visit https://www.counter-strike.net/cs2.
Actual results:
The fan started spinning (probably due playing to the included videos clips). According to intel_gpu_top
the GPU video engine wasn’t used, so the VP9 versions of the videos were played.
Expected results:
If several videos are offered, Firefox should choose the one, where GPU hardware decoding is supported or allow the user to configure, what video format to prefer.
<div class="beta_source2_InlineVideoRow_3xlV-"><video class="beta_source2_InlineVideo_1lDQo" autoplay="" preload="auto" loop="" playsinline="" poster="https://cdn.cloudflare.steamstatic.com/apps/csgo/images/csgo_react/cs2/smokes_vid2.jpg"><source type="video/webm" src="https://cdn.cloudflare.steamstatic.com/apps/csgo/images/csgo_react/cs2/smokes_vid2.webm"><source type="video/mp4" src="https://cdn.cloudflare.steamstatic.com/apps/csgo/images/csgo_react/cs2/smokes_vid2.mp4"></video><div class="beta_source2_SmokesSubIntro_erW-O"><div class="beta_source2_InlineHeaderText_3rjL7">Gameplay</div><div class="beta_source2_InlineBodyText_3K4Mk">Rauch kann jetzt mit anderen Spielereignissen interagieren und somit neue Möglichkeiten schaffen. Kugeln und Splittergranaten können Rauch aufwirbeln, um kurze Sichtfenster zu schaffen oder die Deckung zu erweitern.</div></div></div>
$ mpv --hwdec=vaapi smokes_vid3.*
Playing: smokes_vid3.mp4
(+) Video --vid=1 (*) (h264 800x600 30.000fps)
Using hardware decoding (vaapi).
VO: [gpu] 800x600 vaapi[nv12]
V: 00:00:01 / 00:00:01 (98%)
Playing: smokes_vid3.webm
(+) Video --vid=1 (*) (vp9 800x600)
[ffmpeg/video] vp9: No support for codec vp9 profile 0.
V: 00:00:01 / 00:00:01 (98%)
VO: [gpu] 800x600 yuv420p
V: 00:00:01 / 00:00:01 (96%)
Exiting... (End of file)
$ ls -lh smokes_vid3.*
-rw-r--r-- 1 e7250 e7250 664K 22. Mär 17:24 smokes_vid3.mp4
-rw-r--r-- 1 e7250 e7250 356K 22. Mär 17:24 smokes_vid3.webm
Comment 1•2 years ago
|
||
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.
Comment 2•2 years ago
•
|
||
This page lags on Windows too. https://share.firefox.dev/3K2p7j2 / https://share.firefox.dev/3JImKAt
So looks like a combination of JS and GFX.
Edit: looks mostly GFX related.
Comment 3•2 years ago
|
||
This is related to VP9 videos.
If I set media.wmf.vp9.enabled = False, the scrolling is smooth.
Profile: https://share.firefox.dev/3K5OEI2
Comment 4•2 years ago
|
||
Comment 5•2 years ago
|
||
Also get this output in about:support :
(#0) Error Handling webrender error 5
(#1) GP+[GFX1-]: Video swapchain present is slow
Reporter | ||
Comment 6•2 years ago
|
||
I do not find the option media.wmf.vp9.enabled
running Nightly with GNU/Linux. Setting media.mediasource.vp9.enabled
to false also did not help.
Updated•2 years ago
|
Description
•