Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LinkPi Companion logo

LinkPi Companion

Turn your LinkPi into a guided multicam recorder, streamer and automatic director.

Camera setup, recording checks, RTMP/RTMPS/SRT/RTP helpers and an audio-driven Auto Director โ€” directly on the LinkPi, without replacing its native Encoder.

LinkPi ENC1 V3 English French Chinese UI RTMP SRT RTP MIT license CI

๐Ÿ‡ซ๐Ÿ‡ท Franรงais ยท ๐Ÿ‡จ๐Ÿ‡ณ ็ฎ€ไฝ“ไธญๆ–‡


LinkPi Companion guided setup dashboard

A six-step setup guide turns a dense encoder UI into a practical checklist.

Why LinkPi Companion?

A LinkPi can do a lot. The hard part is remembering where everything lives, which values belong in which streaming field, whether recording is actually ready, and whether your automatic switching logic is safe to arm.

LinkPi Companion puts that workflow on one page at http://<LINKPI_IP>:8787:

  • Guided setup โ€” cameras โ†’ video/audio โ†’ Auto Director โ†’ recording โ†’ streaming โ†’ preflight.
  • Direct native links โ€” Input, Encode, Stream, Push, Record, Storage, Carousel and Mix open the exact LinkPi page you need.
  • Streaming helpers โ€” build and validate RTMP/RTMPS, SRT and RTP/UDP values without storing stream keys.
  • Recording readiness โ€” check external storage, MP4 and the target CAM A + CAM B + PROGRAM workflow.
  • Auto Director โ€” audio-driven CAM A / CAM B / SPLIT decisions with minimum-shot, refractory and overlap protection.
  • Safe by default โ€” native C++ Encoder stays in charge; AUTO remains locked until readiness is proven.
  • Portable โ€” the Companion lives on the LinkPi, so the guide travels with the box.

LinkPi Companion SRT and streaming assistant LinkPi Companion Auto Director controls

Quick start

From any Linux/macOS machine on the same LAN:

git clone https://github.com/GodsQuantum/linkpi-companion.git
cd linkpi-companion
./scripts/install.sh <LINKPI_IP>

Then open:

http://<LINKPI_IP>:8787

No SSH is required for the normal install path on the tested firmware: the installer uses LinkPi's native configuration-restore mechanism, preserves existing Companion calibration/settings and merges its watchdog into the existing cron.

Useful commands:

./scripts/status.sh <LINKPI_IP>
./scripts/harden.sh <LINKPI_IP>
./scripts/test.sh

Alpha status: the software and safety gates are validated, but the final production workload still needs real-hardware commissioning for each setup. Do not assume three simultaneous MP4 recordings + live streaming are within your unit's resource budget until you test them.

What the Guide walks through

  1. Cameras โ€” confirm HDMI and USB/UVC sources are actually present.
  2. Video + audio โ€” review readable channel summaries and sane starting values.
  3. Auto Director โ€” validate RPC, two sources, two audio meters, calibration and A/B/SPLIT scenes.
  4. Recording โ€” prepare external storage and MP4 recording.
  5. Streaming โ€” generate values for YouTube/Twitch/custom RTMP, SRT and RTP/UDP.
  6. Preflight โ€” get a workflow-aware READY / INCOMPLETE / PROBLEM result before going live.

The UI is available in English, French and Simplified Chinese, with the choice stored only in the browser. You can also link directly with ?lang=en, ?lang=fr or ?lang=zh-CN.

Streaming without field-name guesswork

The helper does not push production settings into the LinkPi automatically yet. It gives you validated values to paste into the native UI, which keeps first commissioning reversible.

Supported helpers:

  • RTMP / RTMPS โ€” server + stream key โ†’ complete push URL.
  • SRT โ€” caller/listener/rendezvous, host, port, latency, optional passphrase and streamid.
  • RTP / UDP โ€” unicast/multicast destination, port, TTL and RTP header toggle.
  • YouTube / Twitch โ€” focused forms plus generic RTMP/RTMPS.

Secrets stay in the current browser fields only. Companion's diagnostic API also removes credential-shaped values and never returns native push URLs.

Recording target

The intended production workflow is:

CAM A โ”€โ”
CAM B โ”€โ”ผโ”€โ–บ PROGRAM โ”€โ–บ live stream
       โ”‚
       โ””โ”€โ–บ CAM A + CAM B + PROGRAM โ†’ MP4 on external USB storage

For long recordings, a modern external drive is recommended. The UI deliberately marks the three-recording target as unvalidated until it has been benchmarked on the actual LinkPi workload.

Auto Director

The native LinkPi Encoder still owns capture, encode, record and stream. Companion only reads telemetry and uses native Carousel switching.

The Natural preset starts with 900 ms acquisition, 5 s minimum shot, 2.5 s refractory period, 1 s overlap before SPLIT, 3 s SPLIT hold and 7 s silence before neutral SPLIT. Stable and Reactive presets are included, and each setting has inline help.

Program audio is intentionally independent from video cuts: speaker activity drives editorial decisions while the final mix can keep both microphones continuously present.

Tested target

Development and live validation have focused on:

  • LinkPi ENC1 V3 / SS524V100
  • APP/SDK 5.3.0, SYS 5.3.1 (20260731)
  • native /RPC
  • embedded PHP CLI at /usr/php/bin/php
  • Companion runtime on port 8787

Other firmware/model combinations may work, but should be treated as unverified until reported by users.

Safety model

  • Native C++ Encoder stays in charge; Developer Mode / EncoderJS stays disabled.
  • Auto Director boots in OFF.
  • DRY_RUN can decide but cannot switch video.
  • AUTO is rejected server-side until readiness passes.
  • Companion's LinkPi diagnostics are read-only.
  • The Guide never auto-starts a push or recording.
  • Stream keys/passphrases are never persisted by Companion.
  • High-frequency state lives in /tmp to avoid needless eMMC writes.

Port 8787 currently has no application-level authentication. Keep LinkPi Companion on a trusted LAN/VLAN or behind an authenticated VPN/reverse proxy. Never expose LinkPi control/RPC/UI ports directly to the Internet.

Repository layout

companion/embedded/       PHP runtime + UI installed on the LinkPi
companion/reference-node/ deterministic reference implementation + tests
docs/assets/              logo, screenshots and social preview
scripts/                  install, hardening, status and validation
docs/                     architecture, operations and hardware commissioning

Key docs: Architecture ยท Operations ยท Hardware commissioning ยท Production readiness

Contributing

Bug reports and hardware compatibility feedback are especially useful. Include the LinkPi model, APP/SDK/SYS versions and a reproducible description โ€” but never paste stream keys, passwords or private configuration archives.

See CONTRIBUTING.md, SECURITY.md and SUPPORT.md.

If LinkPi Companion makes your encoder easier to use, star the repository โ€” stars make it easier for other LinkPi owners to rediscover and discover related projects on GitHub.

License

MIT. LinkPi Companion is an independent community project and is not affiliated with or endorsed by LinkPi.

About

Guided setup, multicam Auto Director, MP4 recording and RTMP/RTMPS/SRT/RTP streaming companion for LinkPi ENC1 V3 encoders.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages