2008/8/8, Luca Abeni <[EMAIL PROTECTED]>:
>
> Nicolas Krieger wrote:
> [...]
>
> > This is how I do :
> >
> > AVCodecContext *video_enc;
> > ...
> > video_enc->time_base.num = (int)(frameRate*100.0); //frameRate value is :
> 2
> > video_enc->time_base.den = 100;
> > ...
> >
> > Is it correct ?
>
>
> I have the impression you are exchanging numerator and denominator in the
> time base (time_base = 2 => 0.5fps).
>

So, if I understand good :
for 2fps :
video_enc->time_base.num = 100;
video_enc->time_base.den = 100 * 2;


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;

Is it right ?

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

Reply via email to