Not sure if its relevant but I came across a comment in the vlc code saying they needed to correct the timestamps before calling avcodec_encode_video. See EncodeVideo video function encoder.c It may give you something to go on Matt
2009/6/16 Martin Cyr <[email protected]> > Hi, > > > > I'm trying to generate content for a MPEG-TS stream, but there seems to be > issues with timestamping (I'm guessing). Using libavformat/output-example.c > to generate MPEG-TS, the resulting file can't be played with VLC, it > displays one frame and hiccups with the rest complaining about late > pictures > and PTS out of range. Media Player Classic seems more resilient as it plays > fine and a proprietary device plays most of the file, but few frames get > dropped regularly. > > > > Does MPEG-TS need special care that output-example doesn't handle properly? > If so, could anyone point me towards a good starting point? > > > > Here is some of what I think are relevant parts of the VLC debug log. Whole > file is attached for further reference. > > > > main warning: dts != current_pts (-95442650700) > > main warning: decoder synchro warning: pts != current_date (95443677688) > > main warning: vout warning: early picture skipped (95442628700) > > main warning: late picture skipped (329988) > > . > > main warning: PTS is out of range (2125709), dropping buffer > > main warning: PTS is out of range (2099577), dropping buffer > > main warning: PTS is out of range (2073455), dropping buffer > > . > > > > Regards. > > > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > -- Gee Broadcast Systems Telephone: +44 1256 810123 Web: www.geebroadcast.co.uk _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
