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

Home » Public Forums » archive » IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2? [message #52118] Sun, 07 January 2007 12:55 Go to next message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
Hello,

I've been using idl2avi.dlm and lately the new IDLtoAVIGENERATOR.dlm
quite a few times and it all gives me satisfactory results. Recently I
need to make avi output under windows with some random size, say
258x349, not 128x128,256x256 as usual. The program runs smoothly and
generates avi output. However, when I open avi with windows media
player, the frames are like skewed by 30 to 60 degrees and sometimes
the color is also screwed up. When I force the program to feed 256x256
images, it works fine. It seems to be codec independent and
reproducible in different machines. Also it does not matter if it is
generated with 8bits or 24 bits. My guess in the title may not be
completely true since I did not try all possible combinations of
dimensions. The example testAVIgenerator works with its default size
300x400, but not some other size 258x349. But strangely 300x400 does
not work in my program. I also had good luck with size of 512x[some
random dimension smaller than 512] or [some random dimension smaller
than 512]x512. I am totally lost here. Am I the only one who has this
problem? Can someone help me understand this?

Many thanks!
BP
Re: IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2? [message #52197 is a reply to message #52118] Sun, 14 January 2007 20:19 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> I'll think about it.
>
> I'm afraid I'm becoming steadily more curmudgeonly with age. About all
> I can manage these days on the topic of movie formats is "Harrumph, use
> AVI format with the Microsoft Video 1 codec, you ignorant pup."

Well, it's more than I've got. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2? [message #52198 is a reply to message #52118] Sun, 14 January 2007 20:08 Go to previous message
badjelly.witch is currently offline  badjelly.witch
Messages: 27
Registered: May 2006
Junior Member
David Fanning wrote:
> Mark Hadfield writes:
> I was thinking about updating my IDL Movie page into something a
> bit more sensible:
>
> http://www.dfanning.com/tips/howmovie.html
>
> But I realize it would be more of the blind leading the blind.
> I need someone to do it who knows more about it.
>
> Wait, Mark! YOU know something about it. Why don't YOU
> write this page? :-)

I'll think about it.

I'm afraid I'm becoming steadily more curmudgeonly with age. About all
I can manage these days on the topic of movie formats is "Harrumph, use
AVI format with the Microsoft Video 1 codec, you ignorant pup."
Re: IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2? [message #52224 is a reply to message #52118] Wed, 10 January 2007 19:45 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.200f283cd0a8de19989e78@news.frii.com>,
David Fanning <news@dfanning.com> wrote:

> I was thinking about updating my IDL Movie page into something a
> bit more sensible:
>
> http://www.dfanning.com/tips/howmovie.html

I expanded the Mac movies page

http://idl.tamu.edu/mactips/movies.php

and there are a couple of tools that work on multiple platforms.

If anyone has other suggestions, please send them to me.

Cheers, Ken
Re: IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2? [message #52226 is a reply to message #52118] Wed, 10 January 2007 15:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> Where can I get IDLtoAVIGENERATOR?

Ronn's page. This is just the IDLtoAVI souped up for IDL 6.3. :-)

I downloaded this the other day because I get asked about it
so often I thought it might be nice to know a little something
about what I was talking about. I found it very confusing.

Codecs, smodecs. How the hell to I know!?

I was thinking about updating my IDL Movie page into something a
bit more sensible:

http://www.dfanning.com/tips/howmovie.html

But I realize it would be more of the blind leading the blind.
I need someone to do it who knows more about it.

Wait, Mark! YOU know something about it. Why don't YOU
write this page? :-)

Cheers,

David

P.S. I'd ask Rick to do it, but I asked him a simple question
about codecs and I got back a 10 page treatise that was mostly
indecipherable by me. It was all he could get together before
he went on holiday. All of I could think was that if I had to
understand that stuff for a living, I would need a holiday, too. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: save image from ENVI to TIFF file
Next Topic: Draw an ellipsoid without orb + scale method

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

Current Time: Wed Oct 08 15:57:26 PDT 2025

Total time taken to generate the page: 0.12076 seconds