[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-06-05 Thread Troels Petersen
Ahh yeah, I just noticed that VAAPI works again now with Firefox 101.0-2
and Firefox 102.0b2-1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-06-04 Thread Nikos Epwnymo
Hey there,
I am facing the same issue.

However, for me if I use MOZ_DISABLE_RDD_SANDBOX=1 firefox, it works as
expected.

Is there a way to use it while not disabling the sandbox?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-27 Thread Troels Petersen
It does not work. I tried 
$ MOZ_DISABLE_RDD_SANDBOX=1 firefox

and it still does not work. Then I remembered, that I already added this
in my /etc/profile a while ago, when it stopped working on an at that
timer new version of firefox.

This is the bottom of my /etc/profile :

export LIBVA_DRIVER_NAME=i965
export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
export MOZ_ENABLE_WAYLAND=1
export MOZ_DISABLE_RDD_SANDBOX=1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-27 Thread Olivier Tilloy
No, this is in fact an upstream regression
(https://bugzilla.mozilla.org/show_bug.cgi?id=1751363).

Can you try running the firefox snap with MOZ_DISABLE_RDD_SANDBOX=1 and
report whether this works around the problem for you?

** Bug watch added: Mozilla Bugzilla #1751363
   https://bugzilla.mozilla.org/show_bug.cgi?id=1751363

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-25 Thread Troels Petersen
Is it because the snap package uses XWayland?

I just checked about:support and it reports the window protocol as
XWayland.

Me personally, I have only had success using VAAPI HW-acceleration when
using Wayland with export MOZ_ENABLE_WAYLAND=1 and then using Wayland as
the windowing system in Ubuntu

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-21 Thread Troels Petersen
On my other laptop which uses the iHD driver, it is also not working

troels@spectre:~$ vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
  VAProfileNone   : VAEntrypointVideoProc
  VAProfileNone   : VAEntrypointStats
  VAProfileMPEG2Simple: VAEntrypointVLD
  VAProfileMPEG2Simple: VAEntrypointEncSlice
  VAProfileMPEG2Main  : VAEntrypointVLD
  VAProfileMPEG2Main  : VAEntrypointEncSlice
  VAProfileH264Main   : VAEntrypointVLD
  VAProfileH264Main   : VAEntrypointEncSlice
  VAProfileH264Main   : VAEntrypointFEI
  VAProfileH264Main   : VAEntrypointEncSliceLP
  VAProfileH264High   : VAEntrypointVLD
  VAProfileH264High   : VAEntrypointEncSlice
  VAProfileH264High   : VAEntrypointFEI
  VAProfileH264High   : VAEntrypointEncSliceLP
  VAProfileVC1Simple  : VAEntrypointVLD
  VAProfileVC1Main: VAEntrypointVLD
  VAProfileVC1Advanced: VAEntrypointVLD
  VAProfileJPEGBaseline   : VAEntrypointVLD
  VAProfileJPEGBaseline   : VAEntrypointEncPicture
  VAProfileH264ConstrainedBaseline: VAEntrypointVLD
  VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
  VAProfileH264ConstrainedBaseline: VAEntrypointFEI
  VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
  VAProfileVP8Version0_3  : VAEntrypointVLD
  VAProfileHEVCMain   : VAEntrypointVLD
  VAProfileHEVCMain   : VAEntrypointEncSlice
  VAProfileHEVCMain   : VAEntrypointFEI


On both computers, intel_gpu_top shows that the "video" engine is not being 
used at all. In Ubuntu 21.10, they were perfectly capable of using the hardware 
decoder with firefox.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-21 Thread Troels Petersen
Pardon me, I didn't see your comment.

I attached the output when viewing a video on Youtube

** Attachment added: "moz_log_platformDecoderModule5.log"
   
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+attachment/5582152/+files/moz_log_platformDecoderModule5.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-21 Thread Olivier Tilloy
The gnome platform snap, which the firefox snap relies on for libva
drivers, comes with both drivers (i965 and iHD):

$ ls -1 /snap/gnome-3-38-2004/current/usr/lib/x86_64-linux-gnu/dri/ | grep 
_drv_video.so
i965_drv_video.so
iHD_drv_video.so
nouveau_drv_video.so
r600_drv_video.so
radeonsi_drv_video.so

Can you share the output of:

MOZ_LOG="PlatformDecoderModule:5" snap run firefox

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2022-04-21 Thread Troels Petersen
It does not work again on Ubuntu 22.04 LTS with i965. I am not sure
whether i965_drv_video.so is packaged with the snap or not.

If I do:
```
troels@troels-ThinkPad-X230-Tablet:~$ LIBVA_DRIVER_NAME=i965 vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Mobile - 2.4.1
vainfo: Supported profile and entrypoints
  VAProfileMPEG2Simple: VAEntrypointVLD
  VAProfileMPEG2Simple: VAEntrypointEncSlice
  VAProfileMPEG2Main  : VAEntrypointVLD
  VAProfileMPEG2Main  : VAEntrypointEncSlice
  VAProfileH264ConstrainedBaseline: VAEntrypointVLD
  VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
  VAProfileH264Main   : VAEntrypointVLD
  VAProfileH264Main   : VAEntrypointEncSlice
  VAProfileH264High   : VAEntrypointVLD
  VAProfileH264High   : VAEntrypointEncSlice
  VAProfileH264StereoHigh : VAEntrypointVLD
  VAProfileVC1Simple  : VAEntrypointVLD
  VAProfileVC1Main: VAEntrypointVLD
  VAProfileVC1Advanced: VAEntrypointVLD
  VAProfileNone   : VAEntrypointVideoProc
  VAProfileJPEGBaseline   : VAEntrypointVLD
```
However, if it force the iHD driver:

```
troels@troels-ThinkPad-X230-Tablet:~$ LIBVA_DRIVER_NAME=iHD vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
```

So my computer does not work with the iHD driver, that I think the snap
comes packaged with. Maybe I by mistake in Ubuntu 21.10 was using the
normal packaged version of Firefox, which enabled me to use the i965 VA
driver.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-11-29 Thread Troels Petersen
Thank you all for working and fixing this issue! It also works here.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-11-28 Thread Olivier Tilloy
gnome-3-38-2004 version 0+git.cd626d1 (revision 87 for amd64) is now in
the stable channel, so the VA-API drivers are exposed for the firefox
snap and other consumer snaps.

** Changed in: firefox (Ubuntu)
   Status: In Progress => Fix Released

** Tags added: snap

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-15 Thread Vincent Chernin
Well I would say https://bugs.launchpad.net/bugs/1424201 isn’t properly
solved until VAAPI is on by default for browsers on Ubuntu. Neither
Firefox or Chromium do so yet. There’s a few bugs on the browser side
that need the be solved, as mentioned in the Arch Wiki.
https://wiki.archlinux.org/title/Firefox#Hardware_video_acceleration
https://wiki.archlinux.org/title/Chromium#Hardware_video_acceleration.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-14 Thread Troels Petersen
I am using Wayland and the variable MOZ_ENABLE_WAYLAND=1 (I read somewhere 
recently that this should be default now, but I still have it set.) 
I am using the Ubuntu variant of gnome shipped with Ubuntu 21.10. The default 
one with Ubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-14 Thread Daniel van Vugt
I guess we can soon close bug 1424201?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-14 Thread Olivier Tilloy
https://gitlab.gnome.org/Community/Ubuntu/gnome-sdk/-/merge_requests/31
adds the VA-API drivers to the gnome platform snap (gnome-3-38-2004).

** Changed in: firefox (Ubuntu)
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-14 Thread Olivier Tilloy
I can confirm that this doesn't work out of the box.

When running the firefox snap with MOZ_LOG="PlatformDecoderModule:5", I
can see that libva tries to load drivers from $SNAP/gnome-
platform/usr/lib/x86_64-linux-gnu/dri/, where it can't find any such
driver. This is bug #1947180, for which I've proposed a fix in
snapcraft.

Once that is fixed, the next step is to ship said VA-API drivers, either
in the firefox snap itself, or in the platform snap (gnome-3-38-2004).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-14 Thread Olivier Tilloy
** Changed in: firefox (Ubuntu)
 Assignee: (unassigned) => Olivier Tilloy (osomon)

** Changed in: firefox (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1947115] Re: VAAPI / HW-acceleration not working Snap-packaged Firefox

2021-10-14 Thread Sebastien Bacher
Thank you for your bug report. Which desktop environment and session do
you use? it sounds like it could be the same issue than
https://bugzilla.mozilla.org/show_bug.cgi?id=1732580 which has a fix
recently landing upstream and should make it to beta next

** Bug watch added: Mozilla Bugzilla #1732580
   https://bugzilla.mozilla.org/show_bug.cgi?id=1732580

** Changed in: firefox (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947115

Title:
  VAAPI / HW-acceleration not working Snap-packaged Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs