[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116511":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":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":30,"discoverSource":31},116511,"tvpipe","mitsuhiko\u002Ftvpipe","mitsuhiko","Airplay\u002FChrome Cast anything","https:\u002F\u002Fmitsuhiko.github.io\u002Ftvpipe",null,"Rust",221,8,1,2,0,42,103,143,92.86,"Apache License 2.0",false,"main",true,[],"2026-11-23 20:37:24","2026-11-23 20:48:11","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Flogo\u002Ftvpipe.svg\" alt=\"tvpipe logo\" width=\"260\">\n\u003C\u002Fp>\n\n# tvpipe\n\n`tvpipe` is a command line tool for low-latency mirroring of video and audio\nto **AirPlay** and **Google Cast** receivers (Apple TV, smart TVs,\nChromecast \u002F Google TV) and browser tabs. It uses the real-time mirroring\nprotocols of both ecosystems, not URL playback, so the picture on the TV is a\nfraction of a second behind the source.\n\n**Website and manual: \u003Chttps:\u002F\u002Ftvpipe.party\u002F>**\n\n```sh\ntvpipe discover                                        # find receivers\ntvpipe pair \"Living Room\"                              # Apple TV only, once\ntvpipe play --to \"Living Room\" movie.mp4               # a file or URL\ntvpipe play --to \"Living Room\" --to Kitchen movie.mp4  # two TVs, one encode\ntvpipe screen --to Kitchen                             # the screen, with sound\ntvpipe screen --to Kitchen --window Keynote            # one window\ntvpipe share --to Kitchen --open                       # a browser tab or the screen\ntvpipe share https:\u002F\u002Fstatus.example.com --to Kitchen   # a web page\ntvpipe game play drawbluff                             # a party game: TV, phones, a window here\n```\n\n## Installing\n\n```sh\ncurl -fsSL https:\u002F\u002Ftvpipe.party\u002Finstall.sh | sh     # macOS, Linux\n```\n\n```powershell\nirm https:\u002F\u002Ftvpipe.party\u002Finstall.ps1 | iex           # Windows\n```\n\nPlaying files, URLs and capture devices needs `ffmpeg` (and `ffprobe`); see\n[Installation](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Finstall\u002F) for\nffmpeg, the release archives and building from source.\n\nFrom Node.js, `npm install @tvpipe\u002Fsdk` installs an SDK and the binary for your\nplatform ([`npm\u002Ftvpipe`](npm\u002Ftvpipe\u002FREADME.md)):\n\n```js\nimport { play } from \"@tvpipe\u002Fsdk\";\nawait play(\"movie.mp4\", { to: \"Living Room\" });\n```\n\nFrom Rust, `cargo add tvpipe` links tvpipe into your program (no binary,\nno async runtime); a game streams its own frames and sound\n([`crates\u002Ftvpipe`](crates\u002Ftvpipe\u002FREADME.md),\n[From Rust](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Frust\u002F)):\n\n```rust\nlet mut s = tvpipe::stream(Options::new().to(\"Living Room\").video(1280, 720, 60, PixelFormat::Rgba))?;\ns.write_video(&frame, s.elapsed())?;\n```\n\n## Features\n\n- Plays files and URLs, and mirrors cameras, capture cards and the screen\n  through ffmpeg; suitable MP4\u002FMOV\u002FMKV files are sent without re-encoding.\n- Mirrors a screen or a single window with the computer's sound, captured\n  by a Chromium-based browser it starts (or by ffmpeg).\n- Shares a browser tab, window or screen, or puts a web page on the TV in a\n  headless browser of its own.\n- Sends to several receivers at once, on one timeline, and reconnects one\n  that drops out.\n- Plays to a browser tab too: previews, OBS sources, video calls; and on a\n  public link for people elsewhere, who can also share their screen to\n  your TV.\n- Takes raw or H.264 frames and sound from a game on stdin.\n- Runs party games written as web apps (`tvpipe game play`): the TV page\n  on the TVs, phones joining with a QR code, the game in a window on the\n  computer (see below).\n- One self-contained binary for macOS, Linux and Windows, with its own mDNS,\n  protocol stacks and H.264\u002FAAC encoders.\n\n## Public links\n\n```sh\ntvpipe preview --tunnel                    # anyone with the link watches in a browser\ntvpipe share --to \"Living Room\" --tunnel   # someone elsewhere shares their screen to the TV\n```\n\n`--tunnel` also puts the browser player or the share page on a public\nhttps link. Two providers, both built in (no account, no extra program):\n\n- `--tunnel` (or `--tunnel=cloudflare`): a [Cloudflare Quick\n  Tunnel](https:\u002F\u002Ftry.cloudflare.com) on `*.trycloudflare.com`, about 7 s\n  to set up, a new hostname every run. Cloudflare ends TLS, so it can read\n  the page and the stream.\n- `--tunnel=opentunnel`: [OpenTunnel](https:\u002F\u002Fopentunnel.xyz), with TLS\n  ending in tvpipe (the relay cannot read the page or the stream). The\n  first use creates the machine's tunnel and certificate (about 15 s,\n  once; kept in the config directory under `opentunnel\u002F`), later runs\n  take 0.2 s.\n\nThe link is new every run and has a token of its own; at most 4 viewers\ncome in that way. A remote share shows up only after you answer `y` in the\nterminal (`--yes` skips the question), and its link lets people in for 60\nminutes (`--tunnel-ttl`). Details: [`docs\u002Ftunnels.md`](docs\u002Ftunnels.md).\n\nIn a terminal, tvpipe also draws the public link as a QR code, so a phone\ncan open it by scanning the screen (`--no-qr` or `TVPIPE_NO_QR=1` turns\nthat off; never with `--machine`).\n\n## Party games\n\n```sh\ntvpipe game play                      # pick one from the games list in the window\ntvpipe game play drawbluff            # a game from the games list, downloaded\ntvpipe game play games\u002Fdrawbluff      # a folder with tvpipe.json\ntvpipe game play my-game.zip          # or a zip of one\ntvpipe game play gh:OWNER\u002FREPO        # a GitHub release's zip (or https:\u002F\u002F…\u002Fgame.zip)\n```\n\nGames are not shipped with tvpipe: each has its own releases, and tvpipe\ndownloads the newest one made for it, keeps it in its cache and asks\nonce per game and version before running it (`--yes`, or a\n`#sha256=HEX` pin; `--offline` plays what is cached). `tvpipe game fetch`\ndownloads without playing, `tvpipe game list` shows what is cached. The\nnames come from the [games list](https:\u002F\u002Ftvpipe.party\u002Fgames\u002F)\n(`site\u002Fstatic\u002Fgames.json`).\n\nA game is a web app: a host page (the rules), a TV page and a phone page,\nwith a small `tvpipe.json`. tvpipe serves it, opens a window with a\nlauncher (pick the TVs, AirPlay PIN pairing), then the game's host page;\nit renders the TV page in a headless browser of its own and casts it,\nand relays the phones' WebSockets (through a public link: OpenTunnel by\ndefault, or `--lan`) to the host page. Rooms, players, reconnects and\nviews live in the browser library [`@tvpipe\u002Fparty`](npm\u002Fparty\u002FREADME.md);\nthis repository's games are [`games\u002Fdrawbluff`](games\u002Fdrawbluff\u002F)\n(3–50 players), [`games\u002Fjinx`](games\u002Fjinx\u002F) (3–8),\n[`games\u002Fgarble`](games\u002Fgarble\u002F) (3–12) and\n[`games\u002Fkrakel`](games\u002Fkrakel\u002F) (3–10), each released on its own as\n`NAME-vX.Y.Z`. Closing\nthe window ends everything. Design: [`docs\u002Fplayshare-design.md`](docs\u002Fplayshare-design.md).\n\nMaking one: [`docs\u002Fgames.md`](docs\u002Fgames.md) (layout, `tvpipe.json`,\nthe pages and the library, the dev loop, running and troubleshooting).\n\n```sh\ntvpipe game new my-game               # a starter game\ntvpipe game check my-game             # what would break, with files and lines\ntvpipe game pack my-game --smoke      # my-game.zip (deterministic), run once in a headless browser\n```\n\nSharing one: put the zip on a website or a GitHub release\n([`docs\u002Fgames.md`](docs\u002Fgames.md#publishing)); `game pack` prints its sha256.\n\n## Manual\n\n| Page | Covers |\n|---|---|\n| [Overview](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002F) | what tvpipe does and does not do |\n| [Installation](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Finstall\u002F) | the installers, ffmpeg, building from source |\n| [Quick start](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fquick-start\u002F) | find a TV, pair it, play a file |\n| [Receivers](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Freceivers\u002F) | `discover`, `pair`, `unpair`, `--to`, reconnecting |\n| [Playing media](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fplay\u002F) | files, URLs, cameras |\n| [Sharing the screen](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fscreen\u002F) | `screen` and `share`: the screen, a window or a browser tab |\n| [A web page on the TV](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fweb-page\u002F) | `share URL` |\n| [Playing to a browser](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fbrowser\u002F) | `preview`, `--to browser`, OBS, video calls |\n| [Public links](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Flinks\u002F) | `--tunnel` |\n| [Game input](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fgames\u002F) | SLRW frames on stdin |\n| [From Node.js](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fnode\u002F) | the `@tvpipe\u002Fsdk` npm package |\n| [From Rust](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Frust\u002F) | the `tvpipe` crate |\n| [Party games](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fparty\u002F) | `tvpipe game` and `@tvpipe\u002Fparty`: web games played with phones, the TV as the main screen |\n| [Games to play](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fgame-list\u002F) | the games list: games played by name |\n| [Commands and options](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Foptions\u002F) | every command, the shared options, encoders |\n| [Configuration](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fconfig\u002F) | the config directory, environment variables |\n| [Diagnostics](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fdiagnostics\u002F) | `-v`, `--debug`, common problems |\n| [Latency](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Flatency\u002F) | the test pattern, `--latency`, measuring |\n| [ffmpeg and encoding](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fencoding\u002F) | when ffmpeg runs |\n| [Debug commands](https:\u002F\u002Ftvpipe.party\u002Fmanual\u002Fdebug-commands\u002F) | `tvpipe debug`: the test pattern, the pipeline, a tunnel for any port, QR codes |\n\n## Development\n\n```sh\ncargo build --release        # → target\u002Frelease\u002Ftvpipe (Rust 1.85+, a C compiler)\ncargo fmt --all && cargo clippy --workspace --all-targets -- -D warnings && cargo test --workspace\n```\n\nThe workspace has three crates: [`crates\u002Ftvpipe`](crates\u002Ftvpipe\u002F) (the\nlibrary, Apache-2.0), [`crates\u002Ftvpipe-cli`](crates\u002Ftvpipe-cli\u002F) (the\n`tvpipe` command on top of it) and\n[`crates\u002Ftvpipe-fairplay`](crates\u002Ftvpipe-fairplay\u002F) (the LGPL FairPlay port,\nbehind the library's opt-in `fairplay` feature). Beside them: the Node\nSDK [`npm\u002Ftvpipe`](npm\u002Ftvpipe\u002F), the browser game library\n[`npm\u002Fparty`](npm\u002Fparty\u002F) (its build is copied into the library, which\nserves it to games: `npm run build` there) and the game\n[`games\u002Fdrawbluff`](games\u002Fdrawbluff\u002F) (a web app; `npm run build`).\n\nThe Node SDK's and the game library's tests run against the debug binary:\n`cargo build && cd npm\u002Ftvpipe && npm ci && npm run check && npm test`\n(likewise in `npm\u002Fparty`, after `npm run build`). A release bumps the\nversion in `Cargo.toml`, `Cargo.lock`, `npm\u002Ftvpipe\u002Fpackage.json`,\n`npm\u002Fparty\u002Fpackage.json` and the crates' path dependencies together (CI\nchecks), then tags `vX.Y.Z`; `release.yml` publishes the GitHub\nrelease (marked latest), the npm packages and the crates. A game releases\non its own: bump `games\u002FNAME\u002Fpackage.json`'s version (and `tvpipe.json`'s\n`tvpipe` when the tvpipe series changes; CI checks it is the workspace's\n`X.Y`), then tag `NAME-vX.Y.Z`; `games.yml` packs it with the tvpipe of\nthat commit and publishes a release that is not latest\n([`docs\u002Fgames.md`](docs\u002Fgames.md#publishing)). Programs in other languages can drive tvpipe\nthrough [`--machine`](docs\u002Fmachine.md).\n\nTests that use ffmpeg as an oracle are skipped without it; tests against\nreal receivers or hardware run with `--ignored`. How and why tvpipe works is\nin [`ARCHITECTURE.md`](ARCHITECTURE.md); the `tvpipe debug` commands and the\nscripts behind them in [`docs\u002Fdebug.md`](docs\u002Fdebug.md); protocols, formats, measurements and\nper-OS status are in [`docs\u002F`](docs\u002F), and the website's sources in\n[`site\u002F`](site\u002F).\n\n## License\n\n`tvpipe`'s source is Apache-2.0 ([`LICENSE`](LICENSE)), except the\nFairPlay crate [`crates\u002Ftvpipe-fairplay\u002F`](crates\u002Ftvpipe-fairplay\u002F), a port\nof [doubletake](https:\u002F\u002Fgithub.com\u002Fomarroth\u002Fdoubletake) under\nLGPL-3.0-or-later, which is only built with the `fairplay` feature. The\ndistributed binary includes it, so it is under LGPL-3.0-or-later terms.\n\nThe root certificates in `crates\u002Ftvpipe\u002Fsrc\u002Fnet\u002Froots\u002F` (for the `--tunnel` service's\nHTTPS) are Mozilla's list from the CCADB, under CDLA-Permissive-2.0 (see\n[`LICENSES\u002FCDLA-Permissive-2.0-ccadb.txt`](LICENSES\u002FCDLA-Permissive-2.0-ccadb.txt)).\n\nSome H.264 encoder tables (`crates\u002Ftvpipe\u002Fsrc\u002Fmedia\u002Fh264enc\u002Ftables.rs`) are transcribed\nfrom [openh264](https:\u002F\u002Fgithub.com\u002Fcisco\u002Fopenh264) (BSD-2-Clause), and the\nfonts in `crates\u002Ftvpipe\u002Fsrc\u002Fbrowser\u002Ffonts\u002F` (also used by the website) are under the SIL\nOpen Font License 1.1. The license texts are in [`LICENSES\u002F`](LICENSES).\n","tvpipe 是一个基于 Rust 开发的命令行工具，用于低延迟地将音视频内容实时镜像至 AirPlay 和 Google Cast 设备（如 Apple TV、Chromecast、智能电视）及浏览器标签页。它直接使用原生协议进行实时流式传输，而非简单播放 URL，支持文件\u002FURL 播放、屏幕\u002F窗口捕获、浏览器标签共享、多设备同步投屏及游戏流分发等核心功能，并可集成到 Node.js 或 Rust 项目中。适用于家庭影音投屏、远程会议共享、教学演示、互动派对游戏等需要低延迟、高兼容性跨平台镜像的场景。","2026-11-24 04:53:44","CREATED_QUERY"]