Hi, On Sat, Aug 7, 2010 at 6:05 PM, Wolfgang Draxinger <[email protected]> wrote: > 1. The framerate and timestamp information are not carried over to the > segmented files. > I guess, I forgot something very simple.
Input packets, i.e. these coming from your demuxer, use the timebase in AVFormatContext->time_base of the demuxer. Output packets, those that you send to the muxer, should use the timebase as set by the muxer in AVFormatContext->time_base of the muxer. These are not necessarily the same. you are responsible for converting. I think that's where your problem is. Check ffmpeg.c for sample code on how to convert timebases without overflows. > 2. Depending on the output file format either av_write_frame or > av_interlaced_write_frame must be used, otherwise it fails. > I suspect that I'm doing something fundamentally wrong. Might be related to the first, I'd work on that and then go from there... Ronald _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
