New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Option Request: VAAPI #22877
Comments
I'm coming from Arch Linux and it has been having binary packages for |
@Logarithmus Right! Perhaps we can both suggest the same for the Firefox pkg... |
It was disabled by default, not because it might be unwanted by some people, but because it was broken on some configurations. And shipping broken defaults is bad. |
The best solution to suit everyone is to build |
Exactly... No reason to disable modern hardware from being useful on Linux just for some edge cases that are easily worked around (I'll assume such edge cases exist on faith, despite the lack of reference). |
It was disabled because people couldn't even start chromium to disable the flag... |
Can't you run chromium with flags? This seems like hurting the many for the few, which I figured was not a Void approach... Considering everyone already has that approach in Ubuntu et al. |
You can specify flags using command line switches:
|
There is no need to discuss this, we decided to disable it because it made a lot of trouble. If someone thinks its good to enable, they need to do the testing and make sure each version works. Edit: The flag didn't work and it crashed very early with specific setups. |
Please, can you provide more info on this? What were those "specific configurations"? |
It broke all the time for different reasons, videos didn't work on new AMD hardware then the last time when I disabled it, it just crashed early with intel graphics. I don't care if there are people who are "pro-VAAPI" as long as they don't do the work like testing on different setups and make sure everything works. There is a reason why this is not enabled by default and why chrome doesn't ship with it in linux builds. |
OK... Well sounds like there's a bug in Chrome if the flags to launch without it don't actually work, right? |
What do you think about making separate package, like |
@Logarithmus |
Chromium alone is already a big maintenance burden and regularly blocks the build server for 9+ hours. https://github.com/void-linux/void-packages/issues?q=is%3Aissue+ungoogled-chromium+is%3Aclosed |
The problem is, that chromium right now takes 12h on the builders. This is also the reason I have not merged any of my Electron PR's yet. It just blocks the builders too long. |
So there's a general problem in Void having more packages because the amount of money / resources Void has for CPU cycles? We can open another thread for this idea if you think it is valid: perhaps there's a way to have building done in a verified way on dev computers (or maybe there'd be no way to verify that)? |
This is specific to chromium/blink/webkit being that big and resource intensive. |
Ok. I'll ask the ungoogled-chromium dev if we can build some of the components once for use in both chromium & ungoogled-chromium. @Duncaen Also, I'm new to xbps... Any idea if it needs to build each component from scratch each time, as these devs are claiming a good pkg manager should be able to avoid: https://lobste.rs/s/iri1te/chromium_has_compilation_time_problem |
Its the build system and not the package manager, xbps-src currently cleans up builds after finishing packages so incremental builds are not supported. Also even if this would be supported I don't think we would have the resources to store objects for each package to allow incremental builds. |
Incremental builds would be sweet. @Logarithmus and I will try to help with that in a month or so.
If we get it working, then perhaps other Void packages could make use of the code. |
I've heard of verified builds before... I think I should investigate this topic further. |
If you lack of processing power, maybe we just need to pay for more powerful server? I'm sure there are people who can donate for the servers, including me. Also using volunteer's processing power, in Rosetta@home's fashion, seems reasonable. But then the issue of trust stands on. |
If we could figure out incremental builds, then I think that would be more important - since the build time would be much less and therefore people would be more willing to update the pkg (plus it might work similarly for other long compile-time pkgs). |
This is fixed on current chromium packages. |
Have you verified it using the method of looking in about:media-internals? |
As far as I know, the VAAPI build option is no longer required in any way. If the hw accel isn't working correctly / being detected, that's a separate issue. |
Such a pain to debug chromium. Perhaps Void should consider replacing chromium with its own custom build of ungoogled-chromium... Wouldn't that be truer to the FOSS message anyway (considering how much tracking comes with chromium)? |
@dm17 Just install enhanced-h264ify chromium extension, block everything except h264 and it will work like a charm (if you use Xorg, not Wayland). For Nvidia there's https://github.com/xtknight/vdpau-va-driver-vp9 |
I use Xorg. I did try this extension, but it did not change the fact: about:media-internals:
|
@dm17 what GPU do you have?
Did you read this: https://wiki.archlinux.org/index.php/Hardware_video_acceleration ?
21 января 2021 г. 2:19:00 GMT+03:00, dm17 <notifications@github.com> пишет:
…> > > This is fixed on current chromium packages.
> >
> >
> > Have you verified it using the method of looking in
about:media-internals?
> > I tried many times and I still see the non-hardware-accelerated
codec being used for Vimeo & YouTube videos (VpxVideoDecoder).
>
> @dm17 Just install **enhanced-h264ify** chromium extension, block
everything except h264 and it will work like a charm (if you use Xorg,
not Wayland). For Nvidia there's
https://github.com/xtknight/vdpau-va-driver-vp9
I use Xorg. I did try this extension, but it did not change the fact:
"If it says FFmpegVideoDecoder or VpxVideoDecoder, accelerated video
decoding is not working"
https://www.linuxuprising.com/2018/08/how-to-enable-hardware-accelerated.html
about:media-internals:
```
"Failed to initialize DecryptingVideoDecoder"
"Failed to initialize MojoVideoDecoder"
"Failed to initialize VpxVideoDecoder"
"Failed to initialize Dav1dVideoDecoder"
kIsVideoDecryptingDemuxerStream | false
kVideoDecoderName | "FFmpegVideoDecoder"
```
|
@Logarithmus Yes, read that. I have Polaris 20 (an AMD card with some of the best support in Linux). |
How does this in any way make any sense to you, how would that reduce any work instead of adding more work? |
As requested here: #5219 (comment)
I'm wondering if we can get hardware acceleration for modern AMD GPUs in chromium (build_options_default)? It seems pretty common & very useful.
Thanks!
The text was updated successfully, but these errors were encountered: