Skip to content

Webcam input: live ASCII mirror + camera recording#29

Closed
irobinson010 wants to merge 1 commit into
feature/pypi-releasefrom
feature/webcam
Closed

Webcam input: live ASCII mirror + camera recording#29
irobinson010 wants to merge 1 commit into
feature/pypi-releasefrom
feature/webcam

Conversation

@irobinson010

Copy link
Copy Markdown
Owner

Summary

ascii-magic video "<video0>" streams your camera to the terminal as live colorized ASCII until Ctrl-C — mirrored by default like a real mirror, with the full mode/matrix/caption knob set (--matrix = you, in the Matrix). With an output file, --seconds N records a wall-clock-bounded capture through the existing GIF/mp4/frames sinks.

Internals: frame conversion extracted into helpers shared by the file, live, and record paths; recordings are frame-capped against pathologically fast sources; camera mp4s are silent (no audio path from v4l2 through our mux).

Stacked on #27 (the asciimagic rename).

Test plan

  • 189 tests pass — live loop (screen setup/teardown, per-frame cursor-home, colorization), mirror flip, recording, and CLI dispatch, all via a mocked camera reader (CI has no camera)
  • Real-device check attempted; the machine's /dev/video0 hangs at the ffmpeg level (driver/permissions), so hardware verification is pending a working camera
  • CI matrix green

🤖 Generated with Claude Code

'<videoN>' sources (ffmpeg camera syntax) stream to the terminal as live
colorized ASCII until Ctrl-C, mirrored by default (--no-mirror), with the
full mode/matrix/caption knob set; with an output file, --seconds records
a wall-clock-bounded capture through the normal sinks (mp4 silent - no
camera audio path). Frame conversion extracted into shared helpers reused
by file, live, and record paths; recording has a hard frame cap against
absurdly fast sources. Tested via a mocked reader covering the live loop
(clear/hide-cursor, per-frame home, restore), mirroring, recording, and
the CLI dispatch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@irobinson010
irobinson010 requested a review from krakenhavoc July 7, 2026 15:11
@irobinson010
irobinson010 deleted the branch feature/pypi-release July 8, 2026 14:40
irobinson010 added a commit that referenced this pull request Jul 8, 2026
Webcam input: live ASCII mirror + camera recording (reopens #29)
@irobinson010
irobinson010 deleted the feature/webcam branch July 8, 2026 14:42
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