You are not logged in.

#1 2022-01-18 19:27:01

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

problem with vaapi and youtube video on firefox and chrome

Hello everyone

i am new to the arch linux world. i installed with archinstall the system with kde plasma and wayland on a lenovo thinkpad L450 notebook. I followed this guide: https://www.youtube.com/watch?v=tpy9yws-J2I&t=152s and I have seen many others on forums and videos. unfortunately i don't understand why, but 1080p videos are processed entirely by the cpu. i tried both chrome and firefox, but both do not distribute the load on the gpu. is there any way to fix? the drivers are properly installed for this laptop's intel video card.

thanks for the informations.

Offline

#2 2022-01-18 21:38:43

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,238

Re: problem with vaapi and youtube video on firefox and chrome

Welcome to Arch.  The Arch Wiki has a lot of valuable information. Did you check https://wiki.archlinux.org/title/Hardwa … celeration ?


Mike C

Offline

#3 2022-01-18 22:02:05

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

mcloaked wrote:

Welcome to Arch.  The Arch Wiki has a lot of valuable information. Did you check https://wiki.archlinux.org/title/Hardwa … celeration ?

yes, i have read official wiki, but i don't find nothing about this problem....i have followed all instruction, but i open video on youtube in firefox or chrome and don't work the gpu elaboration neutral

Offline

#4 2022-01-18 22:40:08

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

Output of "vainfo"?
Also see https://bbs.archlinux.org/viewtopic.php?id=244031 - browser HW acceleration basically sucks sad

Offline

#5 2022-01-18 23:47:57

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

this is my vainfo output:

vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broadwell - 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
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointVLD


in my chromium (from extra repo), there are this gpu config:

Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Enabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Hardware accelerated
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Enabled
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Enabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

i used only 3 flags in config file:
--enable-gpu-rasterization
--ignore-gpu-backlist
--disable-gpu-driver-workarounds

i have activated any flags in the browser for enable all gpu option...i don't find option for enable video encode...so..intel_gpu_top give me always 0% on video

Last edited by sephiroth986 (2022-01-19 00:32:01)

Offline

#6 2022-01-19 04:57:35

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: problem with vaapi and youtube video on firefox and chrome

You do not have a VP9 hardware decoder, but youtube prefers to send VP9 videos. You can try https://addons.mozilla.org/de/firefox/a … d-h264ify/ (there should be something similar for chromium)
Here is a page to try different codecs: http://demo.nimius.net/video_test/

Last edited by progandy (2022-01-19 04:59:06)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2022-01-19 09:48:06

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

progandy wrote:

You do not have a VP9 hardware decoder, but youtube prefers to send VP9 videos. You can try https://addons.mozilla.org/de/firefox/a … d-h264ify/ (there should be something similar for chromium)
Here is a page to try different codecs: http://demo.nimius.net/video_test/

I have try this addon any days ago, but don't work...

Offline

#8 2022-01-19 10:20:42

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

"tried" doesn't mean you did and "don't work" isn't a problem description.
youtube offers "stats for nerds" in the video context menu that will tell you which video codec is being used.
Also check the browsers "about:gpu" to see whether hw acceleration is available in that context at all.

Offline

#9 2022-01-19 22:36:03

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

seth wrote:

"tried" doesn't mean you did and "don't work" isn't a problem description.
youtube offers "stats for nerds" in the video context menu that will tell you which video codec is being used.
Also check the browsers "about:gpu" to see whether hw acceleration is available in that context at all.

this is the result:

https://ibb.co/tMQf6Ld

Last edited by sephiroth986 (2022-01-19 22:36:37)

Offline

#10 2022-01-20 06:12:08

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: problem with vaapi and youtube video on firefox and chrome

There is a usefull topic about hardware accel here https://bbs.archlinux.org/viewtopic.php?id=244031

Last edited by boban_dj (2022-01-20 06:12:20)

Offline

#11 2022-01-20 07:44:32

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

sephiroth986 wrote:

Here is [the screnshot of some plugin settings

seth wrote:

youtube offers "stats for nerds" in the video context menu that will tell you which video codec is being used.

seth also wrote:

Also check the browsers "about:gpu" to see whether hw acceleration is available in that context at all.

Offline

#12 2022-01-20 13:43:18

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

seth wrote:
sephiroth986 wrote:

Here is [the screnshot of some plugin settings

seth wrote:

youtube offers "stats for nerds" in the video context menu that will tell you which video codec is being used.

seth also wrote:

Also check the browsers "about:gpu" to see whether hw acceleration is available in that context at all.

video stats:

Video ID / sCPNLXb3EKWsInQ / 7EBE FM2G 7743
Viewport / Frames1113x626 / 26 dropped of 4512
Current / Optimal Res1920x1080@60 / 1920x1080@60
Volume / Normalized100% / 100% (content loudness -3.9dB)
Codecsvp09.00.51.08.01.01.01.01.00 (303) / opus (251)
Colorbt709 / bt709

Offline

#13 2022-01-20 13:49:04

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

Codecsvp09.00.51.08.01.01.01.01.00 (303) / opus (251)

Guess what codec that is.

Offline

#14 2022-01-20 20:56:16

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

seth wrote:

Codecsvp09.00.51.08.01.01.01.01.00 (303) / opus (251)

Guess what codec that is.

sorry i linked wrong data from my notes. this is from chrome under arch linux without plugin:

Video ID / sCPN2b2gJu-g3qE / JB9M RJJY HDSH
Viewport / Frames640x360 / 5 dropped of 2065
Current / Optimal Res1920x1080@30 / 1920x1080@30
Volume / Normalized100% / 96% (content loudness 0.4dB)
Codecsav01.0.08M.08 (399) / opus (251)

Offline

#15 2022-01-20 21:04:00

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: problem with vaapi and youtube video on firefox and chrome

sephiroth986 wrote:

sorry i linked wrong data from my notes. this is from chrome under arch linux without plugin:

Codecsav01.0.08M.08 (399) / opus (251)

That is av1. You do not have a hardware decoder for that either.
And this is the reason you need that plugin. It blocks the formats you do not want. (You have to reload youtube after installing it or changing the settings)

Last edited by progandy (2022-01-20 21:06:18)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#16 2022-01-20 21:04:35

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

399 is FullHD/AV01, you want codec 137, FullHD/AVC1

Edit: [waves fist at progandy]

Last edited by seth (2022-01-20 21:05:03)

Offline

#17 2022-01-21 00:21:40

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

with enanched h264ify on, i have this result' but gpu don't work the same

Video ID / sCPNLXb3EKWsInQ / 4M5K J1YC HC6E
Viewport / Frames640x360 / 212 dropped of 4234
Current / Optimal Res1920x1080@60 / 1920x1080@60
Volume / Normalized100% / 100% (content loudness -3.9dB)
Codecsavc1.64002a (299) / opus (251)

Offline

#18 2022-01-21 07:47:34

babam
Member
Registered: 2022-01-21
Posts: 4

Re: problem with vaapi and youtube video on firefox and chrome

seth wrote:

Browser HW acceleration basically sucks sad

Sucks on Linux only.

Offline

#19 2022-01-21 08:14:51

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

Please don't empty post.

@sephiroth986

https://01.org/linuxmedia/vaapi wrote:

Support H.264/AVC encode acceleration Main Profile @ L4.1 up to 40 Mbps (excludes GMA X4500HD and HD Graphics).

https://de.wikipedia.org/wiki/H.264#Level - copy and pasting tables isn't a thing in bbs, but that's "only" 1920 × 1080 @ 30Hz max

seth wrote:

you want codec 137

Offline

#20 2022-01-21 10:30:47

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

seth wrote:

Please don't empty post.

@sephiroth986

https://01.org/linuxmedia/vaapi wrote:

Support H.264/AVC encode acceleration Main Profile @ L4.1 up to 40 Mbps (excludes GMA X4500HD and HD Graphics).

https://de.wikipedia.org/wiki/H.264#Level - copy and pasting tables isn't a thing in bbs, but that's "only" 1920 × 1080 @ 30Hz max

seth wrote:

you want codec 137

Sorry seth, my english is orrible...what's the solution? I need to install codec 137?

Offline

#21 2022-01-21 10:35:09

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

137 is the youtube codec id for 1920x1080 @30Hz, your chip doesn't support hardware decoding for the 60Hz video.

Offline

#22 2022-01-21 14:14:19

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

seth wrote:

137 is the youtube codec id for 1920x1080 @30Hz, your chip doesn't support hardware decoding for the 60Hz video.

So...is there any solution?
The only solution that i see is change the computer  hahahhaha

Last edited by sephiroth986 (2022-01-21 14:15:09)

Offline

#23 2022-01-21 14:17:50

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

If you want to decode 1920x1080@60Hz in hardware you need a different chip.
But h264ify allows you to block 60Hz videos and w/ youtube-viewer or yt-dlp you can completey control the used codecs anyway.

Offline

#24 2022-01-21 14:43:51

sephiroth986
Member
Registered: 2022-01-18
Posts: 22

Re: problem with vaapi and youtube video on firefox and chrome

I don't know these projects.  I was just hoping to be able to use the browser without resorting to external applications.  thanks for the help anyway.

Offline

#25 2022-01-21 14:47:15

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: problem with vaapi and youtube video on firefox and chrome

You do understand that your HW cannot decode that video and no matter how you approach it, it will always come down to make youtube handing you decodable videos?
(which in this case and the h264ify plugin would mean to block 60FPS videos)

Offline

Board footer

Powered by FluxBB