The highest quality video trailer on Steam are typically found here:
<video class="wp-video-shortcode" id="video-9684-1" width="640" height="360" preload="metadata" controls="controls"><source type="video/webm" src="http://cdn.akamai.steamstatic.com/steam/apps/256677064/movie_max.webm?_=1" /> http://cdn.akamai.steamstatic.com/steam/apps/256677064/movie_max.webm</video>
256677064 is the SteamID of the game.
When you right click on a trailer video in Chrome, you can select “Open Video in New Tab“.
t= part is probably some unique ID, such as your Steam UserID.
Edit the URL accordingly, from
movie_max.webm. Alternatively, full-screening the video, and after waiting a moment for it to go high quality, you can right click on the video and open the High Quality video in a new tab.
Save the file.
The video file is in
webm format, but Twitter requires an
Twitter makes these recommendations:
It’s worth noting that Twitter requires that videos be under 140 seconds (lol, I see what you did there) and under 512 MB. Fortunately the later shouldn’t be a problem, but if a trailer is over 2 minutes it could be an issue.
Make sure you have a recent version of FFMpeg installed. If this fails, that’s probably why.
#!/bin/sh ffmpeg -i $1 -vcodec libx264 -pix_fmt yuv420p -strict -2 -acodec aac $1.mp4
I stole the snippet from here:
The script is very simple. To use it, give it a file, and after a few minutes it spits out a file with an added .mp4 extension.
./to_mp4.sh infile.webm # output: infile.webm.mp4
You should now have a file suitable for tweeting.
Doing this has the added benefit of not wasting any of Twitter’s 140 characters per tweet, in addition to videos auto-playing.
Bonus: PSN Store
The PSN store uses regular MP4’s that can be tweeted as-is.
Video URLs look like this:
<video class="wp-video-shortcode" id="video-9684-2" width="640" height="360" preload="metadata" controls="controls"><source type="video/mp4" src="https://apollo2.dl.playstation.net/cdn/UP1705/CUSA04302_00/FREE_CONTENTqqfjYcD4dq5k8qLLBU5p/PREVIEW_GAMEPLAY_VIDEO_137961.mp4?_=2" />https://apollo2.dl.playstation.net/cdn/UP1705/CUSA04302_00/FREE_CONTENTqqfjYcD4dq5k8qLLBU5p/PREVIEW_GAMEPLAY_VIDEO_137961.mp4</video>
Which as you can see is quite unsightly.
If you browse to a page on the PSN store website, open up the developer tools, from the network tab you can filter by Media.
With this open, once you click the play button, the video file that’s referenced will appear under Media. Open in its own tab and save it.
Xbox One Store (No Video)
At the time of this writing, there are no videos on the Microsoft store.
Xbox Wire uses YouTube.
Nintendo Switch (HLS)
Find the game page on
Behind the scenes, unfortunately it appears Nintendo is using a combination of Flash Player and HLS. If you dig in to flash variables you can extract the HLS URL.
Through a few levels of HLS responses, you can eventually find video, but my understanding of the protocol is limited. I was able to find a short ~15 second clip without sound, when it should be a full-on few minute HD trailer.