SetCodecAttr() seems to change values in the
~/.avirc.
try to change the value of the BitRate (hexadecimal)
in you .avirc an try again.

If you dont want to edit yourself your .avirc
you can do this way: run avicap
menu configure
and change the BitRate attribute of your codec,
and then rerun your utility

Normally, it will work.


 --- Shawn <[EMAIL PROTECTED]> a �crit�: > I have a
utility that uses avifile to perform
> encoding.
> 
> Until recently, this is how I was able to change the
> encoding bitrate (for
> DIV3/4/5/6 codecs)
> 
>       const CodecInfo *codecInfo = CodecInfo::match (
> codec );
>       [...]
>         Creators::SetCodecAttr ( *codecInfo,
> "BitRate", bitrate );       
>       [...]
>       IAviVideoWriteStream *stream =
> avifile->AddVideoStream ( opt_codec, &bh, ( int )
> time_between_frames );
>       stream->Start ( );
> 
> 
> The resulting output with CVS avifile is (assuming I
> pass 800 in as
> bitrate) [relevant excerpt, I think]:
> 
> <Win32 video encoder> : BitRate 800  (910.000000)
> <Win32 video encoder> : W32 Quality 0  KeyFrames: 15
>   BitRate: 800000000
> <Win32 video encoder> : BitRate 800  (800.000000)
> <Win32 video encoder> : W32 Quality 0  KeyFrames: 15
>   BitRate: 800000000
> ...
> <Win32 loader> : Total Unfree 0 bytes cnt 0
> [(nil),0]r second.
> 
> It seems like the bitrate is being set in the codec.
>  But no matter what
> bitrate I pass in for a given codec, I get the same
> size file.  The file
> size differs from codec to codec, but it doesn't
> matter what the bitrate is


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

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

Reply via email to