Hello Pierre,
Sunday, May 06, 2001, 1:59:33 AM, you wrote:
PH> On Sunday 06 May 2001 10:05, you wrote:
>> Hello Pierre,
>>
>> Saturday, May 05, 2001, 2:41:55 AM, you wrote:
>>
>> PH> Hello,
>>
>> PH> My question is about keyframes in files created with avifile. I'd like
>> to PH> know how to change the frequency of theses keyframes.
>> PH> Currently I see two way to do this :
>> PH> - calling HRESULT IAviVideoWriteStream::SetKeyFrame(int frequency);
>> PH> - changing codecs attributes (not all codecs, but divx for example)
>>
>> PH> Unfortunately I didn't see any changes in the created file, whatever
>> method I PH> used. There is always one keyframe for 100 frames and this
>> "default" value PH> don't fit my need.
>>
>> I do believe that keyframe frequency can be changed through codec
>> attributes for div3 & div4 and using SetKeyFrame() for all other
>> codecs. If it does not work for you, it is a bug. I'll see if it's
>> really so. What codec are you using?
>>
>> --
>> Best regards,
>> Eugene
PH> Hello Eugene,
PH> I'm currently using div3 et div4 (almost exclusively). I tried to change the
PH> codec attribute "KeyFrames", giving it all sort of values, like 1, 2, 3, 20,
PH> 50, 250 etc but nothing changes.
PH> In fact there is a strange thing to notice : a few weeks ago giving a value
PH> to this attribute made avifile immediately crash and I was forced to remove
PH> the ~/.registry file to erase the value for "KeyFrames". Now I don't
PH> encounter the problem anymore (avifile don't crash whatever value I give for
PH> "KeyFrames") but it seem's that others have had the same trouble recently.
The problem is confirmed. Please try these files ( libwin32.cpp goes
into plugins/libwin32 and others into plugins/libwin32/videocodec ).
--
Best regards,
Eugene
mailto:[EMAIL PROTECTED] or [EMAIL PROTECTED]
[Team GADGET] [Team Two Divided By Zero] [Team Hackzone.ru]
libwin32.cpp
VideoCodec.cpp
VideoCodec.h
VideoEncoder.cpp