Audio and Video Data
Read or write video or audio files, and record and play audio using your system's input and output devices.
Read or write video files by creating video objects. The video object contains information about the video file and enables you to read, analyze, and write video data.
Read or write audio data from files into arrays using the audio read and write functions.
Record or play audio files in with your system's input (microphone) and output devices (speakers) by using the audio recorder and player objects.
Live Editor Tasks
Import Data | Import data from a file in the Live Editor (Since R2023a) |
Functions
Topics
- Read Video Files
Read frames from a video starting at a specific time or frame index, read frames within a specified interval, and read all the frames in the video.
- Convert Between Image Sequences and Video
Convert between video files and sequences of image files using
VideoReader
andVideoWriter
. - Read and Write Audio Files
Write data to an audio file, get information about the file, and then read the data back into the MATLAB® workspace.
- Record and Play Audio
Record and play audio data for processing in MATLAB from audio input and output devices on your system.
- Supported Video and Audio File Formats
Video and audio files in MATLAB and their supported file formats and codecs.