I’ve done several tests of video aspect ratios, and noticing some broken behaviour.
Three videos were uploaded using the API, all have 3:1 aspect ratio (the upper limit permitted by the API), but with different resolutions
- 720x240 video uploaded fine
- 1280x428 video failed, with this error: “Aspect ratio too large: Maximum: 3:1, Actual: 640:213”. This is strange, as 1280x428 is just under 3:1 - and if Twitter videos are resized to 640 wide, it should resize the video proportionally to 640x214
- 640x214 video failed, with this error: “Aspect ratio too large: Maximum: 3:1, Actual: 160:53”. Not sure why it’s quoting a width smaller than 640 pixels.
Can you provide any guidance on how your resizing calculations work, so we can implement appropriate checks on our end.
Our checks say that 1280x428 is < 3:1 so should be fine, but the video still fails.