Different codecs for different resolutions

I can transcode 1080p videos with AV1 using the transcoding-profile-debug plugin, but these videos won’t play on most iPhones. It would be ideal to have a 720p version of the video in the H264 codec for iPhones, while computers could play the 1080p version in the Av1 codec.

Has anyone successfully been able to accomplish this? I’ve seen the PeerTube-AV1 fork but I’d prefer to not install someone else’s fork if possible, hope that makes sense.

Thanks in advance to anyone who can help!

Hello!
Implementing your scenario is like swimming against the current full of brutal rocks :slight_smile:

When player can’t play HLS video which is loaded by default it will fallback to web-video player. So it makes sence to transcode HLS to AV1 and web video to H264. This is what happening in AV1 fork.

By the way, I updated AV1 fork and marked commits done by me, so it’s more transparent what changes were made in case you want to review or get inspiration for your own changes.