news |
info |
people |
software |
stuff |
TakeTwo XCMD. Version 1.0d10, by Sam Deane. Copyright ©1994 ULTRALAB. Compiled 16:53:38, 28/04/94. Debugging code included.
It was written to address a specific need: a command to create a new movie by glueing together some existing movies, and then adding an extra sound track to the result.
In addition to solving this problem it also has other commands which may be of use in other circumstances.
Errors are returned if QuickTime is not installed, or if one of the QuickTime routines encounters a problem.
In general the errors from QuickTime routines are just reported back directly as OS errors. In these cases XStatus will be "OS Error", and XError will contain the error number (as returned by the routine), and the action that was being carried out when the error occured.
In the future I may attempt to filter out the most common OS errors, and interpret them with more user friendly messages (ie file not found...).
TakeTwo create,<path>
The <path> parameter contains the name and/or path of the new file.
TakeTwo insert,<path>,<paths>
The <path> parameter is the path of the target movie file. The <paths> parameter is a comma delimited list of source movies.
The source movies are inserted into the target movie, overwriting its current selection. After the insertion the selection of the target movie is left at the end of the inserted section.
TakeTwo duration,<path>
TakeTwo dub,<path>,<snd>
The <path> parameter is the path of the movie file to add to. The <snd> parameter is the name or id of a 'snd ' resource, which should be somewhere in the resource path of the stack.
The sound is added at the beginning of the movie, and runs in parallel with any other sound tracks. If it is longer than the movie, the movie's length will be extended automatically.
The syntax is:
TakeTwo selection,<path>
TakeTwo flatten,<path>
The <path> parameter contains the name and/or path of the movie file to flatten.