Please someone tell me how to calculate the seconds per frame delay after i've calculated a frame. At the moment I do,
// in milliseconds int spf = 1000 * pCodecCtx->ticks_per_frame * av_q2d(pCodecCtx->time_base); msdelay(spf - elapsed); But it only works with some videos! The problem is time_base is weird in some videos MKV 1001 / 48000 bob AVI 1 / 30000 obsel AVI 1 / 25 remind AVI 1 / 30 bolt AVI 125 / 2997 mpg 1 / 30 flv 1 / 1000 In this list only MKV and bolt AVI plays fine. The others are super fast. ticks_per_frame is always 1. Please tell me what I'm doing wrong!! _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
