Hi,

In my program I would like to create timestamps (in milliseconds) for
selected frames, given their frame numbers, e.g. frame 325. The current
formula I use is

long startTime = (long) floor (((double) startFrame / frame_rate) + 0.5;

The question is: how to determine frame_rate. I found two parameters that
are relevant, avg_frame_rate and r_frame_rate.Which one should I use?

Also, is there an easier way, to calculate the timestamps rather than doing
this way?

Thanks!

Cuneyt
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to