8000 scripts: gameplay recorders for the OS4 guest and FS-UAE by geekychris · Pull Request #56 · geekychris/amiga_mcp · GitHub
[go: up one dir, main page]

Skip to content

scripts: gameplay recorders for the OS4 guest and FS-UAE - #56

Merged
geekychris merged 1 commit into
mainfrom
record-gameplay-scripts
Nov 2, 2026
Merged

geekychris merged 1 commit into
mainfrom
record-gameplay-scripts

Conversation

@geekychris
Copy link
Copy Markdown
Owner

Two recorders used to make a gameplay showreel of the games.

  • scripts/record_os4.py out.mp4 --secs 30: the AmigaOS 4 guest's screen and sound through QEMU's HMP monitor (127.0.0.1:2348). screendump on a fixed 30 fps clock (about 6 ms per dump, so no late frames in practice), frames of other sizes (800x600, 640x480 game screens) letterboxed into 1280x720. Sound is wavcapture … snd0; QEMU writes samples only while the guest's audio DMA runs, so a game that starts its sound a few seconds in came out up to 7 s early. The recorder samples info capture every 6 frames and re-times the samples to the wall clock.
  • scripts/wincap.swift: ScreenCaptureKit capture of one window plus its app's sound. FS-UAE in its own full-screen Space can't be grabbed with screencapture -l, and avfoundation records the whole desktop; this records only the FS-UAE window (2056x1290 at divisor 2), with sound.

Self-review / things to look at:

  • wincap shot (single still) failed with SCStream error -3811 here; rec works. Left in, noted in the header.
  • wincap needs Screen Recording permission for the terminal; it compiles with deprecation warnings for AVAssetWriter APIs on macOS 27.
  • record_os4.py holds the HMP monitor connection while recording; QEMU's monitor takes one client at a time, so another tool using 2348 meanwhile would block.
  • Neither script takes the emulator lock; wrap them with scripts/claude_busy.py when driving the emulator.

Not to be merged without review.

🤖 Generated with Claude Code

…e-window capture for FS-UAE)

record_os4.py records the AmigaOS 4 guest through the HMP monitor: screendump
on a fixed 30 fps clock and wavcapture on snd0, with the samples put back on
the wall clock (QEMU writes only while the guest's audio DMA runs).
wincap.swift records a single window and its app's sound with
ScreenCaptureKit, so FS-UAE can be recorded without the desktop, even in its
own full-screen Space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai
coderabbitai Bot commented Nov 2, 2026 •
Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@geekychris
geekychris merged commit dd8f658 into main Nov 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0