Nicolas Krieger wrote:
[...]
> So, if I understand good :
> for 2fps :
> video_enc->time_base.num = 100;
> video_enc->time_base.den = 100 * 2;
Looks correct (but I do not know how many codecs support 2fps).
> and if I want 1 frame every 10 seconds :
> video_enc->time_base.num = (int)(frameRate*100.0); //frameRate value is : 10
> video_enc->time_base.den = 100;
Looks correct too, except that "frameRate" here is a bad name
(because it is not a frame rate, but 1/fps). And I do not know
if 1 frame every 10 seconds is supported by any codec...
BTW, why are you multiplying everything by 100? (it is not wrong,
but it looks useless)
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user