Re: Reading and writing uncompressed AVI [message #59582] |
Wed, 02 April 2008 17:24  |
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 #59590 is a reply to message #59589] |
Wed, 02 April 2008 09:50   |
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 #59700 is a reply to message #59582] |
Mon, 07 April 2008 02:22  |
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
|
|
|