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

Home » Public Forums » archive » MPEG Movies from IDL
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
MPEG Movies from IDL [message #3591] Thu, 16 February 1995 11:34 Go to next message
franz is currently offline  franz
Messages: 3
Registered: February 1995
Junior Member
I would like to make some animation sequences available on the WWW. Does
anyone have an IDL program to write MPEG files?

Thanks,

Bryan Franz
Re: MPEG movies [message #7480 is a reply to message #3591] Sat, 16 November 1996 00:00 Go to previous message
Christian Soeller is currently offline  Christian Soeller
Messages: 46
Registered: August 1996
Member
"A. Scott Denning" <scott@abyss.atmos.colostate.edu> writes:

> The idl program would be identical. The only differences would be in
> regard to the changes in the use of mpeg_encode (which is a freeware
> utility) on DOS vs Unix.
I guess you also have to change the code that uses Unix shell commands.

In using Scott's program I came across some minor problems which I hope to
have fixed in a slightly modified version (see diff output):
The shell syntax that tests for existance of TMPDIR is csh style. I changed
it to sh style and called SPAWN with the /SH flag to make it run under most
unixes (for other platforms someone has to write an OS if-clause). The syntax
of the INPUT line in the parameter file for mpeg_encode seems to have changed,
at least it choked on my machine (running IRIX 6.2). It should work now with
the current mpeg_encode version (v1.5b). Finally, a switch to delete the
temporary filetree after completion has been added.

diff (1) output:

1c1
< PRO WRITE_MPEG, mpegFileName, image_array
---
> PRO WRITE_MPEG, mpegFileName, image_array, delaft=delaft
15c15
< SPAWN, 'if (-d ' + TMPDIR + ') echo "exists"', result
---
> SPAWN, 'if test -d ' + TMPDIR + '; then echo "exists"; fi', result, /SH
41c41,42
< PRINTF, unit, '`ls *.ppm`'
---
> PRINTF, unit, 'frame.*.ppm ['+string(FORMAT=formatString,0) + $
> '-' + string(FORMAT=formatString,nFrames-1) + ']'
55a57,59
>
> IF KEYWORD_SET(delaft) then $
> SPAWN, 'rm -r ' + TMPDIR

Best regards,

Christian

------------------------------------------------------------ --------
Christian Soeller mailto: csoelle@sghms.ac.uk
St. Georges Hospital Medical School Dept. of Pharmacology
Cranmer Terrace London SW17 0RE
Re: MPEG movies [message #7488 is a reply to message #3591] Fri, 15 November 1996 00:00 Go to previous message
A. Scott Denning is currently offline  A. Scott Denning
Messages: 5
Registered: July 1996
Junior Member
TOP member wrote:
>
> The other day there was a question about how to generate MPEGs on a Unix. Does
> anyone know a simular program in IDL for a windows95 based platform?

The idl program would be identical. The only differences would be in
regard to the changes in the use of mpeg_encode (which is a freeware
utility) on DOS vs Unix.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MPEG movies
Next Topic: Ctrl-D

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

Current Time: Fri Oct 10 11:44:52 PDT 2025

Total time taken to generate the page: 1.52578 seconds