# @neith/stream-encoder

Sovereign low-latency game-stream encoder HAL and deterministic reference
pipeline

## At a glance

- **Path:** `libs/neith/stream-encoder`
- **Domain:** neith (active)
- **Owner:** @GreyChimp
- **Docs:** [deep-dive](/docs/domains/neith/deep-dive) ·
  [systems one-pager](/docs/systems/lib-neith.md)
- **Nx project:** `neith-stream-encoder`

## Commands

```bash
pnpm nx test neith-stream-encoder
pnpm nx lint neith-stream-encoder
pnpm nx build neith-stream-encoder
```

The `neith-stream-transcoder` binary is the validated continuous FFmpeg adapter
used by `@oshun/live-media`. It accepts an allow-listed credential-free media
input URI, a bounded H.264/AAC profile, and a local MPEG-TS output path. On Unix
it replaces itself with FFmpeg, so the owning worker can terminate the actual
encoder process directly instead of leaving an orphan wrapper or child.

```bash
neith-stream-transcoder \
  --input-uri rtsp://127.0.0.1:8554/live \
  --output-path /var/lib/oshun-live-media/live.ts \
  --width 1280 --height 720 --frame-rate 30 \
  --video-bitrate-kbps 3000 --audio-bitrate-kbps 128
```
