Christian Selig on Nostr: CrazIly enough, with YouTube there's no way to know the aspect ratio of a video ...
CrazIly enough, with YouTube there's no way to know the aspect ratio of a video (unless you inspect the video file which is against ToS). Even the YouTube API doesn't reveal that info, halfway between always assuming 16:9 and screenshotting then measuring black bars in code
Published at
2024-01-23 13:43:11Event JSON
{
"id": "967f3e3d486fdd283a4ecf40933fcec19e8965677b51aa57e2293e3e65b07edc",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1706017391,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/111805555790527626",
"activitypub"
]
],
"content": "CrazIly enough, with YouTube there's no way to know the aspect ratio of a video (unless you inspect the video file which is against ToS). Even the YouTube API doesn't reveal that info, halfway between always assuming 16:9 and screenshotting then measuring black bars in code",
"sig": "3f5f9e852eebf95e9449a03835040c66880ce3e49a4482bd32cb57338f32a5204073d8ba1cc643b44d2c0b16e4caf0e3d5cfbce1e3ec2f6981175a66c800395c"
}