[FFmpeg-devel] PTS for H.264 in MPEG-TS: should be delayed?

Kieran Kunhya kierank at ob-encoder.com
Tue Aug 21 20:13:50 CEST 2012

> If I were to add one frame delay to all PTS values, then everything becomes
> valid and logic. Are these files invalid, or is the MPEG-TS demuxer
> forgetting to add the delay to the PTS value?

The file is out-of-spec - i.e the kind of rubbish that is common on
these HTTP streaming services.
I would suspect playback devices would use heuristics on the stream to
generate better timestamps.

More information about the ffmpeg-devel mailing list