Importing & Exporting Video
The Wolfram Language supports importing from and exporting to a large number of multimedia containers and codecs. Together with the complete stacks for image and audio processing, this opens up video processing from simple processing to highly sophisticated analysis.
A video file can be imported into the Wolfram Language as a Video object for further processing and analysis. Different parts of the data or metadata stored in video files are directly accessible via import elements.
import video files as a Video object
import video frames, audio, etc. from a video file
import a remote video as a Video object
Import a video file as a Video object:
Supported video formats include "AVI", "Matroska", "MP4", "Ogg" and "QuickTime". Import also tries to import other video files using the catch-all format "VideoFormat".
Each media container can store data using several different encodings. Codec support varies from one platform to another.
supported video decoders
supported audio decoders
supported subtitle decoders
Video objects, animations or lists of image frames can be exported to video files with or without audio data.
export a Video object to a video file
export a list of images to a video file
export video with audio to a video file
Animations and lists of frames can be combined with Audio objects when exported to a video file.
Supported video formats are "AVI", "Matroska", "MP4", "Ogg" and "QuickTime". Each media container can store data using several different encodings. The support for codecs varies from one platform to another.
Supported video containers in Export:
supported video encoders
supported audio encoders
supported subtitle encoders
The Wolfram Language by default uses the operating system as well as a limited version of FFmpeg for decoding and encoding video files.
Install FFmpeg Version 4.0.0 or higher to get a more complete codec support. See the following for platform-specific instructions.
On Windows, build FFmpeg with shared linking from http://ffmpeg.org, install, and add the directory containing ffmpeg.exe to the PATH environment variable.