comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: avi writing ? (xsize)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: avi writing ? (xsize) [message #40017 is a reply to message #40010] Tue, 06 July 2004 15:33 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
R.G. Stockwell wrote:
> "Mark Hadfield" <m.hadfield@niwa.co.nz> wrote in message news:cc9t5r$2vg$1@newsreader.mailgate.org...
>
>> R.G. Stockwell wrote:
>
> ...
>
>>> What are the valid xsizes for building AVIs?
>>
>> It depends on the codec. Many require that both dimensions be multiples
>> of 2, some require multiples of 4. The latter works for all codecs I
>> have tried (and I have tried quite a few).
>>
>>
>> --
>> Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
>> m.hadfield@niwa.co.nz
>> National Institute for Water and Atmospheric Research (NIWA)
>
>
> Thanks Mark,
> i'll run some code to verify the factor of 4 in size, and it
> should be easy enough to code around. After I had seen that
> it was not a factor of 2 that was the problem, I hadn't thought
> that 4 would be the factor. I was guessing that is only came in
> typical screen sizes or something like that.

I believe it's mostly to do with the requirements of the compression
algorithm. These algorithms use mathematical techniques like discrete
cosine transform that tend to work in blocks of 2^n, where n is some
small integer.

You can see the requirements of each of the codecs installed on your
system with VirtualDub, a free AVI-writing program:

http://www.virtualdub.org/

Go to the "Select video compression" dialogue and scroll through.

After writing the reply above, I did just this and noticed that one of
the codecs that I've installed requires the width and height to be
multiples of 8. But the codec in question (ASLC) probably isn't on your
system. The one you're most likely to have trouble with is DivX, for
which width must be a multiple of 4 and height a multiple of 2.


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: blank window pops up after exit xmovie
Next Topic: Re: blank window pops up after exit xmovie

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:41:26 PDT 2025

Total time taken to generate the page: 0.71428 seconds