SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I couldn't get the media driver to compile on my system. It got to 57% (media_libva_cp_interface.cpp.o) and crashed, complaining about an undeclared variable in the code.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,018
Original Poster
Rep:
@hazel,
Your system is -stable or -current. I am running -current and compiling went fine. I just compiled again intel-media-22.6.6 my system is up to date so possible changes between the time of publishing howto and today did not affect compilation output.. hmm unless there is a change in slackbuild (assuming that you did use slackbuild)
@zeebra,
I never have written any of Slackware docs but I can certainly try. If I have problems I will let you know.
@hazel,
Your system is -stable or -current. I am running -current and compiling went fine. I just compiled again intel-media-22.6.6 my system is up to date so possible changes between the time of publishing howto and today did not affect compilation output.. hmm unless there is a change in slackbuild (assuming that you did use slackbuild)
I use stable 15. I compiled the package by hand using the README as a guide; I didn't know there was a slackbuild for it.
ps: I just checked and the slackbuild is for an earlier version; I'll edit it for version 22 and see if that goes any better. If not, I'll try again with version 21.
I don't actually know if any of this would work for me as I have a Baytrail system-on-a-chip, which is fairly old hardware, but I don't have any hardware acceleration at all at the moment so I suppose it's worth trying.
Btw, I forgot to ask something. It's a bit embaressing, but I really have little clue about graphics. Do you have or is there any relevant similar information for virtual machines?
I assume the answer is no, and that it's an entirely different thing, but you seem to know about these things, so I ask you.
I use stable 15. I compiled the package by hand using the README as a guide; I didn't know there was a slackbuild for it.
ps: I just checked and the slackbuild is for an earlier version; I'll edit it for version 22 and see if that goes any better. If not, I'll try again with version 21.
I don't actually know if any of this would work for me as I have a Baytrail system-on-a-chip, which is fairly old hardware, but I don't have any hardware acceleration at all at the moment so I suppose it's worth trying.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,018
Original Poster
Rep:
@zeebra
I don't think that hardware acceleration will work at all in VM, at least in the case of VirtualBox, VM is using very generic virtual video card, also OpenGL support is pretty old.
@hazel,
I updated howto on the first page (thanks to @babam). For Stackware-15 stable, you need to use a little older version of:
intel-media-drive 22.3.0
intel-gmmlib 22.1.1
because Slackware-15 stable uses libva-2.13
Hi Aeterna, thanks for this, now Brave can have hardware-acceleration set (with "brave://settings/system") without the fans coming on all the time ;-).
Some observations (with KabyLake, 9th generation; i7-7700HQ; pipewire; re-compiled ffmpeg, slackware64-current) when trying this out.
1. No Guc or HuC output in dmesg.
2. Testing with vlc (or QMplay2 with FFmpeg-VA-API Decoder) instead of mpv worked fine; gave "Video" output in 'intel-gpu-top' of ~7-11%.
Code:
bash-5.2$ cvlc Big_Buck_Bunny_1080_10s_5MB.mp4
VLC media player 3.0.17.3 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000000000b25c60] dummy interface: using the dummy interface module...
[00007ff630c138a0] avcodec decoder: Using OpenGL/VAAPI backend for VDPAU for hardware decoding
3. Brave leads to more "RENDER/3D" output (~20-25%, starting at ~39%) than Firefox (~8%, starting at 15%)(No "Video" output).
with "brave://gpu/" (colors from brave output):
Quote:
Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated
Raw Draw: Disabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
WebGPU: Disabled
.. Problems Detected
WebGPU has been disabled via blocklist or the command line.
Disabled Features: webgpu
Accelerated video encode has been disabled, either via blocklist, about:flags or the command line.
Disabled Features: video_encode
4. FWIW (not being a versed ffmpeg user), the ffmpeg conversions falter at my end on:
Quote:
[Parsed_format_0 @ 0x18149c0] auto-inserting filter 'auto_scale_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_0'
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Without the "-vf 'format=nv12,hwupload'" it worked (with "Big_Buck_Bunny_720_10s_2MB.mkv").
Nope, I can't get intel-media-22.3.0 to build, even using an edited slackbuild. It errors out at about 57% complete, just like when I did it by hand. Curiously, the error messages suggest actual errors in the code, undeclared variables and such-like.
It's not that important. I just wondered if I could get hardware acceleration on my video because I have none at the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.