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):
480p30
480p60
720p30
720p60
1080p30
1080p60
1440p30
1440p60
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.
For 5.2.0:
transcoding-profile-debug: https://pastebin.com/raw/4XWGg8V2
ffmpeg-command-wrapper.ts: https://pastebin.com/raw/yGUVT8em