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. 
Tools
| Import Tool | Import data from file | 
Live Editor Tasks
| Import Data | Import data from a file in the Live Editor (Since R2023a) | 
Functions
Topics
- Read Video FilesRead 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. 
- Import Images, Audio, and Video InteractivelyImport data interactively into MATLAB® workspace using the Import Tool and the Import Data task. 
- Convert Between Image Sequences and VideoConvert between video files and sequences of image files using VideoReaderandVideoWriter.
- Read and Write Audio FilesWrite data to an audio file, get information about the file, and then read the data back into the MATLAB workspace. 
- Record and Play AudioRecord and play audio data for processing in MATLAB from audio input and output devices on your system. 
- Supported Video and Audio File FormatsVideo and audio files in MATLAB and their supported file formats and codecs.