better audio handling

This commit is contained in:
2026-05-01 22:50:34 -07:00
parent 5182686426
commit 8b8f0ddeed
3 changed files with 85 additions and 2 deletions

View File

@@ -49,6 +49,8 @@ docker logs -f frame-stream-player
The app sets `FFMPEG_INPUT_SEEKABLE=0` by default so `ffmpeg` reads stream inputs sequentially and avoids extra HTTP range connections. If a specific VOD file requires seeking for metadata, set `FFMPEG_INPUT_SEEKABLE=-1` to restore ffmpeg's automatic behavior.
Audio output from `ffmpeg` is buffered before it is written to the browser so short HTTP backpressure pauses do not stall frame generation. Tune the cap with `MAX_AUDIO_QUEUE_BYTES`; the default is `16777216`.
## Tuning
The UI intentionally hides these settings, but the backend still supports them through `POST /api/session`.