Skip to content

Visual and media evidence ​

Use the internal recorder when you need PIE viewport pixels and the game master mix. For an external game use the target-bound OBS workflow below. Save the input identity, event time, contact sheet and decoded output digest.

Inspect, compare and edit footage ​

Install the media extra and put FFprobe on PATH, or set FFPROBE to its executable. From a checkout use python -m pip install ".[media,windows]". The optional window command checks the executable path, PID and visible Unreal HWND before starting Windows Graphics Capture. Use ueagent windows --project PROJECT to identify the editor first. For packaged games use the running game binary inside Binaries/Win64. Use distinct HWNDs and run directories for each client. This capture is silent. The existing PIE recorder captures the viewport and master mix.

powershell
# Use an exclusive OBS instance with WebSocket authentication. Set OBS_PASSWORD in this session.
# Disable all global desktop/microphone devices. Select exact title matching and a unique window title.
# Verify priority=1 in the source settings returned by WebSocket. This check requires 0.8.1 or later.
# Use specific-window Game Capture or Window Capture with Windows Graphics Capture explicitly selected.
ueagent media windows --exe "$exe"
ueagent media record --scene Game --exe "$exe" --pid $gamePid --hwnd $hwnd --seconds 8 --run .
ueagent media window --exe "$exe" --pid $gamePid --hwnd $hwnd --seconds 8 --width 1280 --fps 30 --run .
ueagent media analyze first.mp4 --run .
ueagent media compare-video first.mp4 side.mp4 --before-offset 1.2 --after-offset 2.4 --seconds 3 --labels "Player" "Side" --speed 0.5 --run .

Find the same event in both logs before choosing offsets. The burned-in clock shows elapsed output time. When the actions change speed independently, align each interval separately. Read the contact sheet first. Black, freeze and silence thresholds locate intervals for review. Confirm the outcome with game assertions. Record paths to the inputs, events, build and local output alongside media.json.

For additional edits use FFmpeg directly. This example trims and joins two sections of one video. Use a fresh output path. Add subtitles=captions.srt when the build has libass. FFmpeg also provides xfade, amix, volume, blend, xstack and frame selection filters. For interactive pause/resume use an exclusive OBS instance configured with only the intended window and game audio. The obsws-python request client exposes start_record, get_record_status, pause_record, resume_record and stop_record. Keep the returned output path. A shared instance or an already-active recording is unsuitable.

powershell
ffmpeg -n -ss 1 -t 2 -i game.mp4 -ss 5 -t 2 -i game.mp4 -filter_complex "[0:v][1:v]concat=n=2:v=1:a=0[out]" -map "[out]" -c:v libx264 -pix_fmt yuv420p demo.mp4
ueagent media analyze demo.mp4 --run .

Retrieve a specific observation ​

FFmpeg's select filter addresses decoded frame indices, starting at zero. For a variable-frame-rate clip use presentation time to align two sources. For example, these commands extract frame 42, decoder key frames in a four-second interval, or scene changes above a threshold. Inspect the resulting timestamps and the adjacent frames. Limit the interval first on long recordings.

powershell
ffmpeg -n -i game.mp4 -vf "select=eq(n\,42)" -frames:v 1 frame42.png
ffmpeg -n -skip_frame nokey -i game.mp4 -t 4 -fps_mode vfr key-%03d.png
ffmpeg -n -i game.mp4 -t 4 -vf "select=gt(scene\,0.35),showinfo" -fps_mode vfr scene-%03d.png

For a half-transparent overlay or pixel difference, normalize crop, aspect ratio, resolution, event offsets and frame rate first. Feed the aligned streams to blend=all_opacity=0.5 or blend=all_mode=difference. Differences also reflect camera poses, illumination and animation phase. FFmpeg filters