snake98 19 Posted 44 minutes ago Posted 44 minutes ago Setup: Emby Server 4.10.2.0 on Windows 11 x64, Intel QuickSync. HDHomeRun FLEX 4K. Client: Emby for Samsung 2.3.6 (also seen on other clients). Bundled ffmpeg 5.1-emby_2023_06_25_p6. Channel: a local ATSC 1.0 station (MPEG-2 720p59.94, AC-3 5.1 + AC-3 mono), straight from the HDHomeRun. Problem: every 15-60 minutes this station's stream has a timestamp glitch. PTS/DTS on one or more streams jump forward about +1454 seconds, then jump back by the same amount 1-2 seconds later. Sometimes only the audio jumps, sometimes only the video. The glitch is in the raw stream from the tuner: I recorded it twice directly from the HDHomeRun (clips linked below). When this happens, Emby's picture freezes and never recovers. The client has to stop and restart playback. The transcode log shows ffmpeg treating the jump as real elapsed time. It duplicates tens of thousands of frames to fill the "gap", output time then stays stuck at the jumped-to value, and every real frame after the jump-back is dropped: 14:38:52.669 [mpegts @ ...] DTS 4255607181 < 4386465461 out of order 14:38:52.675 More than 1000 frames duplicated ... 14:40:14.721 frame=101508 time=00:28:13.71 dup=87153 drop=0 14:40:15.220 frame=101508 time=00:28:13.71 dup=87153 drop=157 14:40:23.240 frame=101508 time=00:28:13.71 dup=87153 drop=2601 (4386465461 - 4255607181 = 130,858,280 ticks = about 1454 s at 90 kHz.) I found the same pattern in 7 transcode logs in one day, always about +1454 s. Expected: a one-off jump of more than a few seconds that immediately reverses should be treated as a discontinuity, not elapsed time. Options: - in the live TV path, resync/rebase timestamps on a large forward jump, or drop the outlier packets; - or have the live-stream watchdog restart the transcode when output time stops advancing while input is still arriving. Workaround: I route the channel through an external ffmpeg remux with a setts bitstream filter that clamps any DTS step larger than 5 s to the previous step. Emby then plays the channel normally. Attached / linked: - Raw TS captures from the tuner around both jumps (+1454.036 s on audio; +1454.023 s on video), with notes: [link] - Transcode log excerpt: command line, streams, the jump, and the frozen dup/drop counters (attached) emby-log-26.1-freeze-excerpt.txt jump1-audio-20261126-1603.ts jump2-video-20261126-1620.ts
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now