Using ComposerLite in batch mode

You can also use ComposerLite in batch mode. This lets you composite scripts without using the main console's display, or composite scripts in the background or overnight.

If you are using ComposerLite in batch mode, the format of the command is:

composer -x [ options ] [ frame ... ] script
The script is the name of the composition script file that you want to composite. It must be specified.

The frame is optional. Any number can be specified. If one or more frames are specified, then only those frames are composited.

If you wish, you can also include options in the command, as described in "Command-line options" on page 366.

When compositing a script in batch mode, no images are saved if you have not defined video or global image file output. This is true even if you have FileOut events. For batch mode, use the -image option to make sure your frames are composited and saved.

Command-line options

This section describes the command-line options for ComposerLite, in alphabetical order.

-bg color This option specifies the color of the background of all menus. The choices for color are found in /usr/lib/X11/rgb.txt. It is valid only in interactive mode.

-check_filein This option checks the resolution of each image file in a sequence before using them. Use this option if the resolution changes from frame to frame in the same event. (Without this option, ComposerLite checks only the first image in each FileIn event and assumes the same resolution for subsequent images in the event.)
-demo This option starts ComposerLite in demonstration mode. In this mode, you can't execute, save, or export compositions.
-disk size This option specifies the maximum disk space to be used for storing intermediate images.
-dso This option prints information about the DSO plug-ins that ComposerLite is using when you start it. This is useful if ComposerLite is not recognizing a DSO.
-el length This option sets the edit length for video recording. The length is that of each video edit. For example, to record a sequence on two's, use an edit length of two (-el 2) and a frame increment of two (-fi 2). The default edit length is one frame. This option is valid only in batch mode (using the -x option).

-english events When Composer uses non-English menus, you can create event names in English or the specified language. This choice is retained from session to session. Use this option to create event names from the English equivalent of the event name. This option is applicable in interactive mode only.

-event name This option causes only the event name to be composited and recorded to video or disk as specified. This option can be specified only once. By default, all events are composited. This option is valid only in batch mode (using the -x option).

-f frame This option tells ComposerLite to composite only a single frame. (It is the same as specifying -fs and -fe with the same value.) The frame can be specified either as a frame or as timecode. This option is valid only in batch mode (using the -x option).

-fe frame This option defines the last frame to be composited. The frame can be specified either as a frame or as timecode. In either case, specify it relative to frame 0. The default value is the last frame in which any event is defined. This option is valid only in batch mode (using the -x option).
-fg color This option specifies the hue of the foreground color of all menus, which is normally the text color. The choices for color are found in /usr/lib/X11/rgb.txt. This option is valid only in interactive mode.

-fi increment This option specifies the frame increment. For example, if -fi 3 is specified, only every third frame is composited. The default value is one, or every frame. This option is valid only in batch mode (using the -x option).

-fpo script_file This option specifies a frame procedure to be executed after compositing, but before output to file or video. After each frame has been composited, but before it is recorded to a disk file or video, the script_file procedure is called. This procedure must be an executable binary or shell script. Four parameters are passed to this procedure. The first is the current frame as offset by the VTR offset. The second is the same value, but formatted in timecode. The third is the number of consecutive frames for which the current image is used. The fourth is the name of the file written (if any).

-fpp script_file This option specifies a frame procedure to be executed before compositing. Before each frame is composited, the procedure script_file is called. The procedure must be an executable binary or shell script. Two parameters are passed to this procedure. The first is the current frame as offset by the VTR offset. The second is the same value, but formatted in timecode.

-fps script_file This option specifies a script file to be executed after compositing and after outputting to file or video. See the -fpp option.
-frame This option tells ComposerLite to format its information messages and text fields containing times as frames. This option can be used in either interactive or batch mode.

-fs frame This option defines the first frame to be composited. The frame can be specified as a frame or in timecode. In either case, specify it relative to frame 0. The default value is 0. This option is valid only in batch mode (using the -x option).

-geometry widthxheight+xoff+yoff This option specifies a preferred size and location for ComposerLite's main window. For example:

composer -geometry 1024x768+100+200

makes a 1024 by 768 window with an origin at (100,200). See your X/Motif documentation for more information.

-help This option displays ComposerLite's command-line options.
-image The -image option specifies that images are to be generated even when the -nofile and -novideo options are specified. This may be required when you use FileOut to generate an output file, to ensure that all the events are executed. (The -nofile option suppresses the global image file output mechanism only.)
-in point This option specifies the first frame to be composited. The point can be as a frame or in timecode. In either case, it is assumed that point has been offset by the VTR Offset specified in the Video > Control panel. The default value is the VTR Offset in the Video > Control panel, which is where the first frame of the timeline is recorded. This option is valid only in batch mode (using the -x option).

-insert This option changes the interpretation of the frames specified on the command line after the options. Normally, those frames are relative to frame 0. If this option is included, it is assumed that those numbers have been offset by the VTR Offset defined in the Video dialog box. This option is ignored if no VTR device has been defined. This option is valid only in batch mode (using the -x option).

-job number This option sets the job number to be number. This is stored in every image (.rla) file generated by ComposerLite. This option is valid only in batch mode (using the -x option).

-keep number
-keep eventname This option specifies that images are to be retained when tiling. (For more information, see "-tile number" on page 372 and "Using tiling" on page 364. Some images are created, used immediately, and discarded. Other images may be used many times. For example, a Bars image is created once and used for each frame of the Bars sequence.

When tiling, images are not kept, even if they might be used again as in the Bars example. The -keep option keeps such images so that they do not have to be regenerated each time they are needed.

You may choose to use the -keep option for images that you know take a long time to compute, or will be reused many times. For example, a Morph image takes much longer to compute than a Fade image, so you may want to keep your Morph images.

-keep number specifies that any image which is needed at least number times is retained rather than be regenerated each time it is referenced. The -keep number option can be specified only once because it affects all events.

Additionally, you can specify that the images associated with a particular event are kept if they will be used more than once.

-keep eventname specifies the name of the event for which you want to keep the images. The -keep eventname option can be specified once for each event which is to be kept.

This option is valid only in batch mode (using the -x option) and when tiling has been specified.

-lines bottom top This option limits ComposerLite to compositing images from the line specified by bottom to the line specified by top. This does not affect the resolution of the images. For example, to render the bottom 1000 lines of 3K x 3K images, enter: composer -x -lines 0 999 composition

-local events When Composer uses non-English menus, you can create event names in English or the specified language. This choice is retained from session to session. Use this option to create event names from the local language version of the event name. This option is valid only in interactive mode.

-log file This option tells ComposerLite to save all information messages about the progress of compositing into file. You can look at this file to determine which frames were successfully composited. (The standard log file, accessed using composer_log, is always updated, regardless of specifying this option.) This option is valid only in batch mode (using the -x option).

-matte If images are being recorded to video, this option causes the matte component of the final image to be recorded instead of the RGB color components. This option is valid only in batch mode (using the -x option).

-mem sizeK
-mem sizeM This option specifies the maximum amount of memory to be used for storing intermediate images. The size can be specified either in kilobytes (specify K) or megabytes (specify M). By default, approximately 50% of the available physical memory space is used. This option can be used in either interactive or batch mode.

-mem nowait By default, ComposerLite uses memory as it is needed, up to the limit specified. This option indicates that the amount of memory for images is to be pre-allocated as soon as ComposerLite starts, to guarantee that it is available when it is required. This option is valid only in batch mode (using the -x option).

-NH This option suppresses the display of the banner and copyright notice. It can be used in either interactive or batch mode.
-nofile This option prevents composited images from being saved to disk, overriding the fact that a global output file may have been specified. This option is valid only in batch mode (using the -x option).
-nokeep This option prevents intermediate composited images from being saved in either memory or disk. Normally, these intermediate composited images are saved in memory if they are going to be used more than once. If there is insufficient memory to save these images, they are instead saved on disk until they are used. If you do not save these intermediate images, your compositing process spends less time saving images to disk but more time regenerating images that it has previously composited. We recommend using this option only if you have a small amount of memory in your computer or you notice that the process seems to spend a lot of time swapping. You may need to experiment to determine whether using this option actually improves performance for your situation.

This option is valid only in batch mode (using the -x option).

-nolink When Composer recognizes that consecutive output images are identical, it creates multiple links to the same file to save disk space. This option overrides that behavior, creating unique files for all final images, even if they identical. This option is valid only in batch mode (using the -x option).

-notape This option prevents composited images from being recorded to video, overriding the fact that a VTR may have been specified. Images may still be displayed on the video frame buffer, however, depending on the type of video frame buffer specified. This option is valid only in batch mode (using the -x option).

-novideo This option prevents composited images from being recorded to video, overriding the fact that a VTR may have been specified. Unlike -notape, this also prevents images from being displayed in the frame buffer. This option is valid only in batch mode (using the -x option).

-offset value This option overrides the VTR offset set in the Video > Control panel by the specified value.
-out point This option specifies the last frame to be composited. The point can be specified as a frame or in timecode. In either case, it is assumed that point has been offset by the VTR Offset set in the Video > Control panel. The default value is the place on the videotape where the last frame of all events would be inserted, as measured from the VTR Offset. This option is valid only in batch mode (using the -x option).

-pprefs This is the print preferences option. If you specify this option when you invoke ComposerLite, ComposerLite's default convolve filter kernels, reduce reference palettes, image filename syntaxes, and other configurations are saved to your preferences (composerrc) file when you exit.
-ptb This is the print toolbar option. If you specify this option when you invoke ComposerLite,ComposerLite's default toolbars and toolboxes are saved to your preferences (composerrc) file when you exit, provided that you have not defined custom toolbars or toolboxes.
-r multiplier [multiplier] This option specifies the resolution multiplier. The multiplier must be between 0.0 and 1.0. When specified, all images are scaled by this factor. If this is not specified, a value of 1.0 is used. You can specify one or two multipliers. If two are specified, the first multiplier is applied to the X dimension and the second to the Y dimension.

This option does not perform any filtering, but merely drops or adds pixels to decrease or increase the resolution.

This option is valid only in batch mode (using the -x option).

-region left bottom right top
Composite the region of the image defined by left, bottom, right, top. This option is only available from the command line.
-ro This read-only option allows only new files to be written, protecting existing files that you open.
-quality whole | bilinear | bicubic This option overrides the Quality settings on any event with global quality support. These events include: Stabilize, DeStabilize, Move2D, Move3D, Scale, Rotate, Twirl, MotionMatch, and CornerPin.You can also control the global quality in the Execute panel.
-stop This option causes ComposerLite to stop whenever an error occurs. Normally, the frame that contains the error is skipped and remaining frames are still composited. This option overrides that behavior. This option is valid only in batch mode (using the -x option).

-tile number
-tile numberM This option specifies the size of a tile. Use -tile number to specify a number of scanlines. Use -tile numberM to specify a number of megabytes. For information on tiling, see "Using tiling" on page 364. This option is valid only in batch mode (using the -x option).

Tip: The best way to determine the value for number is to run gr_osview and time your frames as you evaluate how much swapping is occurring. If there is a lot of swapping, use a lower number. The goal is to decrease swap and therefore execution time.

-timecode This option specifies that all messages should display time as timecode (and not as a frame number). This overrides the setting in your preferences (composerrc) file.
-v This option displays information messages about the progress of the compositing operation. This option can be used in either interactive or batch mode.

-V or -version Either option causes ComposerLite to display its version number and exit.
-w This option suppresses the display of all warning messages.
-x This option causes ComposerLite to operate in batch mode.
-z This option records the Z-depth component of the final image instead of the RGB color components, if images are being recorded to video.
This option is valid only in batch mode (using the -x option).




aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.