What code is used to load videos outside of the working folder in MATLAB

2 views (last 30 days)
One required file format is (.mp4)

Answers (1)

Image Analyst
Image Analyst on 21 Nov 2015
Use fullfile() and VideoReader(). For example:
folder = pwd; % or 'c:/whatever';
fullFileName = fullfile(folder, 'xylophone.mp4');
videoObject = VideoReader(fullFileName)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!