A Matroska block’s timestamp is relative to its cluster, and it is signed. To place the first frame on the media timeline, combine that relative value with the cluster origin and apply the relevant scales. Reading the relative number as an absolute playback time can turn a valid block into an apparent backward jump.
Calculate a negative offset
Use an illustrative cluster timestamp of 2000, a block timestamp of minus 20, the default TrackTimestampScale of one and TimestampScale of 1,000,000 nanoseconds. The unadjusted block position is (2000 − 20) × 1,000,000 nanoseconds: 1.98 seconds. Minus 20 does not mean the programme began before its timeline or that the video should play backward.
Preserve each unit
RFC 9559 distinguishes Segment Ticks, Track Ticks and direct nanosecond values. TrackTimestampScale participates in the relative block contribution; CodecDelay, where set, is subtracted in nanoseconds after the scaled timestamp calculation. An inspection tool needs these fields together. Applying TimestampScale a second time to a value already expressed in nanoseconds creates another unit error.
Compare the resulting sequence
Expand a few adjacent blocks from the same track and compare their calculated positions with the intended presentation. Their physical order and display order need not be inferred from a signed offset alone. If a parser reports a jump, preserve the cluster origin, block value and track identity that produced it. A screenshot showing only the negative number removes the information needed to evaluate the result.
Use the calculation as a bounded check
A media maintainer can verify this mapping without claiming that every encoded sample is valid. A correct timestamp calculation still leaves codec dependencies and actual presentation behavior to investigate. Viewers can report the repeatable content position while support examines a redacted metadata sample. The practical outcome is a correctly located block and a clear distinction between a normal signed relative timestamp, a unit-conversion mistake and a genuinely inconsistent media timeline.
