Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1760359 - [HiDPI] Firefox on wayland doesn't play videos smoothly
Summary: [HiDPI] Firefox on wayland doesn't play videos smoothly
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 31
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ffwayland
TreeView+ depends on / blocked
 
Reported: 2019-10-10 11:34 UTC by Juan Orti
Modified: 2020-11-24 18:45 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-24 18:45:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
about:support with layers.acceleration.force-enabled=false (23.51 KB, text/plain)
2019-10-10 12:51 UTC, Juan Orti
no flags Details
Firefox on Wayland about:support on new profile (20.14 KB, text/plain)
2019-10-14 06:39 UTC, Juan Orti
no flags Details

Description Juan Orti 2019-10-10 11:34:04 UTC
Description of problem:
Youtube videos don't play smoothly in Firefox on Wayland on F31. They lag and are not in sync with audio. If I use firefox-x11, the playback is very smooth.

Version-Release number of selected component (if applicable):
firefox-69.0.1-3.fc31.x86_64
firefox-x11-69.0.1-3.fc31.x86_64
kernel-5.3.5-300.fc31.x86_64
mutter-3.34.1-1.fc31.x86_64
gnome-shell-3.34.1-1.fc31.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Play 1080p video in Firefox on Wayland
2. Compare with Firefox on X11

Actual results:
Video playback lags and not smooth

Expected results:
Smooth playback

Additional info:
Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)

$ vainfo 
libva info: VA-API version 1.6.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.6.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.3.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD

Comment 1 Martin Stransky 2019-10-10 12:11:09 UTC
Can you try to enable HW acceleration, set layers.acceleration.force-enabled to true at about:config and restart the browser.

Also can you attach your about:support?

Comment 2 Juan Orti 2019-10-10 12:50:21 UTC
layers.acceleration.force-enabled=true is definitely an improvement and now for example the lips and synced with the audio, but I still get small "jumps" in the video. The playback is smoother in X11.

Comment 3 Juan Orti 2019-10-10 12:51:18 UTC
Created attachment 1624348 [details]
about:support with layers.acceleration.force-enabled=false

Comment 4 Martin Stransky 2019-10-10 14:24:41 UTC
Can you try standard trouble shooting steps [1], especially:

1) Create a fresh new profile with disabled addons
2) Test Mozilla binaries with Wayland

Thanks.

[1] https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox

Comment 5 Juan Orti 2019-10-14 06:39:29 UTC
Created attachment 1625483 [details]
Firefox on Wayland about:support on new profile

The same behaviour with new profile and addons disabled.

Comment 6 Martin Stransky 2019-10-14 12:12:31 UTC
Can you also try latest Mozilla binaries to check it's not Fedora specific issue [1]? Thanks.

[1] https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox#Testing_Mozilla_binaries

Comment 7 Martin Stransky 2019-10-14 19:46:56 UTC
I wonder if that's https://bugzilla.mozilla.org/show_bug.cgi?id=1542808 - do you have a monitor which does not use 60Hz frequency?

Comment 8 Juan Orti 2019-10-15 07:33:21 UTC
Ok, it looks related to the resolution. I do the tests with Youtube 1080p60 videos. This is my setup:

$ xrandr
XWAYLAND0 connected 3072x1728+1920+0 (normal left inverted right x axis y axis) 600mm x 340mm
   3072x1728     59.94*+
XWAYLAND2 connected 1920x1080+0+772 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     59.96*+


Laptop display: 1920x1080 resolution. Video playback is very smooth, even to full screen.
Monitor: 4K resolution 60 Hz, with 125% scaling. The playback is only smooth if the Youtube video is in the default size (although subjectively not as smooth as in the laptop display). In bigger sizes like cinema mode or fullscreen, the video lags.

In X11, the playback is always smooth on both monitors at any size.

I've also tested the Mozilla binaries version 69.0.3 with a clean profile and the results have been the same.

Comment 9 Juan Orti 2019-10-21 13:42:35 UTC
It's the factional scaling of Gnome Shell. With a 100% o 200% scaling this problem doesn't happen.

Comment 10 Ben Cotton 2020-11-03 17:04:03 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Ben Cotton 2020-11-24 18:45:45 UTC
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.