Hello monkeyiq,

Sunday, August 26, 2001, 8:34:59 AM, you wrote:

m> Hi,
m>   After checking the list archives finding:
m> http://prak.org/pipermail/avifile/2001-June/002107.html
m> and
m> http://prak.org/pipermail/avifile/2001-August/002549.html

m> I have code like

m>   OutputCodecID = fccDIV5;
m>   OutputBitRate = 800;
m>   KeyFrames     = 9999;
m>   Crispness     = 50;

m>   bool CanEncode( const CodecInfo* ci ) {
m>     return ((ci->direction & CodecInfo::Encode) || (ci->direction & 
CodecInfo::Both));
m>   }
  
m>   const CodecInfo* getCodecInfo() {
m>     return CodecInfo::match(OutputCodecID, CodecInfo::Video, 0);
m>   }

m> ...

m>             const CodecInfo* ci = getCodecInfo();
            
m>             if(ci && CanEncode(ci))
m>             {
m>                     SetCodecAttr(*ci, "Crispness", Crispness );
m>                     SetCodecAttr(*ci, "KeyFrames", KeyFrames );
m>                     SetCodecAttr(*ci, "BitRate",   OutputBitRate );

m>                         int Crisp=0;
m>                         int KeyF=0;
m>                         int tBR=0;
m>                         GetCodecAttr(*ci, "Crispness", Crisp );
m>                         GetCodecAttr(*ci, "KeyFrames", KeyF );
m>                         GetCodecAttr(*ci, "BitRate", tBR );
m>              }

m> Which seems to set and get these attributes correctly, though it makes no
m> difference to the size of the output stream. Surely setting the bitrate 
m> 4x larger would increase the output filesize. So I am wondering if 
m> these GetCodecAttr() have implicit dependancies on other avifile code 
m> and one must call GetCodecAttr() only at a specific time in order for
m> the function to be effective?

You are setting parameters correctly, but none of them are actually
implemented for DIV5. Try to use DIV3 or DIV4 instead, they should
work.

-- 
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