[Bug]: Streaming can buffer a whole file's audio before the first keyframe
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- audio-video-rtc, performance
Direzione di ricerca
Start in src/media/stream.rs around line 322, where audio packets accumulate in held_audio until the first video keyframe sets video_start; trace both where video_start is assigned and where held_audio is later drained, in copy mode. Decide on a bound (packet count or duration) or a timeout for giving up on the keyframe, and keep the existing A/V sync behaviour intact. Done means memory stays bounded for a file with no keyframe flag or a far seek, verified by a test or a synthetic input rather than a live server, since the report was not reproduced.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a code review session with @PhrolovaMoe. It was found by reading the code and hasn't been reproduced on a running server.
Version
0.40.0 (feat/desktop, 017a837b)
Area
Streaming / playback
What happened?
In copy mode, audio packets wait in held_audio until the first video keyframe sets video_start (src/media/stream.rs:322). The vector has no limit, so for a file whose video packets never carry the keyframe flag (or a seek that lands far from one), the stream reads the whole file's audio into memory.
Expected behavior
Memory use stays bounded however the file is laid out.
Suggested fix
Cap held_audio (by count or duration) and drop the oldest packets, or give up waiting for a keyframe after a few seconds of input.
- Lingua principale
- TypeScript
- Stelle
- 4
- Fork
- 1
- Merge medio
- 4h 49m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tinystream-dev/tinystream
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tinystream-dev/tinystream#132 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tinystream-dev/tinystream#131 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
tinystream-dev/tinystream#129 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
tinystream-dev/tinystream#128 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tinystream-dev/tinystream#124 ·
Tutte le issue di tinystream-dev/tinystream
Issue simili
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
sandbox-quantum/switch#2163 ·
I maintainer di solito rispondono entro 1 giorno
-
automated issue report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area/dashboard kind/bug QA/dev-automation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug pydanty:is-working
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
pydantic/pydantic-ai#13939 ·
I maintainer di solito rispondono entro 1 giorno
-
self-host
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
funmusicplace/mirlo#2625 ·
I maintainer di solito rispondono entro 1 giorno