Stas Oskin wrote:
[...]
> I tried to implement this formula, but it didn't work. When I used
> av_rescale_q(pkt.dts, st->time_base, AV_TIME_BASE_Q) to calculate the
> time to wait, I got a very high value - 66667, which when basically a
> minute and 6 seconds.
> 
> When I checked the variables, the dts was 6000, time_base was {num=1,
> den=90000}, and AV_TIME_BASE_Q was {num=1, den=1000000}.

6000 / 90000 * 1000000 = 66666us, about 66.6ms
I guess you are encoding at 15fps?

> The next dts was already twice then the previous one, about 12,000.

So, the next sending time is about 133333us (133.3ms), which makes
sense if you are sending 15 frames per second.


                                Luca
_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to