Linux X11/Xvfb: auto-sample cursor telemetry when ScreenCast METADATA is unavailable
維護者通常 1 天內回覆
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- electron, linux, typescript
研究方向
Start by reading the existing openscreen record --cursor editable-overlay and openscreen export --auto-zoom paths, then inspect the fork implementation linked in the issue. Determine how X11 pointer samples can produce the v2 sidecar when ScreenCast METADATA is unavailable, and confirm the schema with maintainers; done means automatic sampling and sidecar output work on the described X11 setup.
由索引模型根據 Issue 內容生成。
描述
Summary
On some Linux cloud-agent desktops (X11 + Xvfb), the xdg-desktop-portal ScreenCast interface reports empty source/cursor modes (AvailableSourceTypes=0 / no METADATA cursor mode). OpenScreen’s live editable-cursor capture therefore cannot write a .cursor.json sidecar even though the screen can still be recorded and the pointer can be sampled separately.
Agents can still:
- Record with ffmpeg
x11grab(draw_mouseoff) or OpenScreen’s non-METADATA path - Sample pointer positions + clicks (
Electron screen.getCursorScreenPoint(),xdotool/xev/xinput/libinput) - Drive
openscreen export --auto-zoomfrom a v2<video>.mp4.cursor.jsonsidecar
We implemented an automatic fallback on our fork and would like to contribute it upstream.
Environment (repro host)
| Item | Value |
|---|---|
| Host | Grok Bot cloud Linux box (grok-bot-vm-316768464) |
| Kernel | Linux 6.12.94+ x86_64 |
| OS | Debian GNU/Linux 13 (trixie) |
| CPU / RAM | 8 vCPU / ~15 GiB |
| Session | X11 on DISPLAY=:2 (Xvfb 1920x1200x24 + Mutter/GNOME pieces) |
| Wayland | No |
| Portal | xdg-desktop-portal (+ gnome/gtk) present; ScreenCast reports no usable METADATA cursor mode (AvailableSourceTypes=0 / empty cursor modes in practice; CreateSession / editable capture fails) |
| GPU | Mesa llvmpipe (software Vulkan/GL); OpenScreen export falls back to CPU |
| OpenScreen | Linux AppImage 2.1.2 |
| PipeWire | Present (pipewire + wireplumber) |
| Pointer tools | xdotool, xev available |
Proposed behavior
When ScreenCast METADATA cursor capture is unavailable on X11:
- Automatically sample the pointer during record
- Write
<recording>.mp4.cursor.json(v2:timeMs, normalizedcx/cy,move|click|mouseup) next to the video - So
openscreen export --auto-zoomneeds no manual import
Optional CLI for external ffmpeg tracks: openscreen cursor import --csv … --clicks … --video …
Env knobs: OPENSCREEN_DISABLE_X11_CURSOR=1, OPENSCREEN_FORCE_X11_CURSOR=1
Workaround today (without the PR)
ffmpeg x11grab + CSV/clicks → converter → sidecar → openscreen export --auto-zoom
Ask
- Accept auto X11 sampling when METADATA is missing (primary path for agent hosts)
- Document the sidecar / optional CLI import path
- Confirm preferred schema fields beyond
{ version: 2, samples: [...] }
Happy to adjust the PR to maintainer preference.
Related
- CLI:
openscreen export --auto-zoom,openscreen record --cursor editable-overlay - Fork implementation: https://github.com/Jasonsu22/openscreen/pull/1
- 主要語言
- TypeScript
- 星號
- 3.7k
- 分支
- 231
- 平均合併
- 15 小時 10 分鐘
- 30 天內合併 PR
- 324
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getopenscreen/openscreen 的其他 Issue
-
Native review wanted: machine-translated recording bar tooltips (14 locales)可能重新可做 @auberginewly 於 22 天前認領,目前沒有進行中的 PR。 未關閉good first issue help wanted
難度 2/5 1-3 小時 新手友好度 68/100
getopenscreen/openscreen#913 · 5 則留言 ·
維護者通常 1 天內回覆
-
[Bug]: Windows update click opens the full NSIS wizard instead of a UAC prompt可能已有人在做 @EtienneLescot 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 30/100
getopenscreen/openscreen#1437 ·
維護者通常 1 天內回覆
-
enhancement
難度 3/5 1-2 天 新手友好度 45/100
getopenscreen/openscreen#1436 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 45/100
getopenscreen/openscreen#1435 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 55/100
getopenscreen/openscreen#1431 · 4 則留言 ·
維護者通常 1 天內回覆
查看 getopenscreen/openscreen 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
excaliburjs/Excalibur#3895 ·
維護者通常 3 天內回覆
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejected可能已有人在做 @Steve-20-ai 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
Earn report crashes with "RangeError: Invalid time value" when a report row has an unparsable timestamp可能已有人在做 @Gurkaran18 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 75/100
joinmarket-webui/jam#1588 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
mihaip/infinite-mac#475 ·