On Mon, Aug 27, 2001 at 06:20:22AM -0700, Eugene Kuznetsov wrote:
> Hello monkeyiq,
> 
> Sunday, August 26, 2001, 10:53:33 AM, you wrote:
> 
> 
> m> Hi,
> m>   I noticed that in the vector of video_codecs I have installed
> m> many codecs that can handle the same fourcc.
> m> And cant seem to find a AddVideoStream() style function that allows
> m> me to give the CodecInfo object instead of a fourcc. 
> 
> m> Any ideas?
> 
> I think it is not possible to do programmatically. ATM you can only
> create video stream using default codec for this fourcc. In almost all
> cases it's not causing any problems: many fourccs are shared by
> different codecs for _decoding_, but usually there's only one codec
> that's able to _encode_ into that fourcc.

Actually wrong answer here:

IVideoEncoder* CreateVideoEncoder(fourcc_t compressor, 
                                  const BITMAPINFOHEADER& bh,
                                  const char* cname)

cname  is used as the second key for resolving  which codec you really want
to use - but I think may even change in the future slightly as
soon as we will start to support order lists of 'preffered codecs'
(actualy those list will be used for everything practicaly - decodeders,
video/audio/subtitle renderers - but it will take some time)
So for now you may fass exact code name -
it's compared with  strcmp()  - its the content of  text attribute.

So avirecompress could pick the right compressor.

If cname is null - list is scanned in the order - which will be probably
prefferd way later - as if the first preffered codec fail - it will
fallback to next one in the list.

-- 
         Debian GNU/Linux maintainer - www.debian.{org,cz}
 Zdenek Kabelac  http://i.am/kabi/ kabi@{i.am, debian.org, fi.muni.cz}
          Resistance is futile. You all will be packaged

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

Reply via email to