VideoFrames

  • Export converts arbitrary Wolfram Language animation objects to a sequence of video frames.

BackgroundBackground

    Sequence of raster image files.
    Commonly used as an intermediary format in video production.

Import and ExportImport and Export

  • Export["file",Manipulate[],"VideoFrames"] exports an animated demonstration of a Manipulate object to a series of raster image files, using the specified file name for constructing a numbered sequence of file names.
  • All exported images will have the same dimensions.
  • Export["file",list,"VideoFrames"] exports a list of images, graphics, or arbitrary expressions, converting each element to an image file.
  • Export infers the image format from the file extension in Export["file.ext",expr,"VideoFrames"].
  • Export can convert Manipulate, Animate, and ListAnimate expressions, as well as lists of images or graphics objects, to a sequence of video frames.
  • The number of frames is determined from the specified frame rate and animation duration.
  • Export["file",expr,{"VideoFrames",elem}] creates image files by treating expr as specifying element elem.
  • Export["file",expr,"VideoFrames",opt1->val1,] exports expr with the specified option elements taken to have the specified values.
  • See the reference page for full general information on Export.

OptionsOptions

  • General Export options:
  • BackgroundWhitecolor of area padded around the expressions or exported animation
    ImageSizeAutomaticpixel dimensions
    "FrameRate"15number of frames shown per second
  • With a setting ImageSize->Automatic, the first frame of the exported object will be rasterized and taken as the size of the resulting image file. Subsequent frames will be padded to match the dimensions of the first frame.
  • All options specific to the exported image format can be given.
  • Additional options are available when exporting Manipulate, Animate, and ListAnimate expressions. See the documentation pages for "SWF" for full information about supported options.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Export a Manipulate object to a sequence of PNG images:

In[1]:=
Click for copyable input
Out[1]=

Capture an image sequence from the connected camera and export it:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)