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

Home » Public Forums » archive » Re: MOVIES USING MPEG_PUT
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: MOVIES USING MPEG_PUT [message #13729 is a reply to message #13713] Thu, 03 December 1998 00:00 Go to previous message
Richard is currently offline  Richard
Messages: 6
Registered: June 1994
Junior Member
The mpeg_put with IDL 5.1 has a small bug. If the movie you are creating is
taking the images from a graphics window, then the movie is generated in
black and white, since the mpeg_put routine uses a TVRD command to grab the
graphics window image and does not include the 'true' keyword.

I modified the existing mpeg_put routine (which resides in the IDL library
directory) as shown in the extract below. This will work only
in colour. You could make it more robust if you wish by using keywords in
the call to the function.
I would suggest taking care when modifying library routines, since one could
create a mess. I modified the routine as
shown, added my changes to the comment section, and saved the procedure as
mympeg_put in a different directory.

Modified code extract: (with acknowledgment to mpeg_put author):
;; If the window is a GR1 window
oldWin = !D.WINDOW
WSET, window
myImage = TVRD(/true) ; this is the line that is
modified. (/true) added
WSET, oldWin
endelse

IDL 5.2 seems to have fixed this problem. According to the documentation,
IDL 5.2 should have a far better version of mpeg handling as well.

Richard

Acknowledgements to all authors and people implied here. I accept no
responsibility for modifications you do, which are at your own risk.
Other usual disclaimers apply.


Mark C. wrote in message <3665ff6d.0@news.cadvision.com>...
> I have use the MPEG_PUT and the associated commands to make '.mpg' movie
> files in IDL5.1, Window NT platform. The '.mpg' movie files came out black
&
> white instead of color when viewed with movie viewers (e.g Windows Media
> Player). Questions:
>
> 1) Has any one found a way/fix to the MPEG_PUT problem I described? RSI
said
> there is a bug in the routine and is looking into it. I need a quick fix.
>
> 2) Is there a better/easier method generating movie files in IDL or non-IDL
> packages.
>
> Please email me if you have any suggestion to the above.
>
> Thanks in advance,
> Mark C.
> mychan@petro-canada.ca
>
>
[Message index]
 
Read Message
Read Message
Previous Topic: Important information regarding IDL 5.2, Microsoft Windows NT, and Service Pack 4
Next Topic: GRIB viewer/decoder

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

Current Time: Wed Dec 03 13:25:01 PST 2025

Total time taken to generate the page: 3.91013 seconds