Hello Julia,

Monday, October 22, 2001, 5:30:27 AM, you wrote:


JW> I want to use the divx4linux codec to encode stuff to divx.

JW> At the moment I'm using something like:

JW> IVideoEncoder::SetExtendedAttr(fccDIV3, 
JW>                                "BitRate", 
JW>                                3000);

JW> avifile then uses the .DLL's to encode. What do I have to change to use
JW> divx4linux codec (I assume 
JW> that divx4linux is faster & newer version)?

The syntax you use is from old version of avifile. With 0.6 it is
more complicated process, you'll do something like this:

#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());

-- 
Best regards,
 Eugene                            mailto:[EMAIL PROTECTED]



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

Reply via email to