MP4Options object

The MP4Options object is used to store values and attributes to be used in generating MP4 animations. The MP4Options object has no constructor. Abaqus creates the mp4Options member when the animation module is imported.

This page discusses:

Access

import animation
session.mp4Options

setValues(...)

This method modifies the MP4Options object.

Required arguments

None.

Optional arguments

compressionQuality

An Int specifying the quality of the compression as a percentage. The default is 75.

codecOptions

A String specifying the codec implementation. Possible values are "mpeg4" and, if an appropriate FFmpeg installation can be found that supports it, "libx264." The default is "libx264" when available.

sizeDefinition

A SymbolicConstant specifying how the width and height of the image are specified. Possible values are SIZE_ON_SCREEN and USER_DEFINED. The default value is SIZE_ON_SCREEN.

imageSize

A pair of Ints specifying the width and height of the image in pixels when sizeDefinition=USER_DEFINED. Possible values are Ints in the range (minWidth, minHeight) ≤ (width, height) ≤ (maxWidth, maxHeight). The default value is the screen size.

Note: The values of the minimum width (minWidth) and height (minHeight) depend on the following:
  • viewport font size,

  • whether decorations are printed,

  • decoration size, and

  • screen resolution.

The minimum width and height are normally < 50 pixels. The values of the maximum width (maxWidth) and height (maxHeight) depend on the graphics capabilities of the system. The maximum width and height will be at least as large as the screen dimensions.

Return value

None.

Exceptions

None.

Members

The MP4Options object has members with the same names and descriptions as the arguments to the setValues method.