Open Bug 1872710 Opened 2 years ago Updated 3 months ago

Youtube is lagging significantly to the point where it is unwatchable a 2x speed on Macbook Air

Categories

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

Firefox 121
defect

Tracking

()

UNCONFIRMED

People

(Reporter: hansowen.m, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

Use Intel based Macbook Air 2019 Core i5 1.6GHz Dual Core.
Ensure highspeed internet connection 300Mbps+.
Open firefox.
Open youtube.
Pick a 1080p 60fps video.
Speed up 2x.

Actual results:

Video lags and is unwatchable. However audio is fine.

Expected results:

Video plays smoothly at 2x speed at 1080p 60fps withput stuttering or lagging.

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

Can you:

  1. Open about:support in your browser and paste its contents to this bug
  2. Capture a Firefox performance profile as outlined here : https://profiler.firefox.com/docs/#/ . Please select the "Media" prest before capturing the profile.
  3. If this is a recent issue and Firefox worked good for you previously, please do a bisection using this tool https://mozilla.github.io/mozregression/ . That will pinpoint the exact regression.
Flags: needinfo?(hansowen.m)
Attached file about:support raw data —
about:support
Flags: needinfo?(hansowen.m)

Looks like we're spending most of the time in display list code. Might be expected, Macbook Air 2019 playing back 1080p at 2x speed. Marcus, do see anything in this profile that sticks out? There's also an add-blocker extension running but I don't see anything related to that in the profile.

Flags: needinfo?(mstange.moz)

Hello, does this issue only happen on when you watching 60fps video in 2x speed? Does it happen on lower playback rate, eg. 1.5x? or does it happen for 30fps video as well?

By checking the profiled result in comment4, I saw some video frames was dropped because video decoding was too late. For 60fps, each video frames is around 16ms. There were some frames, specially keyframes took way longer time to decode.

Does this issue also happen on other browsers? If so, that might indicate that the hardware is not strong enough for 60fps. If not, then we can do other further investigation.

Thank you.

Flags: needinfo?(hansowen.m)
Severity: -- → S4
Priority: -- → P3

This issue only happens when watching 60fps video in 2x speed on YouTube (however have not tested other streaming platforms). When switching to a lower playback rate, e.g., 1.5x, playback is normal. I tested other browsers alongside firefox to check if it was an issue with my Mac hardware, however, both Safari and Chrome were able to reliably playback 1080p 60fps video at 2x speed on Youtube without any lag/dropped frames. Therefore, I believed the issue may be associated with firefox and I submitted this bug report.

Flags: needinfo?(hansowen.m)

(dropping needinfo since :alwu is taking a look)

Flags: needinfo?(mstange.moz)
Regressions: video-perf
Blocks: video-perf
No longer regressions: video-perf

Thanks! Add NI to myself for checking this again.

Flags: needinfo?(alwu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: