Repository navigation
Conversation
When playback stalled on a burned-in HLS stream, the log said only "POST /api/seek 200" and "segment 602 took over 60 s". That left out where a seek went, whether a pause came from the CLI/panel or from the TV itself, and whether ffmpeg was still encoding the segment. - play/pause/seek log the target and the position they were sent at - each change of the TV's transport state is logged once, with the position and whether a command from here preceded it - a segment timeout says how long ffmpeg has been on it and how much it wrote; an ffmpeg killed at its 120 s limit reports its stderr Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A burned-in HLS stream stalled on my TV about an hour into a film. The log had only these two lines to go on:
That left three questions open: where the seek went, whether a pause came from the CLI/panel or from the TV itself, and whether ffmpeg was still working on the segment or had never started it.
What changes
Log lines only; no behaviour change.
seek to 1:00:00 (was at 1:00:11).TV PAUSED_PLAYBACK at 1:00:11 (on the TV)or(after pause from here). "From here" means a command was sent within three poll intervals.TimeoutExpired.Testing
python3 -m unittest discover -s tests -t .: 166 of 169 pass. The 3 failures are intests.test_cli.InstallTestand fail the same way on unpatchedmainhere, because my checkout is under~/Desktop.Noticed, not changed
Hls.segment()waits 60 s for a segment whileHls.encode()lets ffmpeg run for 120 s. In the stall above the request gave up while ffmpeg kept running on that segment for another minute. Happy to follow up separately if you want those aligned.🤖 Generated with Claude Code