news
About Elegant Chaos
info
About me and my friends
people
Software from Elegant Chaos
software
Other stuff...
stuff

TakeTwo

This XCMD allows you to edit QuickTime movies, and in particular to create new movies by combining other movies and sound resources.

TakeTwo XCMD. Version 1.0d10, by Sam Deane. Copyright ©1994 ULTRALAB. Compiled 16:53:38, 28/04/94. Debugging code included.


[last exit to hypercard] [externals index] [download TakeTwo]

Description

The TakeTwo command provides access to some of QuickTime's Movie Toolbox routines, allowing you to edit QuickTime movies.

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...).


Commands

create

This command creates a new, empty movie file. The syntax for the command is

   TakeTwo create,<path>

The <path> parameter contains the name and/or path of the new file.

insert

This command inserts one or more movies into another movie. The syntax is:

   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.

duration

This command returns the duration (in 60th of a second) of a movie. The syntax is:

   TakeTwo duration,<path>

dub

This command adds a sound resource on to the movie as an extra track. The syntax is:

   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.

selection

This command returns the current selection of a movie file.

The syntax is:

   TakeTwo selection,<path>

flatten

  TakeTwo flatten,<path>

The <path> parameter contains the name and/or path of the movie file to flatten.

open

close


[last exit to hypercard] [externals index] [download TakeTwo]

This page was created automatically, on 25/03/1999 from version 3.0d4 of Last Exit To Hypercard.