ublue-os / bluefin

The next generation Linux workstation, designed for reliability, performance, and sustainability.
https://projectbluefin.io
Apache License 2.0
1.3k stars 166 forks source link

Codecs for Firefox #445

Closed bmp closed 1 year ago

bmp commented 1 year ago

I am on bluefin-dx-framework currently and have followed the instructions in the documentation, but I do not get the codecs as listed in the guide.

Here are the relevant outputs,

  1. flatpak list --runtime | grep ffmpeg-full
    ffmpeg-full org.freedesktop.Platform.ffmpeg-full        22.08   system
    ffmpeg-full org.freedesktop.Platform.ffmpeg-full        22.08   user
  2. about:support screenshot of the media section from Firefox,

image

  1. The screenshot of about:config from Firefox for media.ffmpeg.vaapi.enable

image

  1. And a screenshot of the version of Firefox,

image

Please do let me know if I am doing something wrong.

castrojo commented 1 year ago

Mine looks like yours now but my support looks correct when I do vainfo. What's yours look like? I wonder if it's a UI change in the update because it used to look like that but doesn't anymore.

bmp commented 1 year ago

Here is the output of vainfo,

Trying display: wayland
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.18 (libva 2.18.2)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.6 ()
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
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointEncSlice
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSlice
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointEncSlice
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP
bmp commented 1 year ago

This gets stranger! I installed wl-clipboard for another package, espanso, which I need, and here is the new screenshot on Firefox,

image

And here is the output of sudo rpm-ostree status,

● ostree-unverified-image:docker://ghcr.io/ublue-os/bluefin-framework:38
                   Digest: sha256:9aa8c8aaf9422237160bcdfac4f7a71577e47c027c3efacbe728b944411bd281
                  Version: 38.20230828.0 (2023-08-28T21:25:50Z)
          LayeredPackages: wl-clipboard

  ostree-unverified-image:docker://ghcr.io/ublue-os/bluefin-framework:38
                   Digest: sha256:1858e9b96abd23f7b90284b1fa07350dd9b5c0c911c5a8b141501632d40022bc
                  Version: 38.20230828.0 (2023-08-28T15:19:05Z)
castrojo commented 1 year ago

Huh. I have no idea what is happening here.

bmp commented 1 year ago

Can anyone else check if having wl-clipboard layered makes this change in firefox about:support page?

bobslept commented 1 year ago

My laptop with AMD 4800u cpu with integrated graphics shows this after only changing media.ffmpeg.vaapi.enabled=true and having org.freedesktop.Platform.ffmpeg-full installed. (This is on stock silverblue btw)

image

I've reset the flatpak permissions via flatseal to be sure it's all default. The picture above does only show this after playing a media file otherwise I get this first:

image

On my dekstop with AMD Raden RX 6600 graphics card image

Desktop is on bluefin-dx without any layered packages. Firefox 117

bmp commented 1 year ago

@bobslept Thank you for the information, I'll wait for a couple of other people to check as well. In case this happens to them like it did for me and @castrojo, then maybe worth looking at? I'll give it a try in a VM to check if the same thing happens there over the weekend.

castrojo commented 1 year ago

Semi-related since you mentioned the clipboard, should we ship this? https://github.com/Slackadays/Clipboard

Let's split that off in an issue (if you agree) because I'd like to just fix that as a whole.

bmp commented 1 year ago

Semi-related since you mentioned the clipboard, should we ship this? https://github.com/Slackadays/Clipboard

Let's split that off in an issue (if you agree) because I'd like to just fix that as a whole.

Seems really impressive, hadn't come across it before, I think it might be useful.

castrojo commented 1 year ago

This all appears to be working.