[FFmpeg-devel] How ffplay resolves bad timestamps?

Stas Oskin stas.oskin
Thu Dec 23 00:41:01 CET 2010

> No - I meant within rtpdec. All RTP packets have timestamps, but we can
> only sync them properly when we've got RTCP packets - that's why we
> currently return packets without timestamps up to that point. If we get
> the RTP-Info header, we can use that as reference point to sync all the
> streams together until we get the first RTCP packet. And if we don't get
> RTP-Info either, we could just pretend that we got a RTP-Info packet,
> saying that the first RTP packet we received was the one specified. That
> is, all streams would start off at ts=0, and be resynced properly when we
> get the first RTCP. In one sense, that would be better than not emitting
> timestamps at all for those packets.
Makes sense now, and sounds as a good generic solution.

More information about the ffmpeg-devel mailing list