Scheduled wraparound
Use this test to check that a long-running player keeps playing when an MPEG-TS timestamp rolls over. The 33-bit PCR base, PTS and DTS repeat after 2³³ ticks at 90 kHz, or about 26.51 hours (26 h 30 min 44 s). Placing the clock near that boundary lets you exercise the same transition in minutes.
With PCR + PTS/DTS selected, watch playback at two points. At the initial rebase, the receiver may briefly resynchronize to the new clock. At the natural crossing through zero, playback should continue smoothly. Audio should stay aligned with video, and timed KLV should remain associated with the same frames. A freeze, a burst of dropped frames or a roughly 26.5-hour jump in reported playback position at the crossing suggests the player mishandled the rollover.
Schedule a crossing
The filter starts counting when it acquires the selected PCR or PTS. First wrap after defaults to 120 seconds of stream time. In One-shot mode, the filter switch turns off automatically at the crossing. The live stream keeps its timestamp offset so playback can continue through zero. Turn the switch back on to schedule another crossing.
Run the two-minute rollover test
In Live simulation, add Scheduled wraparound and select PCR + PTS/DTS. Set First wrap after (seconds) to 120. At the first PCR, the filter places the 33-bit PCR base 10,800,000 ticks below its wrap point. Two minutes of stream time later, the base crosses zero at the normal clock rate.
Choose Repeat every for repeated crossings. The default 300-second interval rebases at minutes 0, 5 and 10 and produces rollovers at minutes 2, 7 and 12. Enter whole seconds from 1 to 95,443. The repeat interval starts with the first observed rollover and can be shorter than the initial delay. With a 20-second first wrap and a 5-second interval, the crossings occur at 20, 25 and 30 seconds.
Signal discontinuity on rebase defaults to on and marks the first PCR of each new time base. The natural crossing adds no flag. Turning the switch off preserves upstream flags and generates an unannounced rebase. Packet continuity counters retain their input values throughout.
The timestamp targets and program selection also apply here. In program mode the countdown follows PCR. Audio, video and timed metadata cross at their own presentation or decoding points. In PTS/DTS-only mode the selected elementary PID supplies the reference.
Read the countdown
Wrap in 0:10 means ten seconds remain on the reference clock shown beside the countdown. After a one-shot crossing, the status reads Wrapped once. In repeat mode it shows the observed wrap count and the time until the next crossing.
The filter row and live monitor show the time remaining and highlight the last ten seconds. Pausing the input freezes the countdown. An incoming discontinuity flag by itself leaves the schedule running when the PCR continues advancing normally. While the switch is on, changing this filter, leaving bypass, restarting the channel, or receiving a source time-base discontinuity starts a new schedule. A completed one-shot stays off after a channel restart.