Plan the address a live camera streams to

Work out how a live camera's stream would be received: the address this computer listens on for the camera's own key, the FFmpeg listener it is taken with, and a public RTMPS address through Tailscale Funnel that never takes a port serving something else

Give key (the camera's stream key), port (1935 when left out), app (live when left out), output (the destination's FFmpeg arguments after the input, [] when left out) and optionally funnel ({ name: this computer's Tailscale name, ports: the public ports its tailnet allows, status: what tailscale funnel status --json printed }). Answers listening_address, camera_server_address, ffmpeg ({ program, arguments }: exactly what the shared listener do-work/take-a-stream.mjs starts FFmpeg with, captured from a stand-in that is never run) and, with funnel, public: the port picked the way the Funnel way in picks it (one already forwarding here, else the first free one of stream-settings.json tailscale.public_ports the tailnet allows), the rtmps:// address, whether it already forwards here and the trust anchor a camera imports for it (RTMPcert.pem, the public ISRG Root YE certificate), or why no port is free. The key is shown as <key> in every answer. Refuses a key, port or app of another shape, an output that is not a list of text and a funnel without a name or ports. It reads only its input and stream-settings.json: it starts no FFmpeg or Tailscale, opens no port, changes no Funnel setting, reads no saved login and sends nothing. The receiver's other work (taking the stream, showing the live picture, cutting it into pieces sent into the person's files, relaying it, following the person's stream rows) needs FFmpeg, a camera and the account and is not done by this run.

What it asks for

Nothing: your AI starts it with your words.

Use it from your AI

Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.

Say to your AI: “Use Trillion to work out how a live camera's stream would be received: the address this computer listens on for the camera's own key, the FFmpeg listener it is taken with, and a public RTMPS address through Tailscale Funnel that never takes a port serving something else”