FRAMEFIELDOpen the video merger

Do Negative Decode Timestamps Mean a Merged MP4 Is Broken?

A negative initial decode timestamp alone is not proof of a broken merge. Check presentation timestamps and decode the complete file before changing timing. Our controlled B-frame join decoded all 96 frames in the expected order despite starting with negative DTS.

Explore Clipy’s online video tools (affiliate link)

Use merge videos online for your clips, then check the exported file when a timestamp inspector raises a concern. This is a local FFmpeg diagnostic, not a benchmark of that browser tool.

Measured B-frame join

On November 25, 2026, we generated two silent H.264 clips with FFmpeg 6.1.1: red then blue, each 160 by 90 pixels, 24 fps, and two seconds long. Both used libx264 with two B frames allowed and a 48-frame keyframe interval. Each input decoded to 48 frames. We joined them with the concat demuxer and stream copy, then inspected packet timing separately from decoded frame checksums.

The output contained 96 packets and decoded to 96 frames. Its packet timebase was 1/12288 second. The first three decode timestamps were -1024, -512, and 0 ticks; their corresponding presentation timestamps were 0, 1536, and 512 ticks. Thus the first packet had DTS -0.083333 second but PTS zero. Reading packets in file order did not produce ascending presentation timestamps.

Packet order       1       2       3
DTS ticks       -1024    -512       0
PTS ticks           0    1536     512
Timebase: one tick = 1/12288 second
Measured output packet rows: decoding order and display time are different columns.

We also decoded each source separately and concatenated those two checksum lists in red-then-blue order. Every entry matched the merged file's decoded checksum list. In this test, negative starting DTS and non-sorted packet PTS coexisted with the expected complete decoded sequence. We did not shift the timestamps or re-encode to obtain that match.

This deliberately simple color test isolates timing and sequence. It contains no audio and no moving subject, so it does not establish lip sync, motion quality, or compatibility with every player. It supports the narrower conclusion that the observed initial negative DTS did not remove or change a decoded frame in this run.

Repeat the check

Download the reproduction script and complete measured rows. From the repository root, run node outputs/content-operations/20261125-daily/reproduce.cjs; set the script's FFmpeg path for your installation. It generates the inputs, writes packet and decoded-frame logs, and compares the decoded sequence.

For your own export, inspect both PTS and DTS, decode the whole video, and watch the cut. B frames can require decoding ahead of display. If frames are missing, decoding errors occur, or playback jumps, investigate those symptoms rather than treating the sign of DTS as a diagnosis.