Hey, Thanks for the great lib. It's real cool to be able to decode video and make cool applications :)
Currently I have 1 thread decoding and some videos display too fast. I have 1 FLV video > mencoder Royksopp-RemindMe.flv -ovc lavc -nosound -o remind.avi The AVI plays fine, but the FLV far too fast. This is my delay code inside the decoding loop once a videos frame has been fully decoded. updator(); // draw the frame int elapsed = clock.restart(); // elapsed milliseconds int spf = 1000 * pCodecCtx->ticks_per_frame * AV_TIME_BASE * av_q2d(pCodecCtx->time_base); QThread::usleep((spf - elapsed)/1000); // microsecond sleep Full version: http://pastebin.com/f208ec9d3 Can anyone see what I'm doing wrong? Thank you _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
