home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: SaveBufferAs_MPEG.ifx.post 2.5 (27.02.96)
- * Copyright © 1992-1996 Nova Design, Inc.
- * Written by Thomas Krehbiel
- *
- * Encode an MPEG stream from a series of frames. Uses third-party
- * MPEG encoder software.
- *
- * Inputs:
- * Word(Arg(1),1) = Sequence number
- * Word(Arg(1),2) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- base = 'Autofx_MPEG_'
-
- seq = Word(Arg(1),1)
- framemax = Word(Arg(1),2)
-
- mfile = GETCLIP(base||'File'||seq)
- newpath = GETCLIP(base||'Path'||seq)
- neww = GETCLIP(base||'Width'||seq)
- newh = GETCLIP(base||'Height'||seq)
- xing = GETCLIP(base||'Xing'||seq)
-
- IF RIGHT(newpath,1) ~= ':' THEN newpath = newpath || '/'
-
- opts = ""
- IF xing THEN opts = opts || '-XING'
-
- cli = 'CON:0/0//80/MPEG_Encoder_Output/AUTO/CLOSE/SCREENIMAGEFX.1'
- /*cli = 'ram:mpegoutput'*/
-
- cmd = 'MPEG/mpeg >'cli '-h' neww '-v' newh '-a 1 -b' framemax '-s' mfile opts newpath'mpeg_temp'
-
- ADDRESS COMMAND cmd
- ADDRESS COMMAND 'Delete' newpath'mpeg_temp#? QUIET'
-
- EXIT
-