What would be the best approach to add VAAPI support in Kdenlive?

[newbie alert]

Hey folks, we need to add VAAPI support to the Kdenlive Flatpak:

Should this be done directly in the Kdenlive manifest or should it be added to the KDE SDK and then add it as an extension?