Attached to this post are the files needed to run multiple profiles per peertube instance. For example, you can have 480p h264 with libfdk_aac along with 1080p av1 with opus. I take no credit for this work.
Supported profiles (you can add more):
Requirements are to run the transcoding-profile-debug plugin and upload the custom ffmpeg-command-wrapper.ts to the SOURCE CODE. You then build the source code and run peertube based off that.
Unofficial installations | PeerTube documentation - this is essentially the same thing.
I have tested this with local transcoding. I doubt it will work with remote runners. Still, test away!
@Chocobozzz it would be nice to have this natively implemented in peertube.