Tiny Core Base > TCB Q&A Forum
Video Acceleration is important???
(1/1)
nixHobbyist:
Hi guys (it's my first TCL post), I have problem of missing H264 profile in vainfo (TCL 16.0 64bit) which shows me only MPEG2 profiles (vdpauinfo show similar results) but on the same (one and only computer that I have) there are also installations of Debian 12 and OpenSUSE Leap 15.5 and both of them have working profiles H.264 and VC1, with radeon driver with same parametars.
MPV player shows me this:
[ffmpeg/video] h264: No support for codec h264 profile 100.
--- Code: ---tc@box:~$ vainfo
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.22.0
libva info: User environment variable requested driver 'radeonsi'
libva info: Trying to open /usr/local/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 24.1.7 for OLAND (radeonsi, , LLVM 19.1.0, DRM 2.50, 6.12.11-tinycore64)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
--- End code ---
I also have 32 bit TCL which also gave identical vainfo, vdpauinfo result!
Maybe is a patent legal problem, for example on these links:
https://www.phoronix.com/news/Fedora-Disable-Bad-VA-API
https://forum.manjaro.org/t/libva-mesa-driver-pkgbase-mesa-regression-broken-support-for-video-hw-encoding-decoding/142835/2
https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/17
Do I have to compile_mesa script? (with h264dec)
Juanito:
Do you need a driver like libvdpau-va-gl?
nixHobbyist:
--- Quote from: Juanito on June 28, 2025, 05:56:03 AM ---Do you need a driver like libvdpau-va-gl?
--- End quote ---
What good this libvdpau-va-gl could do when vainfo / vdpauinfo show NO H264 profile which I badly need? (I took vdpauinfo from Debian64 Bookworm)
I was thinking of compile_mesa script (with h264dec) from SRC/xorg folder but I am not sure how to compile or if this compile_mesa is a script at all.
Juanito:
According to meson setup the following codecs were built:
--- Code: --- Video
Codecs : av1dec av1enc vp9dec
--- End code ---
I left the selection of codecs on auto, so perhaps the h264 codec is not freely distributable, you would have to check the meson options text file in the source code tarball.
nixHobbyist:
For the ones who are interested in how I compiled mesa3d here are the steps. I was relying on file compile_mesa from src/xorg/ folder. Firstly I downloaded the extensions for compilation like this: tce-load -w extension. (I did that deliberatily one by one because if you do them all in one go many are missed.) Than I loaded them one by one, with the option -i.
www.tinycorelinux.net/16.x/x86_64/tcz/src/xorg/
--- Code: ---sudo cp -rp /tmp/tcloop/llvm19-dev/usr/local/bin/llvm-config /usr/local/bin
--- End code ---
After downloading mesa with wget I unpacked it with:
tar -xf mesa-24.1.7.tar.xz (which produce a folder)
I added the line #include <llvm/IR/Module.h> in ~/mesa-24.1.7/src/amd/llvm/ac_llvm_helper.cpp between the lines that hold words LegacyPassManager.h and Verifier.h which I guessed it's most appropriate place.
--- Code: ---cd mesa-24.1.7
mkdir build
cd build
--- End code ---
My graphic card only supports h.264 and vc1 hardware decoding and so on the meson line after -Dvalgrind=disabled I added -Dvideo-codecs="h264dec,vc1dec". That meson line was done in a minute. Maybe instead h264dec,vc1dec if you put all it will compile all codecs, see meson_options.txt
mySpecs: radeon R7 250, Phenom II 945 with 4 cores
ninja (Enter, it compiled for about 1h with high cpu)
--- Code: ---sudo ninja install
--- End code ---
It installs in /usr/local/..., I just copied files from locations listed in files Xorg-7.7-3d (-vulkan) .tcz.list and pasted in 2 different folders namely X(-vulk)/ in home folder.
I removed letter (s) from every folder and subfolder group permission like this:
--- Code: ---chmod g-s folder/
--- End code ---
I made it for every file and subfolder to have root owner and group like this:
--- Code: ---sudo chown -R root:root folder/
--- End code ---
Finally made tcz files like this:
--- Code: ---mksquashfs X/ X.tcz
mksquashfs X-vulk/ X-vulk.tcz
--- End code ---
Later renamed those tcz files appropriately. Now on TCL 16.0 I have video acceleration and which I had not on TCL 15.0. I just wanted to share my experience with others who maybe need acceleration for themselves. For me this was quite challenge because this was second compile in my life. Usefull websites:
https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390
https://gist.github.com/Venemo/a9483106565df3a83fc67a411191edbd#file-mesa-howto-md
Navigation
[0] Message Index
Go to full version