2008/8/8, Luca Abeni <[EMAIL PROTECTED]>: > > 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)
Ok, thanks. I thought that "frameRate" was a bad name, but I'm just upgrading the progam, I did not write the first version and did not decide of the variables names... I was also wondering about the fact of multiplying everything by 100, and I discovered that "frameRate" value for 1 frame every 10 seconds is 0.1. And as time_base.num is an integer... Maybe I should have done a "revolution" in the progam, but I thought it was faster to patch. I think I was wrong... Nicolas _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
