此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)
Import/Export 导入/导出 格式

QuickTime (.mov, .qt)

Registered MIME type: video/quicktime
Apple QuickTime file format.
Multimedia container format.
Commonly used for archiving and exchanging video content.
Stores audio and video content in a format suitable for synchronous playback.
Binary format.
Supports a variety of audio and video codecs as well as uncompressed video frames.
Introduced in 1991 by Apple.
  • Import supports QuickTime Version 7 and earlier.
  • Import["file.mov"] imports an QuickTime file and returns a list of raster graphics
  • Import["file.mov", elem] imports the specified element from a QuickTime file.
  • Import["file.mov", {elem, suba, subb, ...}] imports a subelement.
  • Import["file.mov", {{elem1, elem2, ...}}] imports multiple elements.
  • The import format can be specified with Import["file", "QuickTime"] or Import["file", {"QuickTime", elem, ...}].
  • See the reference pages for full general information on Import.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Animation"animated QuickTime represented as an animation object
"Data"array of raw bitmap data for each frame
"GraphicsList"frames of an animated QuickTime as a list of graphics
  • Import by default uses "GraphicsList" for the QuickTime format.
  • Accessing individual frames:
"Frames"list of integers used to reference individual frames
"Frames",nthe n^(th) frame
  • Meta-information elements available for Import:
"Background"background color shown in transparent image regions
"BitDepth"bits used to represent each color channel in the file
"ColorSpace"color encoding used in the file
"Duration"animation length in seconds
"FrameCount"number of frames in the file
"FrameRate"number of frames to be displayed per second
"ImageSize"raster dimensions
"VideoEncoding"video codec used in the file
Show the Import elements available in a QuickTime sample file:
In[1]:=
Click for copyable input
Out[1]=
Import meta-information elements:
In[2]:=
Click for copyable input
Out[2]=
This gives a list of integer indices which can be used to reference individual frames:
In[3]:=
Click for copyable input
Out[3]=
Import the first and the last frame:
In[4]:=
Click for copyable input
Out[4]=
Import the entire QuickTime file as an animation:
In[5]:=
Click for copyable input
Out[5]=