Tinkering with yt-dlp -F
I know av1 is even better than h.265, h.265 being better than h.264
However, I don’t know where to put vpP09, vp9 and avc1
Audio formats: what’s better? m4a or webm?
I think AVC1 is another word for H.264. That’s the oldest one with lots of hardware acceleration available in old devices and by far the biggest one in file size. VP9 should roughly be on a similar level with H.265. The main difference is that VP9 is supposed to be royalty-free and H.265 isn’t. The best one is of course AV1. But that also takes considerably more resources to encode and decode.
M4A and webm both aren’t audio codecs. They’re file container formats. I believe m4a takes AAC audio. And webm is a more general container format and it takes video as well. I think audio will be either Vorbis or Opus. And Opus is fairly good, especially at low bitrates. There probably isn’t a big difference to AAC, though.
Vorbis is deprecated in favour of Opus, which is the direct replacement and exceeds it in every metric.
Opus is awesome.