Hi,
After checking the list archives finding:
http://prak.org/pipermail/avifile/2001-June/002107.html
and
http://prak.org/pipermail/avifile/2001-August/002549.html
I have code like
OutputCodecID = fccDIV5;
OutputBitRate = 800;
KeyFrames = 9999;
Crispness = 50;
bool CanEncode( const CodecInfo* ci ) {
return ((ci->direction & CodecInfo::Encode) || (ci->direction & CodecInfo::Both));
}
const CodecInfo* getCodecInfo() {
return CodecInfo::match(OutputCodecID, CodecInfo::Video, 0);
}
...
const CodecInfo* ci = getCodecInfo();
if(ci && CanEncode(ci))
{
SetCodecAttr(*ci, "Crispness", Crispness );
SetCodecAttr(*ci, "KeyFrames", KeyFrames );
SetCodecAttr(*ci, "BitRate", OutputBitRate );
int Crisp=0;
int KeyF=0;
int tBR=0;
GetCodecAttr(*ci, "Crispness", Crisp );
GetCodecAttr(*ci, "KeyFrames", KeyF );
GetCodecAttr(*ci, "BitRate", tBR );
}
Which seems to set and get these attributes correctly, though it makes no
difference to the size of the output stream. Surely setting the bitrate
4x larger would increase the output filesize. So I am wondering if
these GetCodecAttr() have implicit dependancies on other avifile code
and one must call GetCodecAttr() only at a specific time in order for
the function to be effective?
-----------------------------------------------------
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile