Re: MPEG movies [message #7480 is a reply to message #3591] |
Sat, 16 November 1996 00:00   |
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
|
|
|