Timestamp interpretation record
This is a packet-evidence problem, distinct from measuring a visible constant audio offset. PTS tells a player when a decoded picture is presented; DTS concerns the order in which encoded material must be decoded. A file can therefore have packet values that look surprising in a spreadsheet and still present correctly. The useful deliverable is a short report connecting the packet ordering to actual displayed events. AISwapLab does not offer a packet-timestamp repair control; the investigation happens in a local media tool before upload or after download.
Build the evidence
- 01
Export packet timing and retain ordering
The probe command lists PTS, DTS, duration and flags for the chosen moving video stream. Keep rows in the order returned and preserve the complete JSON, not a screenshot sorted by PTS. Sorting can hide the very reordering being investigated. Mark the earliest decode and presentation values separately. Missing timestamps should remain missing rather than being replaced with guessed values.
- 02
Check decoded presentation against the soundtrack
The FFmpeg command decodes the video and logs showinfo while leaving the source untouched. Review its timestamp sequence together with an ordinary-speed playback in a trusted player. Choose a visible clap, contact or clear spoken event that also exists in the sound. Record the actual event difference; do not use a packet's negative decode timestamp as a substitute for that observation.
- 03
Choose a fix only after identifying a presentation fault
If presentation and sound align at early and late events, keep the timing intact and document the packet interpretation. If a real offset exists, follow an offset workflow on a separate copy. If the offset grows, investigate drift instead. Removing negative values indiscriminately can shift a correct relationship, so compare the same event set after any proposed remux or conversion.
A bounded example
Local synthetic scope: a six-second test pattern with a sine track was encoded using FFmpeg 7.1, H.264 and two B-frames, then decoded with showinfo successfully. That test validates the local decode recipe, not a claim that a particular real person's speech is synchronized. The packet-report command remains a documentation example because ffprobe was unavailable. A production report must attach the actual source's packet and event evidence. Retain the original encoded sample with the report, because a screenshot of timestamps cannot reproduce the decoder behavior or reveal a different selected stream.
Local diagnostic commands
The FFmpeg showinfo command was executed successfully on local synthetic media using FFmpeg 7.1. The ffprobe packet query is a documentation example and was not locally executed. No paid generation was performed.
ffprobe -v error -select_streams V:0 -show_packets -show_entries packet=pts_time,dts_time,duration_time,flags -of json source.mp4 > video-packets.json
ffmpeg -hide_banner -i source.mp4 -map 0:V:0 -vf showinfo -an -f null -Timestamp interpretation record
| Evidence | Record | Do not infer |
|---|---|---|
| Packet timing | PTS and DTS separately | Negative DTS alone means bad sync |
| Presentation | Decoded timestamps and player behavior | Packet order is display order |
| Event anchors | Visible/audible difference at two positions | One field proves the whole soundtrack |
Acceptance evidence
- Keep PTS and DTS in different columns with units.
- Retain packet order instead of sorting away reordering.
- Use visible-and-audible anchors to establish a real synchronization problem.
- Compare both ends after changing any timestamp policy.
Stop condition
Stop when no reproducible presentation fault can be found. Do not convert a technically valid file as a ritual. If multiple players disagree on the same complete source, retain the original and provide the packet report, player versions and event timestamps to a media specialist before editing the audio.
