[Ffmpeg-devel] Seeking with in an MPEGTS

Måns Rullgård mru
Tue Jun 21 15:24:20 CEST 2005

Andy Parkins said:
> Hello,
> I've generated an MPEG transport stream containing an MPEG4 ES using
> libavformat.  When playing back using ffplay, it plays back perfectly until I
> perform a seek.  After that the stream breaks up for a bit, then settles down
> but I start to get lots of error messages from h263.c; for example.

MPEG TS doesn't contain information about key frames, so when you seek you are
likely to end up with some P/B frames before the next I frame.  Nothing to be
worried about.  You could junk the decoder output until the next I frame comes
around.  Look at AVFrame.key_frame.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list