[FFmpeg-user] clock gap in ffmpeg

jose at netlab.tkk.fi jose at netlab.tkk.fi
Fri May 27 18:55:21 CEST 2011


We are using ffmpeg from VLC for doing transcoding and it seems that
ffmpeg gets stuck.

Snippet from the log
2011-05-18 00:24:53 [0x1021970] main input warning: clock gap, unexpected
stream discontinuity
0x1021970] main input warning: feeding synchro with a new reference point
trying to recover from clock gap
2011-05-18 13:16:20 mb incr damaged
2011-05-18 13:16:20 [0x7fab300343e0] avcodec encoder warning: almost fed
libavcodec with a frame in the past (current: 1695556067861, last:

It seems that this 'almost fed libavcodec..' error at VLC comes from
modules/codec/avcodec/encoder.c:907 check, iirc in libav/ffmpeg didn't
like if pts-values weren't monotonic.

We could  comment out that if clause in code and recompile that module but
it might not be good idea as it is doing this timing check.

Could you indicate what might be the reason for this problem and what
could be the solution?

More information about the ffmpeg-user mailing list