A re-encoded thetvapp stream loses a second about every 10 s, and the channel still reads Healthy #155
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?
Seen 2026-11-11, Duke vs. Michigan St on Emby. The picture skipped at a regular interval from 01:55 to 02:10Z while the admin page said healthy.
What happened
videonorm.reencodebegan re-encoding each segment to the channel's shape.seq N lost 30 of its 150 frames in the re-encode to 1280x720@29.97. That was 92 segments, about 92 s of video.Why
thetvapp's segments are 5 s long with a keyframe every 2 s, so every second segment starts 1 s before a keyframe. Each segment is re-encoded alone, so those first 30 frames cannot be decoded:
non-existing PPS 0 referenced.Reproduced on a live thetvapp channel (Blue Jackets vs. Panthers, 2026-11-11), with the re-encode's settings:
Copied segments are fine, because the player's decoder carries over from the segment before. The loss only happens when a thetvapp stream joins a channel that started on a stream of another shape. A smaller loss of the same look (1 to 3 frames of 91 to 93, 62 + 47 + 37 segments) was logged on this game from 00:57Z, re-encoding to 1280x720@30; its cause was not checked.
Why it read Healthy
dropped_framesonly reaches the channel's video snapshot and the Playing card. Nothing in the grade counts it.Work
Done when a thetvapp stream re-encoded into a channel of another shape loses no frames, and a channel that does lose frames steadily no longer reads Healthy.
Fixed in PR #157 (merge
9d57161), deployed from main atff67045on 2026-11-11 03:09Z.Not seen on a live thetvapp stream yet. The smaller loss noted here (1 to 3 frames a segment at 1280x720@30) was not reproduced; the lead-in covers it if those segments start on a non-IDR keyframe. A segment a player asks for after the buffer dropped it is still re-encoded alone.