Linux X11/Xvfb: auto-sample cursor telemetry when ScreenCast METADATA is unavailable
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 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
- 平均マージ
- 16時間 38分
- マージ済み PR(30日)
- 327
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getopenscreen/openscreen のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getopenscreen/openscreen#1423 ·
メンテナーはふだん 1 日以内に返信
-
Native review wanted: machine-translated recording bar tooltips (14 locales)再び着手できるかも @auberginewly が 20 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンgood first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getopenscreen/openscreen#913 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
QA: e2e pass on v2.2.0-rc.1 (macOS, Windows)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
getopenscreen/openscreen#1431 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 半日 初心者へのやさしさ 68/100
getopenscreen/openscreen#1428 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
getopenscreen/openscreen#1426 ·
メンテナーはふだん 1 日以内に返信
getopenscreen/openscreen の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:web p3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Lets-Parley/Parley#912 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wealthfolio/wealthfolio#2376 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
be-BOP-io-SA/be-BOP#2817 ·
メンテナーはふだん 5 日以内に返信
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
sno-ai/sno-station#149 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信