[FFmpeg-devel] [PATCH] flv muxer timestamp fix

Baptiste Coudurier baptiste.coudurier
Fri Jan 28 21:02:22 CET 2011

On 01/28/2011 04:54 AM, Benjamin Larsson wrote:
> When streaming flv's with ffserver there is a timestamp jump in the
> beginning of the stream caused by the timestamp in the header to always
> start at 0. This patch fixes this by measuring between the current and
> previous timestamp and if it is to large it biases the timestamp so they
> are offset by a constant and thus removing the jump in timestamp.

Delaying the header and waiting for the first timestamps to come seems 
more appropriate than this hack.

I'm not sure I understand what the problem is. Can you please elaborate 
? Is flash player behaving in a weird way ?

Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list