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.
is->updator(); // draw the frame
const AVRational &a = is->pCodecCtx->time_base;
int elapsed = clock.restart(); // elapsed milliseconds
int spf = (1000000000 * a.num) / (double) a.den;
if (!time2die)
QThread::usleep((spf - elapsed)/1000); // microsecond sleep
Full version: http://pastebin.com/f3cac2c04
Can anyone see what I'm doing wrong?
Thank you
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user