Screenshots, GIFs & Trailers
Players buy what they can see moving. Your store page, devlog posts, social media and portfolio all run on the same raw material: clean gameplay footage. This lesson covers capturing it, turning it into GIFs and short clips with ffmpeg, and planning a trailer that works on a store page.
Capture tools
| Tool | Platforms | Use |
|---|---|---|
| OBS Studio | Windows, macOS, Linux | the standard for recording and streaming; scenes, multiple sources, high quality |
| ShareX | Windows | quick region captures, screenshots, screen recordings and GIFs (uses ffmpeg) |
| Platform recorders | Xbox Game Bar (Windows), Screenshot toolbar (macOS), Steam's game recording, console share buttons | fast, decent quality |
| In-engine capture | Unity Recorder package, Unreal's Movie Render Queue, Godot's Movie Maker mode (--write-movie) |
perfectly smooth footage at a fixed frame rate, even if the game can't run that fast live |
Tips for good footage:
- Record at the target resolution (1920×1080 or higher) and a stable 60 fps; disable the debug overlay, FPS counter and your cursor.
- In OBS, record to MKV (or a crash-safe format such as Hybrid MP4 in recent versions), so a crash doesn't corrupt the file; File → Remux Recordings converts MKV to MP4 without re-encoding.
- Record lots: long sessions of good play, then cut the best seconds. Make a "trailer build" with cheats (invincibility, unlocks, free camera) to get shots normal play can't.
- In-engine capture (Godot's Movie Maker, Unity Recorder) renders every frame at a fixed step regardless of real time, which is how you get silky footage on a modest PC.
ffmpeg recipes
ffmpeg is the Swiss-army knife for video. The recipes you'll use every week:
# Cut 12 s starting at 1:05 (re-encoding gives a frame-accurate cut)
ffmpeg -ss 00:01:05 -i raw.mkv -t 12 -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k clip.mp4
# Web- and social-friendly MP4: widely compatible pixel format, metadata at the start for streaming
ffmpeg -i clip.mp4 -c:v libx264 -crf 20 -pix_fmt yuv420p -movflags +faststart -c:a aac clip_web.mp4
# High-quality GIF: build a palette from the clip, then use it (two-pass in one filter graph)
ffmpeg -i clip.mp4 -vf "fps=25,scale=640:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" -loop 0 clip.gif
# Smaller animated alternative for the web: WebM (VP9), silent
ffmpeg -i clip.mp4 -c:v libvpx-vp9 -crf 32 -b:v 0 -an clip.webm
# Normalise trailer audio loudness (single pass)
ffmpeg -i trailer.mp4 -c:v copy -af loudnorm=I=-16:TP=-1.5:LRA=11 trailer_loud.mp4The palette trick matters: GIFs have at most 256 colours per frame, and ffmpeg's default palette makes game footage blotchy. palettegen builds one tuned to the clip.
Why GIFs stutter: the timing grid
GIF frame delays are stored in hundredths of a second. Frame rates that don't divide 100 evenly can't be represented, and most browsers treat very short delays (0 or 1 hundredth) as about a tenth of a second, so a "100 fps" GIF plays at 10 fps. A quick calculation picks a safe frame rate:
def gif_timing(fps):
delay_cs = round(100 / fps) # what the file can store
shown = 10 if delay_cs <= 1 else delay_cs # common browser behaviour for tiny delays
actual = 100 / shown
return delay_cs, actual
for fps in [10, 15, 20, 25, 30, 50, 60, 100]:
delay, actual = gif_timing(fps)
note = "exact" if abs(actual - fps) < 0.01 else f"plays at {actual:.1f} fps"
print(f"{fps:3} fps -> delay {delay} cs -> {note}") 10 fps -> delay 10 cs -> exact
15 fps -> delay 7 cs -> plays at 14.3 fps
20 fps -> delay 5 cs -> exact
25 fps -> delay 4 cs -> exact
30 fps -> delay 3 cs -> plays at 33.3 fps
50 fps -> delay 2 cs -> exact
60 fps -> delay 2 cs -> plays at 50.0 fps
100 fps -> delay 1 cs -> plays at 10.0 fps
25 and 50 fps are exact; 30 and 60 aren't. For short, smooth loops, 25 fps (or 50 for small clips) is the sweet spot; anything longer than a few seconds is better as an MP4 or WebM, which most sites and social platforms autoplay.
Planning a store trailer
Store trailers autoplay muted in a small frame, and viewers decide in seconds. A plan you can check:
shots = [ # (seconds, description, kind)
(2.0, "studio logo", "logo"),
(5.0, "core loop: catch stars, combo counter rising", "gameplay"),
(4.0, "bomb dodge, screen shake", "gameplay"),
(3.0, "boss star appears", "gameplay"),
(2.5, "text: 'Chase the high score'", "text"),
(6.0, "montage of levels and power-ups", "gameplay"),
(3.0, "title + 'Wishlist on Steam'", "end card"),
]
t, first_gameplay = 0.0, None
for sec, desc, kind in shots:
if kind == "gameplay" and first_gameplay is None:
first_gameplay = t
print(f"{t:5.1f}s {kind:<9} {desc}")
t += sec
gameplay = sum(s for s, _, k in shots if k == "gameplay")
print(f"\nlength {t:.1f}s, gameplay {gameplay / t:.0%}, first gameplay at {first_gameplay:.1f}s")
print("ok" if first_gameplay <= 3 and t <= 90 else "move gameplay earlier / shorten") 0.0s logo studio logo
2.0s gameplay core loop: catch stars, combo counter rising
7.0s gameplay bomb dodge, screen shake
11.0s gameplay boss star appears
14.0s text text: 'Chase the high score'
16.5s gameplay montage of levels and power-ups
22.5s end card title + 'Wishlist on Steam'
length 25.5s, gameplay 71%, first gameplay at 2.0s
ok
Rules of thumb: show gameplay within the first few seconds (move logos to the end), keep it under about a minute and a half, make it understandable without sound (text cards or obvious action), end with the title and a call to action ("Wishlist now", "Play free on itch.io"), and use footage from the actual game. Music must be licensed for trailers; check the licence of any track you didn't make.
Screenshots
Take screenshots in-engine at high resolution without UI clutter, or with UI if it explains the game. Show variety (different levels, moments of action, the core loop), and caption them on social media rather than in the image. Each store has minimum sizes (Store Page Assets); 1920×1080 or 4K PNGs cover all of them.
Test yourself
Why does a GIF exported at 60 fps not play at 60 fps?
- GIFs are limited to 30 frames
- Frame delays are stored in hundredths of a second, so 1/60 s can't be represented exactly
- Browsers block GIFs
- ffmpeg doesn't support 60 fps
What does palettegen + paletteuse improve in an ffmpeg GIF?
- Frame rate
- Colour quality, by building a 256-colour palette tuned to the clip
- File compression only
- Audio
Why should gameplay appear in the first seconds of a store trailer?
- It's required by law
- Trailers autoplay muted and viewers decide very quickly
- Logos are not allowed
- It makes the file smaller