[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111254":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},111254,"g2-bridge","Ammaar-Alam\u002Fg2-bridge","Ammaar-Alam","USB display bridge for stock DJI Goggles 2 and Goggles Integra; supported on both Windows and macOS","",null,"Python",91,11,1,3,0,4,9,26,13,58.34,"GNU General Public License v3.0",false,"main",true,[],"2026-11-17 18:08:03","2026-11-22 02:22:26","# G2 Bridge\n\nStream your Windows or Mac desktop to DJI Goggles 2 or DJI Goggles Integra over USB. The goggles use Virtual Flight mode with stock firmware. The simulator and controller run on the computer.\n\nThe bridge detects the model when it connects:\n\n| Goggles | Identity | Tested firmware |\n| --- | --- | --- |\n| DJI Goggles 2 | `E3T ZV900` | 01.11.00.00, 01.14.00.00 |\n| DJI Goggles Integra | `E3T ZV901` | 01.09.00.00 |\n\nWe measured **about 12 ms median monitor-to-lens delay** at 1080p100. See [how we measured it](docs\u002FLATENCY.md).\n\n## Requirements\n\nOn Windows, you need the following hardware and software:\n\n- 64-bit Windows and Python 3.10 or later.\n- An NVIDIA GPU with NVENC support.\n- FFmpeg with `gfxcapture` and `h264_nvenc`. To install it, run `winget install Gyan.FFmpeg`.\n- [DJI Assistant 2 (Consumer Drones Series)](https:\u002F\u002Fwww.dji.com\u002Fdownloads\u002Fsoftwares\u002Fdji-assistant-2-consumer-drones-series), which installs the DJI USB driver 5.0.0.7. See [USB and driver requirements](docs\u002FPROTOCOL.md#usb-and-session).\n\nTests used FFmpeg build `2026-11-05-git-0893feba65` and NVIDIA driver 610.74.\n\nOn macOS, you need the following:\n\n- macOS and Python 3.10 or later.\n- Apple's command-line developer tools, which build the screen capture helper on the first run.\n- [Homebrew](https:\u002F\u002Fbrew.sh), for libusb. Before macOS 12.3, the bridge also needs FFmpeg.\n- A USB-A-to-USB-C cable. If the Mac has only USB-C ports, add a USB-C-to-USB-A adapter. Over a USB-C-to-USB-C cable, the goggles take the USB host role and the Mac can't detect them.\n\nThe stream script offers to install whatever is missing. Tests used an M2 Pro MacBook Pro with macOS 27.0, Swift 6.4.2, and Homebrew FFmpeg 8.1.1.\n\n## Start streaming\n\n1. Power on the goggles, connect a USB data cable, and open **More > DJI Virtual Flight**. On a Mac, when macOS asks whether the accessory can connect, select **Allow**.\n2. From the repository root, install the Python dependencies.\n\n   On Windows, run:\n\n   ```powershell\n   python -m pip install -r requirements.txt\n   ```\n\n   On macOS, run:\n\n   ```bash\n   python3 -m venv .venv\n   .venv\u002Fbin\u002Fpython -m pip install -r requirements.txt\n   ```\n\n3. Start the stream.\n\n   On Windows, run:\n\n   ```powershell\n   python scripts\u002Fstream_desktop.py\n   ```\n\n   On macOS, run:\n\n   ```bash\n   .venv\u002Fbin\u002Fpython scripts\u002Fstream_desktop.py\n   ```\n\n   On Windows, the script finds the DJI driver and FFmpeg automatically. If either is installed somewhere else, pass `--dll` or `--ffmpeg` with the file path.\n\n   On a Mac, the script offers to install anything that's missing, and it builds the screen capture helper on the first run. If the screen can't be captured, go to **System Settings > Privacy & Security** and allow screen recording for your terminal.\n\nThe default output is **1920x1080** at a **100 fps encoder target**. Windows uses **32 Mbps**, or automatically selects **24 Mbps at 60 fps** and **30 Mbps at 75 fps**. macOS uses **20 Mbps**. To stop streaming, press **Ctrl+C**. The bridge writes logs to `work\u002Flogs\u002F`.\n\nUse these options to adjust the stream:\n\n| Option | Values |\n| --- | --- |\n| `--fps` | `60`, `75`, `90`, `100` |\n| `--bitrate-mbps` | `8`, `10`, `12`, `16`, `20`, `24`. On Windows, also `30`, `32`, and `40` |\n| `--display` | Monitor index, starting at `0` |\n| `--hide-cursor` | Hide the mouse pointer |\n| `--capture` | Windows: `gfxcapture` or `ddagrab`. macOS: `screencapturekit` or `avfoundation` |\n\nRun `python scripts\u002Fstream_desktop.py --help` for all options.\n\nFor example, use `python scripts\u002Fstream_desktop.py --fps 90` to target 90 fps.\nThese values set the stream rate, not the goggles' panel refresh rate. Lower\nrates provide more bits per frame at the same bitrate, but increase the time\nbetween frames. The 100 fps target has the shortest frame interval.\n\nWindows encoding uses gradual refresh to reduce periodic compression blur.\nFor details, see the [quality measurements and reproduction steps](docs\u002Fresearch\u002FWINDOWS_QUALITY.md).\n\n## Run tests\n\nRun the tests from the repository root:\n\n```powershell\npython -m unittest discover -s tests -v\n```\n\nSee the [video-delay measurement guide](docs\u002FLATENCY.md), [PC protocol](docs\u002FPROTOCOL.md), and [reverse-engineering data and tools](docs\u002Fresearch\u002FREADME.md).\n\n## Contributing\n\nSee the [contribution guide](CONTRIBUTING.md) to report bugs, submit changes, or share protocol research.\n\n## License\n\nCopyright (C) 2026 G2 Bridge contributors.\n\nThe original code and documentation are licensed under the [GNU General Public License v3.0 only](LICENSE) (`GPL-3.0-only`). Third-party materials retain their own licenses.\n","G2 Bridge 是一个用于将 Windows 或 macOS 桌面画面通过 USB 实时串流至原厂固件的 DJI Goggles 2 或 Goggles Integra 的轻量级桥接工具。它利用系统原生屏幕捕获（Windows 下依赖 NVENC 编码，macOS 下依赖自建 helper）与 USB 协议通信，在 Virtual Flight 模式下实现低延迟（中位延迟约 12 ms）、高帧率（最高 100 fps）视频传输。项目不修改固件，兼容官方驱动与标准 USB 连接流程，适用于无人机模拟训练、VR 桌面扩展及低延迟头戴显示开发等场景。",2,"2026-11-24 04:40:34","CREATED_QUERY"]