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

Home » Public Forums » archive » Re: Reading and writing uncompressed AVI
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
Re: Reading and writing uncompressed AVI [message #59582] Wed, 02 April 2008 17:24 Go to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Haje Korth wrote:
> for IDL 7 wouldn't he need the version compile for IDL 6.4 and above?

The 6.3 and later version from Ronn's website will work.


MichaelT wrote:
> In the second case I did not get any error messages, but, as I said,
> zero values are returned for width, height and frame number. So
> nothing else happens. No movie is played.

Where are you trying to play the movie?

You need to break this down step by step. Can you create an avi (full
frames uncompressed, not your Y800 codec)? Can you play it in media
player? Can you read it using testAviGenReader? (I can confirm that
this all works on my machine: IDL 7.0 Windows XP, x86-32.

Once you get the demos working with a common codec, then try your Y800
codec.


-Rick
Re: Reading and writing uncompressed AVI [message #59587 is a reply to message #59582] Wed, 02 April 2008 10:18 Go to previous messageGo to next message
MichaelT is currently offline  MichaelT
Messages: 52
Registered: May 2006
Member
On the download website
http://www.kilvarock.com/freesoftware/dlms/dlms.htm
it says "DLM for reading and writing AVI files IDL6.3 AND LATER ONLY!"
So I assumed it would be ok? Is there a more recent one?

Michael
Re: Reading and writing uncompressed AVI [message #59589 is a reply to message #59587] Wed, 02 April 2008 09:56 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Rick,
for IDL 7 wouldn't he need the version compile for IDL 6.4 and above?

Haje


"Rick Towler" <rick.towler@nomail.noaa.gov> wrote in message
news:ft0a9q$1rl$1@news.nems.noaa.gov...
>
>
>> I have recently tried to read (and write) uncompressed 8bit gray scale
>> AVIs with IDL. I found Kilvarock's aviIDL63.zip and tried it out - but
>> I don't get it to work... Can anybody help me there?
>
> What have you tried? What errors did you get? What version of IDL are
> you running? Does the demo program work?
>
> A little more information will go a long way.
>
> -Rick
Re: Reading and writing uncompressed AVI [message #59590 is a reply to message #59589] Wed, 02 April 2008 09:50 Go to previous messageGo to next message
MichaelT is currently offline  MichaelT
Messages: 52
Registered: May 2006
Member
>
> What have you tried? What errors did you get? What version of IDL are
> you running? Does the demo program work?
>
> A little more information will go a long way.
>
> -Rick

Well, I tried both demo programs:
test8bitAVIGENreader.pro
testavigenreader.pro

The first one returned an error message (red undefined) at the
following line:
tvlct, red, green, blue
Which is understandable(?), as it is a gray scale image. But it could
also mean that the file is not read at all?

In the second case I did not get any error messages, but, as I said,
zero values are returned for width, height and frame number. So
nothing else happens. No movie is played.

All this i tried under IDL 7.0.

Michael
Re: Reading and writing uncompressed AVI [message #59596 is a reply to message #59590] Wed, 02 April 2008 08:55 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
> I have recently tried to read (and write) uncompressed 8bit gray scale
> AVIs with IDL. I found Kilvarock's aviIDL63.zip and tried it out - but
> I don't get it to work... Can anybody help me there?

What have you tried? What errors did you get? What version of IDL are
you running? Does the demo program work?

A little more information will go a long way.

-Rick
Re: Reading and writing uncompressed AVI [message #59700 is a reply to message #59582] Mon, 07 April 2008 02:22 Go to previous message
MichaelT is currently offline  MichaelT
Messages: 52
Registered: May 2006
Member
>
> Where are you trying to play the movie?
So far I just tried to read one. The format of this AVI is full frames
uncompressed, gray scale (that is the Y800-"codec").

> frames uncompressed, not your Y800 codec)? Can you play it in media
> player? Can you read it using testAviGenReader? (I can confirm that
> this all works on my machine: IDL 7.0 Windows XP, x86-32.
The file I want to read is read by the media player, but obviously not
by testAviGenReader. As I mentioned the Program does not issue any
error message when I try to read the AVI but simply says frame number
and dimensions are all zero.

It would be great if you could give me a step by step guide on what to
do, so that I'm sure that I'm doing it correctly.

What I want to do is the following: Read the AVI, track some reference
points in each frame, save a new avi with the aligned frames. As the
AVI is fully uncompressed I can already read all the frames simply by
using point_lun and reading the data as a bytarr. But, writing a new
avi with a different frame size (as I want to cut away all unneeded
pixels), is a different matter. Well, in the end I could simply use my
routine and then write it with testAviGen... Probably one way out.

Many thanks, Michael
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Another Late-Night Cautionary Tale: C() format code case sensitivity!
Next Topic: idl and R

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

Current Time: Wed Oct 08 15:27:41 PDT 2025

Total time taken to generate the page: 0.00651 seconds