Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Wolfram Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • System Modeler
  • Wolfram Player
  • Finance Platform
  • Wolfram Engine
  • Enterprise Private Cloud
  • Application Server
  • Wolfram|Alpha Notebook Edition
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

WolframConsulting.com

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Wolfram Notebook Assistant + LLM Kit
    • System Modeler
    • Wolfram Player
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Wolfram Engine
    • Enterprise Private Cloud
    • Application Server
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
VideoFormat (.wmv, .mpeg, .3gp, ...)
  • See Also
    • Import
    • CloudImport

    • Formats
    • MP4
    • QuickTime
    • AVI
    • Ogg
    • Matroska
  • Related Guides
    • Video Processing
    • Importing & Exporting
    • Listing of All Formats
    • Multimedia Formats
    • Web Formats
    • See Also
      • Import
      • CloudImport

      • Formats
      • MP4
      • QuickTime
      • AVI
      • Ogg
      • Matroska
    • Related Guides
      • Video Processing
      • Importing & Exporting
      • Listing of All Formats
      • Multimedia Formats
      • Web Formats
IMPORT/EXPORT FORMAT
  • See Also
    • Import
    • CloudImport

    • Formats
    • MP4
    • QuickTime
    • AVI
    • Ogg
    • Matroska
  • Related Guides
    • Video Processing
    • Importing & Exporting
    • Listing of All Formats
    • Multimedia Formats
    • Web Formats
    • See Also
      • Import
      • CloudImport

      • Formats
      • MP4
      • QuickTime
      • AVI
      • Ogg
      • Matroska
    • Related Guides
      • Video Processing
      • Importing & Exporting
      • Listing of All Formats
      • Multimedia Formats
      • Web Formats

VideoFormat (.wmv, .mpeg, .3gp, ...)

  • Import tries to import several video formats including those with extensions: .264, .265, .3g2, .3gp, .asf, .avr, .avs, .cdxl, .dnxhd, .dnxhr, .dpx, .dtm, .dv, .f4v, .gxf, .h261, .h263, .h264, .h265, .h26l, .hevc, .ismv, .ivf, .ivr, .m15, .m1v, .m2t, .m2ts, .mj2, .mjpeg, .mjpg, .mod, .mpeg, .mpg, .mts, .mvi, .nut, .qcif, .rm, .roq, .ser, .ts, .ty, .ty+, .v210, .vc1, .viv, .vob, .wmv, .wtv, .xaf, .xmv, .y4m, .yuv, .yuv10.

Background & Context

    • MIME types: video/3gpp, video/H264, video/x-ms-asf, …
    • Multimedia container formats.
    • Supports a variety of video and audio codecs.

Import

  • Import["file.ext"] imports a video file and returns a Video object.
  • Import["file.ext",elem] imports the specified element from a video file.
  • The import format can be specified with Import["file","VideoFormat"] or Import["file",{"VideoFormat",elem,…}].
  • See the following reference pages for full general information:
  • Importimport from a file
    CloudImportimport from a cloud object
    ImportStringimport from a string
    ImportByteArrayimport from a byte array

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Summary"summary of the file
    "Rules"list of rules for all available elements
  • Video representation elements:
  • "ImageList"frames represented as a list of images
    "Video"video file represented as a Video object
    "VideoData"array of raw bitmap data for each frame
    "VideoStream"a handle to the video file as a VideoStream object
  • Import by default uses the "Video" element.
  • A video file may contain multiple video, audio or subtitle tracks. Elements that return the number of tracks:
  • "AudioTrackCount"number of audio tracks
    "SubtitleTrackCount"number of subtitle tracks
    "VideoTrackCount"number of video tracks
  • Video metadata elements:
  • "BitDepth"bits used to represent each color channel in the file
    "ColorSpace"color encoding used in the file
    "FrameCount"number of frames in the file
    "FrameDurations"list of display durations given for each frame
    "FrameRate"number of frames to be displayed per second
    "RasterSize"raster dimensions
    "VideoEncoding"video codec used in the file
  • Audio related elements:
  • "Audio"in-core Audio object
    "AudioChannels"number of audio channels
    "AudioData"array of audio samples
    "AudioEncoding"audio codec used in the file
    "AudioFile"out-of-core Audio object
    "BitRate"number of bits per second
    "SampleRate"number of audio samples per second
  • Subtitle-related elements:
  • "RawSubtitle"subtitle data imported as a raw string
    "SubtitleRules"returned as a list of styled text in the form of {int1text1,int2text2,…}
    "SubtitleString"returned as a single string of concatenated subtitle texts
    "SubtitleStringRules"returned as a list of plaintext in the form of {int1string1,int2string2,…}
    "SubtitleEncoding"subtitle codec used in the file
  • Additional metadata elements:
  • "ExactDurations"an association of exact durations for all video, audio and subtitle tracks
    "ExactTimeBoundaries"an association of exact start and end times for all video, audio and subtitle tracks
    "Duration"approximate duration of the video given in seconds
    "MetaInformation"metadata interpreted as quantities, locations, dates, numbers, etc.
    "RawMetaInformation"uninterpreted metadata as strings and numbers
    "Summary"summary of the file
    "TrackStartTimes"an association of start times for each track
  • $VideoDecoders and $AudioDecoders give a list of decoders available on your computer system.

Options

  • General Import options:
  • AudioTrackSelection1audio tracks of interest
    "ImageTopOrientation"Automaticorientation of the video as stored in the file
    RasterSizeAutomaticraster dimensions
    SubtitleTrackSelection1subtitle tracks of interest
    VideoTrackSelection1video tracks of interest
  • Import options for the "Audio" element:
  • "AudioChannels"Automaticnumber of audio channels
    SampleRateAutomaticsamples per second for each channel

Examples

open all close all

Basic Examples  (2)

Import a file as a Video object:

Import a summary of a video file:

Scope  (3)

Import a list of video frames:

Import and convert FLV files, which requires a full FFmpeg installation:

Convert to "MP4":

Import the first 10 seconds of audio data:

Import Elements  (33)

Download a TS File  (1)

Download a TS file:

Available Elements  (1)

List of available elements:

Video Elements  (3)

"Video"  (1)

Import as a Video object:

This is the default import element:

"VideoData"  (1)

Import video data corresponding to specified frames:

Convert video data stored in a NumericArray object to an image:

"VideoStream"  (1)

Import as a VideoStream object:

Play the video stream:

Get the current frame from the stream:

Number of Tracks  (3)

"AudioTrackCount"  (1)

Import the number of audio tracks:

"SubtitleTrackCount"  (1)

Import the number of subtitle tracks:

"VideoTrackCount"  (1)

Import the number of video tracks:

Metadata Elements  (7)

"Duration"  (2)

Import approximate duration of the video:

To import exact track durations, use the "ExactDurations" element:

"ExactDurations"  (2)

Import exact track durations:

Import approximate duration of the video:

Computing an approximate duration is typically much faster than exact durations:

"MetaInformation"  (1)

Import metadata from a video file:

"RawMetaInformation"  (1)

Import unprocessed metadata from a video file:

"Summary"  (1)

Import a summary of a video file:

Video Tracks  (7)

"BitDepth"  (1)

Import the bit depth:

"ColorSpace"  (1)

Import the color space:

"FrameCount"  (1)

Import the number of video frames:

"FrameDurations"  (1)

Import the duration of selected video frames:

QuantityArray is returned when durations of all video frames are requested:

"FrameRate"  (1)

Import video frame rate:

"RasterSize"  (1)

Import raster size of video frames:

"VideoEncoding"  (1)

Import video codec:

Supported decoders on each platform can be extracted using $VideoDecoders:

Audio Tracks  (6)

"Audio"  (1)

Import Audio from a video file:

"AudioChannels"  (1)

Import the number of audio channels:

"AudioData"  (1)

Import audio data from a video file as a NumericArray:

Convert audio data stored to an Audio object:

"AudioEncoding"  (1)

Import audio encoding:

Available audio decoders can be extracted from $AudioDecoders:

"BitRate"  (1)

Get the bit rate of an audio track:

"SampleRate"  (1)

Get the sample rate of an audio track:

Subtitle Tracks  (5)

"RawSubtitle"  (1)

Get raw subtitles from a video file:

"SubtitleEncoding"  (1)

Import subtitle encoding:

Available subtitle encodings can be extracted using $SubtitleDecoders:

"SubtitleRules"  (1)

Get subtitles as a list of styled text:

"SubtitleString"  (1)

Get subtitles as a single string:

"SubtitleStringRules"  (1)

Get subtitles as a list of plaintext:

Import Options  (8)

Download a TS File  (1)

Download a TS file:

"AudioChannels"  (1)

By default, all audio channels are imported:

Import the second channel only:

AudioTrackSelection  (1)

By default, Import extracts data only from the first audio track:

Use the AudioTrackSelection option to extract data from specified audio tracks:

"ImageTopOrientation"  (1)

By default, video frames are imported with the native orientation stored in the file:

Specify the side that is supposed to be on the top:

RasterSize  (1)

By default, video frames are imported in their native size:

Specify the raster size of each video frame:

SampleRate  (1)

By default, video frames are imported in their native size:

Specify the sample rate of the imported sound:

SubtitleTrackSelection  (1)

By default, Import extracts data only from the first subtitle track:

Use the SubtitleTrackSelection option to extract data from specified subtitle tracks:

VideoTrackSelection  (1)

By default, Import extracts data only from the first video track:

Use the VideoTrackSelection option to extract data from specified video tracks:

See Also

Import  CloudImport

Formats: MP4  QuickTime  AVI  Ogg  Matroska

Related Guides

    ▪
  • Video Processing
  • ▪
  • Importing & Exporting
  • ▪
  • Listing of All Formats
  • ▪
  • Multimedia Formats
  • ▪
  • Web Formats

History

Introduced in 2020 (12.1) | Updated in 2020 (12.2) ▪ 2021 (12.3) ▪ 2024 (14.0)

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Player
  • Wolfram Engine

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2025 Wolfram
© 2025 Wolfram | Legal & Privacy Policy |
English