A stalled stream keeps a media server playing: filler before the player runs dry, and a card with the stream's H.264 settings #50
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cmoriarty/sports-breaker#50
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
On 2026-10-29 Pelicans vs. Kings froze on the living-room Shield (Emby for Android 3.5.55) about 30 s after tuning, and Emby then dropped back to the game screen. Sports Breaker recovered the stream within 40 s, and the Admin card said "Let it work" throughout. The player had already given up, and the card could not see it.
What we found (2026-10-29, times local)
EnableDirectPlay=false, so Emby switched to transcoding. Sports Breaker's first filler card was appended 2 s later (seq 15, 20:23:04). Filler only starts once recovery is running, that is after the channel counts as failed (two target durations without a new segment).-hwaccel vaapi -hwaccel_output_format vaapi, thenhwmap … derive_device=qsv,h264_qsv) died at the game-to-card splice:Error reinitializing filters!/Failed to inject frame into filter network: Function not implemented.The card did not match the stream's H.264 settings. Its picture size and frame rate did (640×360 at 30 fps, from the probe after landing):
has_b_frames)The card is made with x264
ultrafast, which drops CABAC and B-frames, from a PNG that carries no aspect ratio. A VAAPI decode rebuilds its frame pool when the SPS changes, and the QSVhwmapcannot follow the new pool. Locally, ffmpeg 7 on software decoding does not rebuild its filters for the aspect ratio alone; the hardware decode is what makes the settings matter.What Changes
has_b_frames) and aspect ratio.-profile:v,-level,-refs,-bf, andsetsar.Done when a stall on a direct-streaming Emby session shows the card before the client falls back. The card's ffprobe matches the stream's profile, level, B-frames and aspect ratio. A transcoding session with VAAPI and QSV, or a local stand-in, crosses game, card and game without
Error reinitializing filters.Deployed 2026-10-29 22:56 local (PR #54).
test_fillercard.pychecks real encodes with ffprobe at Main 3.1, High 4.0 and Constrained Baseline.Still open: a VAAPI-to-QSV transcode crossing card splices in Emby, which only shows up on a real stall.
Closing: deployed 2026-10-29 (PR #54), and its last open check passed live on 2026-10-30 at 18:51. Emby's VAAPI→QSV transcode crossed game → card → game (seq 40, 41, 42) without
Error reinitializing filters. The same evening, filler was held back while a download was in flight; that is #57.