WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Video Acceleration is important???  (Read 537 times)

nixHobbyist

  • Guest
Video Acceleration is important???
« on: June 28, 2025, 02:45:19 AM »
   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: [Select]
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

  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)

« Last Edit: June 28, 2025, 02:50:44 AM by nixHobbyist »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15223
Re: Video Acceleration is important???
« Reply #1 on: June 28, 2025, 05:56:03 AM »
Do you need a driver like libvdpau-va-gl?

nixHobbyist

  • Guest
Re: Video Acceleration is important???
« Reply #2 on: June 28, 2025, 06:41:52 AM »
Do you need a driver like libvdpau-va-gl?

  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.
« Last Edit: June 28, 2025, 06:47:15 AM by nixHobbyist »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15223
Re: Video Acceleration is important???
« Reply #3 on: June 28, 2025, 02:14:20 PM »
According to meson setup the following codecs were built:
Code: [Select]
Video
    Codecs                       : av1dec av1enc vp9dec
 

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

  • Guest
Re: Video Acceleration is important???
« Reply #4 on: July 24, 2025, 11:11:50 PM »
  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: [Select]
sudo cp -rp /tmp/tcloop/llvm19-dev/usr/local/bin/llvm-config /usr/local/bin
  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: [Select]
cd mesa-24.1.7
mkdir build
cd build

  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: [Select]
sudo ninja install  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: [Select]
chmod g-s folder/
  I made it for every file and subfolder to have root owner and group like this:
Code: [Select]
sudo chown -R root:root folder/
Finally made tcz files like this:
Code: [Select]
mksquashfs X/ X.tcz
mksquashfs X-vulk/ X-vulk.tcz

  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
« Last Edit: July 24, 2025, 11:15:39 PM by nixHobbyist »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15223
Re: Video Acceleration is important???
« Reply #5 on: July 28, 2025, 03:30:11 AM »
I see this has appeared in the blfs instructions for mesa:
Quote
Please ask your lawyer or remove the -D video-codecs=all option if you will distribute the compiled Mesa libraries and drivers to others.

nixHobbyist

  • Guest
Re: Video Acceleration is important???
« Reply #6 on: July 31, 2025, 02:17:15 AM »
to Juanito,
  Thanks for post (tip, advice).  I never consider doing that and I will NOT offer nothing off that kind to nobody.