clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
521 stars 29 forks source link

[mesa] Add support for all codecs #3185

Closed K1ngfish3r closed 1 week ago

K1ngfish3r commented 1 week ago

Trying to open any video file brings up these errors (missing hw decoding)

i@clr~ $ mpv vapoursynth.mp4 
 (+) Video --vid=1 (*) (h264 720x720 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
[ffmpeg/video] h264: No support for codec h264 profile 100.
[ffmpeg/video] h264: No support for codec h264 profile 100.
[ffmpeg/video] h264: Failed setup for format vaapi: hwaccel initialisation returned error.
[ffmpeg/video] h264_v4l2m2m: Could not find a valid device
[ffmpeg/video] h264_v4l2m2m: can't configure decoder
Could not open codec.
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 720x720 yuv420p
AV: 00:00:01 / 00:00:25 (6%) A-V:  0.000 DS: 5/0
Exiting... (Quit)

Can be remedied by adding support for them in mesa

i@clr~ $ mpv vapoursynth.mp4 
 (+) Video --vid=1 (*) (h264 720x720 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 720x720 vaapi[nv12]
AV: 00:00:01 / 00:00:25 (8%) A-V: -0.005 DS: 5/1
Exiting... (Quit)

EDIT: This also enables the VAAPI encoder in OBS image EDIT2: I have recently realized that this enables hardware encode/decode

Autospec notes - for-review.txt updating lib32 cross file probably has issues, so i not add below

configure ++

-Dvideo-codecs=all

//optional
-Dgallium-nine=true
-Dgallium-extra-hud=true
-Dvulkan-layers=device-select,intel-nullhw,overlay
K1ngfish3r commented 1 week ago

Closing due to licensing issues