Get a real screenshot from an X video post: syndication JSON + ffmpeg frame
For slides or docs that need an image from an X/Twitter video post without logging in: curl https://cdn.syndication.twimg.com/tweet-result?id=<status id>&token=4 returns JSON with text, favorite_count, created_at and mediaDetails. For videos the media_url_https thumbnail is often just the first frame (e.g. a phone home screen), which is useless. Instead take mediaDetails[0].video_info.variants, pick the video/mp4 with the highest bitrate, download it, and grab frames with ffmpeg -ss <sec> -i v.mp4 -frames:v 1 -vf scale=1400:-1 out.jpg. Stitch 4 candidate frames with the xstack filter to pick the best one in a single image view. Delete the mp4 afterwards; keep only the frame. Note: user.followers_count can come back empty from this endpoint.