# Compiling Mesa 22.2 with codec support (the easy way)

**URL:** <https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390>\
**Category:** Community contributions\
**Created:** [August 18, 2022, 7:05pm UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390 "2022-08-18T19:05:22Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![anon49550872](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@anon49550872](https://forum.endeavouros.com/u/anon49550872)\
**Post date:** [September 30, 2022, 2:49pm UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/21 "2022-09-30T14:49:00Z")

</div>

> [@BS86](#):
>
> Arch includes the codecs, so why use the AUR?

We have been speaking about this, there is a possibility (Looks like) that it will be required to add the build flags to have hardware encode/decode support from version 22.2 forward.

 ![image](https://forum.endeavouros.com/uploads/default/original/3X/f/5/f53d576699a1ef57c732a22d126bdce34d67e035.png)

---

<div class="post-metadata">

**Author:** ![BS86](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/bs86/32/18119_2.png) [@BS86](https://forum.endeavouros.com/u/BS86)\
**Post date:** [September 30, 2022, 3:10pm UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/22 "2022-09-30T15:10:54Z")

</div>

yes, and the maintainers already did actively add the flags:

> <https://github.com/archlinux/svntogit-packages/commit/e91a7583919fb3e19f01ac9bd25ef0e6d7c57f8a>
>
> git-svn-id: file:///srv/repos/svn-packages/svn@456809 eb2447ed-0c53-47e4-bac8-5b…c4a241df78

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [September 30, 2022, 4:21pm UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/23 "2022-09-30T16:21:14Z")

</div>

> [@BS86](#):
>
> yes, and the maintainers already did actively add the flags:

Yup, the maintainers have made the usual mesa good to go.

Now we’re just waiting to see which way Flatpak will go and I’ll update the thread to cover if building mesa-git Flatpak with the codecs is necessary

---

<div class="post-metadata">

**Author:** ![mrvictory](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mrvictory](https://forum.endeavouros.com/u/mrvictory)\
**Post date:** [September 30, 2022, 4:55pm UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/24 "2022-09-30T16:55:45Z")

</div>

You can configure Flatpak to use system drivers, well, at least for Nvidia. Maybe there is a way to do the same for Mesa.

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [October 2, 2022, 6:08am UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/25 "2022-10-02T06:08:50Z")

</div>

> [@mrvictory](#):
>
> You can configure Flatpak to use system drivers, well, at least for Nvidia. Maybe there is a way to do the same for Mesa.

Flatpak cant use your system drivers, it just pulls the matching driver from Flathub so that flatpak and your system drivers are the same. This is due to how flatpak and its sandboxing work so sadly not an option.

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [October 2, 2022, 6:11am UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/26 "2022-10-02T06:11:32Z")

</div>

Following this issue Flatpak seems to want to go the way of Fedora and Suse and disable it on default, currently up for debate if an alternative will be provided for those who want video. Mesa-git extension currently has codecs disabled

> **[(re-)decide how to handle VAAPI codecs (#1494) · Issues · freedesktop-sdk /...](https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1494)**
>
> Context Mesa added build-time configuration flags earlier in the year which requires patent-encumbered codecs to be explicitly enabled

---

<div class="post-metadata">

**Author:** ![I0F](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/i0f/32/47182_2.png) [@I0F](https://forum.endeavouros.com/u/I0F)\
**Post date:** [October 14, 2022, 9:10am UTC](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390/27 "2022-10-14T09:10:35Z")

</div>

Mesa 22.2 now is in the official repos with codec support.

[Previous page](https://forum.endeavouros.com/t/compiling-mesa-22-2-with-codec-support-the-easy-way/30390.md?page=1)
