Hello Rainer,

Wednesday, October 24, 2001, 1:42:58 PM, you wrote:


>> #include <creators.h>
>> 
>> const CodecInfo* ci=0;
>> while(1)
>> {
>>         ci=CodecInfo::match(fccDIVX, CodecInfo::Video, ci);
>>         if(!ci)
>>                 break;
>>         /* here you make sure if this is the right codec by e.g.
>>         checking ci->GetName() */
>>         /* here you try to start encoding with this codec. This step
>>         is needed because CodecInfo::match will return something if
>>         e.g. Windows DLL for this codec is missing or defective */
>> }
>> Creators::SetCodecAttr(*ci, "BitRate", 780000); // bits/second
>> IVideoEncoder* pEnc=Creators::CreateVideoEncoder(fccDIVX, m_bh, ci->GetName());



RLiued> and how can I set the linux codec with the IAviWriteFile::AddVideoStream 
RLiued> method?

That's a good question; I've added the function you need, now you can
do as above and then add video stream with
virtual IAviVideoWriteStream* IAviWriteFile::AddVideoStream(const CodecInfo& ci,
                                                    BITMAPINFOHEADER* srchdr, 
                                                    int frame_rate, 
                                                    int flags = 0)          

where all parameters are the same, but it uses CodecInfo& instead of
fourcc.

-- 
Best regards,
 Eugene
mailto:[EMAIL PROTECTED] or [EMAIL PROTECTED]
[Team GADGET]  [Team Two Divided By Zero]



_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to