Get FFMPEG library version string.
Returns the version of the wrapped FFMPEG library as a string. The version is returned as "Major.Minor.Patch".
Get FFMPEG library version string.
See also: VideoOpen SetDebugMode GetErrorMessage
Export video frames into a series of image files.
movieFile | Movie file name. |
imgFilePattern | Pattern for image output files. Must contain a printf like integer format specifier. |
args | List of key-value pairs specifying export configuration options and its values. |
Export video frames into a series of image files.
Option keys:
-start <int>
Start frame. Default: First video frame.
-end <int>
End frame. Default: Last video frame.
See also: VideoImport
Generate a video by importing a series of image files.
imgFilePattern | Pattern for image output files. Must contain a printf like integer format specifier. |
movieFile | Movie file name. |
args | List of key-value pairs specifying import configuration options and its values. |
Generate a video by importing a series of image files.
Option keys:
-start <int>
Start frame. Default: First video frame.
-end <int>
End frame. Default: Last video frame.
-fps <int>
Frames per second. Default: 25.
-bitrate <float>
Bitrate in MBit per second. Default: 4.0.
-flip <bool>
Flip images. Default: false.
-verbose <bool>
Print verbose messages. Default: false.
See also: VideoExport
constructor | Constructor for the class |
destructor | Destructor for the class |
FromByteArray | Create a Vector from a binary string. |
FromPhoto | |
Get | |
ToByteArray | Copy a Vector into a binary string. |
ToPhoto |
numBytes |
Create a Vector from a binary string.
str | Binary string. |
Create a Vector from a binary string.
Create a new Vector from given binary string "str".
See also: ToByteArray
phImg | |
numChans | |
scale | |
offset |
Copy a Vector into a binary string.
numBytes | int |
srcOff | (optional, default 0) int |
destOff | (optional, default 0) int |
Copy a Vector into a binary string.
Copy "numBytes" elements into a Tcl binary string and return that string. "srcOff" and "destOff" may be used optionally to specify an offset into the source and the destination.
See also: FromByteArray
phImg | |
width | |
height | |
numChans | (optional, default 3) |
linesAreBottomUp | (optional, default 0) |
Close | Close a video stream. |
constructor | Constructor for the class |
Create | Create a new empty video file. |
destructor | Destructor for the class |
GetDuration | Get video duration information as a dict. |
GetDurationAsString | Get video duration information as a string. |
GetErrorMessage | Get the last error message issued by MAWT. |
GetFramerate | |
GetHeight | Get the height of a video stream. |
GetImage | Get an image from a video stream. |
GetNextImage | Get next image from a video stream. |
GetNumFrames | |
GetWidth | Get the width of a video stream. |
IsOpen | |
Lock | Lock a video stream. |
Open | Open a video file. |
SetDebugMode | Enable or disable the debug mode of the MAWT library. |
Start | Start acquisition of a video stream. |
Stop | Stop acquisition of a video stream. |
Unlock | Unlock a video stream. |
WriteNextImage | Get next image from a video stream. |
fileName | |
mode | |
args | Additional options. |
Close a video stream.
Close a video stream.
See also: Open
Create a new empty video file.
fileName | Create the video stream in file "fileName". |
width | |
height | |
fps | |
bitrate |
Create a new empty video file.
Throws an error, if the file could not be openend.
See also: Close
Get video duration information as a dict.
Get video duration information as a dict.
Get the duration of current video stream. The duration is returned as a dictionary with the keys: "minutes", "seconds", "frames".
See also: GetDurationAsString
Get video duration information as a string.
Get video duration information as a string.
Get the duration of current video stream. The duration is returned as a string in the following format: "minutes:seconds.frames".
See also: GetDuration
Get the last error message issued by MAWT.
Get the last error message issued by MAWT.
See also: Open SetDebugMode
Get the height of a video stream.
Returns the height of a video stream in pixels.
Get the height of a video stream.
Get an image from a video stream.
img | A Vector of appropriate size to store the image data. |
flip | Boolean value to specify image flipping. |
num | Image number as integer value starting at zero. |
Get an image from a video stream.
Get image "num" from current video stream. The image will be stored in variable "img". "img" must point to a buffer of appropriate size. If "flip" is set to 1, the image is returned in bottom-up scanline order as needed by OpenGL. If "flip" is set to 0, the image is returned in top-down scanline order as needed by the img::raw extension.
Throws an error, if the image could not be retrieved from the video stream.
See also: Open GetNextImage GetWidth GetHeight
Get next image from a video stream.
img | A Vector of appropriate size to store the image data. |
flip | Boolean value to specify image flipping. |
Get next image from a video stream.
Get the next image from current video stream. The image will be stored in variable "img". "img" must point to a buffer of appropriate size. If "flip" is set to 1, the image is returned in bottom-up scanline order as needed by OpenGL. If "flip" is set to 0, the image is returned in top-down scanline order as needed by the img::raw extension.
Throws an error, if the image could not be retrieved from the video stream.
See also: Open Close GetImage GetWidth GetHeight
Get the width of a video stream.
Returns the width of a video stream in pixels.
Get the width of a video stream.
Lock a video stream.
Lock a video stream.
Open a video file.
fileName | Open the video stream stored in file "fileName". |
Open a video file.
If a video stream is already open, it is closed before opening the new video stream.
Throws an error, if the file could not be openend.
Enable or disable the debug mode of the MAWT library.
onOff | Boolean value to enable or disable the debug mode. |
Enable or disable the debug mode of the MAWT library.
See also: VideoOpen
Start acquisition of a video stream.
width | (optional, default -1) integer |
height | (optional, default -1) integer |
Returns the number of bytes needed for a video frame. If the video could not be started, an error is thrown.
Start acquisition of a video stream.
Start acquisition of current video stream. If "width" and "height" are specified and greater than zero, stretch the video to that size. Otherwise the video is played in it's original size.
Stop acquisition of a video stream.
Stop acquisition of a video stream.
Unlock a video stream.
Unlock a video stream.
Get next image from a video stream.
img | A Vector containing the image data. |
flip | Boolean value to specify image flipping. |
Get next image from a video stream.
Get the next image from current video stream. The image will be stored in variable "img". "img" must point to a buffer of appropriate size. If "flip" is set to 1, the image is returned in bottom-up scanline order as needed by OpenGL. If "flip" is set to 0, the image is returned in top-down scanline order as needed by the img::raw extension.
Throws an error, if the image could not be written to the video stream.