You can find the script here
I created a script which adds media functionality to clear linux.
it builds …
codecs (dav1d, x264, x265, fdkaac, lame, opus, vpx),
mpv + ytdl
Firefox media capabilities will be also extended.
My mpv build configuration is setup to cover my use-case: Wayland, Pulseaudio, Intel Graphics
--disable-* flags from
./waf configure within the script to safely support your use-case in mpv.