Video Creator
Configure and create multibody animation videos
Description
Video Creator is a Mechanics Explorer tool that lets you configure and create videos of
multibody animations. You can modify the video playback speed, frame rate, file format,
and frame size. Click Create to generate a video with the specified
properties. Use the smwritevideo
function for a programmatic
alternative to Video Creator.
Open the Video Creator App
From the Mechanics Explorer menu bar, select Tools > Video Creator. You must simulate the model in order to use Video Creator or
the programmatic equivalent smwritevideo
function.
Parameters
Playback Speed Ratio
— Video playback speed relative to real time
1.0
(default) | .25
| .25
| .5
| 2
| 4
| 8
Video playback speed relative to real time, specified as a positive
number. The video plays faster than real time at values greater than
1
and slower at values smaller than
1
. For example, a ratio of 2
doubles the playback speed while a ratio of 0.5
halves
it.
Frame Rate (FPS)
— Number of video frames per second
30
(default) | 16
| 24
| 60
Number of video frames per second of playback time, specified as a positive integer. Larger frame rates result in smoother video playback time but also larger file sizes.
Video Format
— Video file format
Motion JPEG AVI
(default) | Archival
Archival | Motion JPEG 2000
| MPEG-4
| Uncompressed AVI
File format to save the video in. The dropdown list provides various formats to select from, including compressed and uncompressed formats.
Frame Size
— Video frame width and height
auto
(default) | [400 400]
| [800 600]
| [1280 720]
| [1920 1080]
Video frame width and height, specified in pixel units as the two-element
row vector [Width Height]. The frame dimensions must be positive integers.
For example, the vector [800 400] sets the video frame dimensions to 800
pixels in width and 400 pixels in height. To use the current dimensions of
the active visualization tile in Mechanics Explorer, select
auto
.
Version History
Introduced in R2016b