Comment by shevy-java

3 hours ago

The only question I have:

Should I use H.264 or H.265?

The main reason to use H.264 in 2026 is legacy device support. Some devices cannot play H.265, but H.264 is playable almost anywhere, as a 20+ year old codec.

I was surprised that Twitter only lets you upload H.264 still, in 2026.

  • Twitter's video story is not their strongest. I used to run an account that posted a lot of video content, and their compression quality was so mixed that I ended up writing a little mobile app that would transcode videos to Twitter's advertised optimal format (720p 30fps H.264 5Mbps + AAC LC) before uploading them.

    Even then, it was a crapshoot whether or not the video would look like a pixel collage, and I'd need to delete the Tweet, tweak the video a bit, and try again.

For personal use, if those are your only two choices, then go with H.265 for higher efficiency, or H.264 for wider compatibility. If other codecs are an option, go with AV1 for higher efficiency. It’s currently the best and already pretty widely supported.

H.264 (if you want to support 20 year old devices) or av1. Don't use h.265. The patent situation around it is a total mess.

h264, if you had a reason to use something else you wouldn't need to ask

It depends on how you want to play or share the media.

E.g. I remember having lots of issues sharing smaller video files encoded with H.265 via both WhatsApp and Messenger. iMessage doesn't support H.265 (or at least it didn't work for me at the time).

That all depends on your use case.

How are you generating video?

How are you playing it back?

Patents aside, h265 from my reading is almost universally better than h264. My understanding which could be wrong is that for a given quality h265 will always be smaller, and particularly for >1080p it's recommended. Hardware support has been around since at least the Shield days (2019) so that shouldn't be an issue. Only use h264 if you are needing to hw-decode on really old hardware.

AV1 is the future/present: Fully open standard, better than h265. Only downside is hardware support: You need hardware made in the last few years.