Firefox performance degrades during repeated seeking with VP9 video.
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | affected |
| firefox154 | --- | wontfix |
| firefox155 | --- | wontfix |
| firefox156 | --- | fixed |
People
(Reporter: litosh.a.c, Assigned: az)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(4 files, 2 obsolete files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:154.0) Gecko/20100101 Firefox/154.0
Steps to reproduce:
Open YouTube in Firefox.
Start playing video (https://www.youtube.com/watch?v=idFqSSbpXcA&t=5201s).
Seek forward and/or backward several times.
Continue watching the video.
Actual results:
After seeking several times, video playback becomes increasingly laggy and starts to stutter.
YouTube may automatically reduce the video quality. Eventually, playback may stop completely and YouTube displays an error such as:
An error occurred. Please try again later. Playback ID: XXXXXXXX
The problem appears to occur after repeatedly seeking through the video.
Expected results:
Video playback should remain smooth after seeking, with no unexpected quality degradation or playback errors.
The issue can be avoided by disabling VP9 and WebM playback in Firefox. With these settings disabled, YouTube uses other codecs such as AV1 or H.264, and the browser behaves stably during video playback.
The following preferences are currently disabled as a workaround:
media.mediasource.vp9.enabled = false
media.webm.enabled = false
When VP9/WebM playback is enabled, YouTube playback may become laggy and eventually fail after seeking. With VP9/WebM disabled, playback using AV1 or H.264 remains stable.
Comment 3•13 days 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.
The problem can be observed in Firefox 153, 154, 155, and 156. In general, VP9 playback at 1440p and 4K is affected: the video quality often drops dramatically to 480p or even 144p.
This looks like a real Firefox-side defect in handling repeated seeks with VP9/WebM. The most likely areas are the decoder lifecycle, MSE/WebM buffering, and the hardware VP9 decoding path.
The fact that switching to AV1 or H.264 completely eliminates the issue is a very strong differential test and strongly suggests that the problem is specific to the VP9/WebM playback path in Firefox.
I noticed the same issue, and it doesn't seem to be limited to a specific video format. As a temporary workaround on my PC, setting media.webm.enabled = false prevents the problem for me.
I also tested Firefox on Android 16, and interestingly, videos can crash there as well when repeatedly seeking/rewinding. This makes me think the issue may be related to Firefox's media playback/seek handling rather than being specific to Windows, NVIDIA drivers, or my PC hardware.
Comment 8•8 days ago
|
||
Could you help us out by trying to capture a Firefox performance profile when this happens? Visit https://profiler.firefox.com/ for more information and to enable the profiling toolbar button. When capturing a profile, please follow these steps -
- Navigate to about:logging
- In the logging preset drop down, select 'Media playback' and then click 'Set Log Modules'
- Click 'Start Logging' and conduct your testing. Keep this part short. Capture the issue well.
- Upload the resulting performance profile and post the url provided to this bug.
Thanks!
Comment 9•8 days ago
|
||
In the capture video, I do not see dropped frames. The crash at the end appears to have to do with avc content. Please try to capture any of these issues in a good Firefox profile!
| Reporter | ||
Comment 10•8 days ago
|
||
| Reporter | ||
Comment 11•8 days ago
|
||
with this video(https://www.youtube.com/watch?v=idFqSSbpXcA&t=5201s).
| Assignee | ||
Comment 12•7 days ago
|
||
I think this might be related to Bug 1341228.
Could you please try this build and let me know if it fixes the issue? Thanks!
| Reporter | ||
Comment 13•7 days ago
|
||
I tested this build with several different videos and repeated seeking, and everything seems to be working well. I can no longer reproduce the issue.
Thanks! Should we expect this fix to make it into the stable Firefox branch?
| Assignee | ||
Comment 14•7 days ago
|
||
Thanks for checking and reporting back! The fix will have to go through review first, but since it's not a major change I'm hoping it'll be part of the 156 release.
| Assignee | ||
Comment 15•7 days ago
|
||
Updated•7 days ago
|
| Assignee | ||
Comment 16•7 days ago
|
||
Comment 17•7 days ago
|
||
Set release status flags based on info from the regressing bug 1341228
Comment 18•7 days ago
|
||
Comment 19•6 days ago
|
||
If the fixes are not risky, should we uplift them to Fx155? Given that this affects video resolution on Youtube?
Comment 20•6 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/62c5b7dbc9e4
https://hg.mozilla.org/mozilla-central/rev/970eb072a2e9
Comment 21•6 days ago
|
||
| bugherder | ||
Updated•6 days ago
|
Comment 22•6 days ago
|
||
This isn't a new issue in 155, so I'd rather let this bake for a couple weeks and ride 156 instead. We probably should consider an ESR153 backport eventually, though.
| Assignee | ||
Comment 23•6 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D321725
Updated•6 days ago
|
Comment 24•6 days ago
|
||
firefox-release Uplift Approval Request
- User impact if declined/Reason for urgency: Reduced YouTube performance / resolution including videos stopped entirely with playback errors.
- Code covered by automated testing?: no
- Fix verified in Nightly?: no
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing: Included in bug if needed
- Risk associated with taking this patch: low
- Explanation of risk level: Targeted patch affecting a single line of code reviewed by expert in area
- String changes made/needed?: N/A
- Is Android affected?: yes
| Assignee | ||
Comment 25•6 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D321726
| Assignee | ||
Comment 26•6 days ago
|
||
Just finished the uplift requests before seeing this, happy to let them bake then. Let me know if you need anything else from my side and I'll be happy to help (or obsolete the current ones in the queue if needed), thanks!
Comment 27•6 days ago
|
||
Yeah, please go ahead and drop them. BTW, does this depend on a Nestegg update too? I see the bug dependency but didn't see that included in the stack.
Updated•6 days ago
|
Updated•6 days ago
|
| Assignee | ||
Comment 28•6 days ago
|
||
I don't think it relies on a nestegg update - pinging :kinetik to make sure.
Comment 29•6 days ago
|
||
Yeah, this fix doesn't rely on nestegg changes so is fine to uplift standalone.
Updated•1 day ago
|
Description
•