@pymthouse/gateway-stream
v0.1.0-rc.2
Published
MPEG-TS media layer for @pymthouse/gateway-web trickle jobs: H.264 encode/decode via node-av.
Maintainers
Readme
@pymthouse/gateway-stream
Optional MPEG-TS media layer for trickle jobs that need frame encode/decode. Depends on node-av (native FFmpeg bindings). Install this package only when you publish or consume video frames; @pymthouse/gateway-web trickle transport stays undici-only.
npm install @pymthouse/gateway-stream--ignore-scripts is safe here. node-av ships its native addon as a prebuilt
platform-specific optional dependency, and its postinstall only downloads the
standalone ffmpeg CLI, which this package never invokes — encode and decode go
through the addon.
import { MediaPublish, MediaOutput, publishFile } from "@pymthouse/gateway-stream";
const pub = new MediaPublish(inUrl);
await pub.writeFrame({ width: 640, height: 360, data: yuv420p });
await pub.close();