Cross-platform capture backends (x11grab / avfoundation)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 30/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- typescript
- Bereich
- desktop
Rechercherichtung
Start with src/utils/targets.ts and trace how buildCaptureArgs, buildScreenshotArgs, and targetInputArgs construct capture arguments; then read src/utils/monitors.ts, src/utils/windows.ts, and src/utils/resolveTarget.ts for target resolution. Begin with the Linux x11grab video scope and use the pure argument builders with an injected platform to test full, monitor, and region targets. Done means those targets build the specified Linux arguments, while unsupported non-Windows window and system-audio requests return clear errors.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
Capture is Windows-only. start_recording and screenshot hardcode -f gdigrab (src/utils/targets.ts: buildCaptureArgs / buildScreenshotArgs / targetInputArgs), and target resolution uses Windows APIs (src/utils/monitors.ts via PowerShell, src/utils/windows.ts for window bounds, wired in src/utils/resolveTarget.ts).
The watch, edit, redact, and produce tools already run anywhere ffmpeg does. Only capture is pinned to Windows.
Proposed backends
Selected by process.platform:
win32-> gdigrab (current).linux-> x11grab:-f x11grab -framerate N -video_size WxH -i $DISPLAY+X,Y. Native offset/region, mirrors gdigrab closely (lowest-risk first target).darwin-> avfoundation:-f avfoundation -framerate N -i "<screen-index>". No native offset, so aregion:needs-vf crop=w:h:x:yover a full-screen grab; needs screen-recording permission (TCC); the screen device index comes fromffmpeg -f avfoundation -list_devices true -i "".
Architecture sketch
- Add a host-platform helper (overridable via env for tests).
- Refactor
targetInputArgsinto a backend-awarecaptureInputArgs(target, platform, monitors)and thread aplatformoption throughbuildCaptureArgs/buildScreenshotArgs, so the pure builders stay unit-testable for all three platforms on any host. - Per-platform monitor enumeration: keep Windows (
getMonitors), add Linux viaxrandrand macOS via the avfoundation device list. window:targets and systemaudiostay Windows-only initially (they needxdotool/ BlackHole / pulse), with a clear error on other platforms.
Suggested sequencing
- Linux (x11grab) first; scope to video
full/monitor/region. - macOS (avfoundation) as a follow-up.
Testing reality
The pure arg-builders are fully unit-testable by injecting platform. Actual x11grab / avfoundation runtime can only be verified on those OSes, not from the Windows dev box.
Scope decisions (from planning)
- Video
full/monitor/regioncross-platform;window:+ system audio stay Windows-only initially.
Recorded from a planning session; not yet scheduled for implementation.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1
- Forks
- 4
- Ø Merge
- 14 Std. 8 Min.
- Gemergte PRs (30 T.)
- 48
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/screencast-mcp
-
effort: small good first issue priority: medium testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TMHSDigital/screencast-mcp#351 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug effort: small priority: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TMHSDigital/screencast-mcp#344 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug effort: small good first issue priority: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TMHSDigital/screencast-mcp#343 ·
Maintainer antworten meist innerhalb von 1 Tag
-
effort: medium help wanted priority: medium testing
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 76/100
TMHSDigital/screencast-mcp#350 ·
Maintainer antworten meist innerhalb von 1 Tag
-
effort: medium priority: medium testing
Schwierigkeit 4/5 1-2 Tage Anfängerfreundlichkeit 70/100
TMHSDigital/screencast-mcp#349 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TMHSDigital/screencast-mcp
Ähnliche Issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
openclaw/openclaw#200365 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
area-templates triage:bot-seen triage:needs-human
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
microsoft/aspire#22356 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Archiving an agent that is not loaded keeps its old updatedAtEvtl. vergeben @luoph hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
content triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag