points by shevy-java 13 hours ago | 0 comments
The only question I have:
Should I use H.264 or H.265?
[–] qingcharles 12 hours ago
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.
[–] favorited 10 hours ago
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.
[–] quibono 12 hours ago
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).
[–] adgjlsfhk1 11 hours ago
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.
[–] 1317 10 hours ago
h264, if you had a reason to use something else you wouldn't need to ask
[–] qmr 12 hours ago
That all depends on your use case.
How are you generating video?
How are you playing it back?
[–] alt227 12 hours ago
H.264 for 1080p and less. H.265 for 2160p.
[–] unethical_ban 10 hours ago
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.
[–] Sopel 11 hours ago
that's like asking "should I use an audi or a tesla"
[–] F3nd0 12 hours ago