MATLAB Answers

Loading and Saving a video

4 views (last 30 days)
Idan
Idan on 11 Mar 2014
Answered: Nitin on 12 Mar 2014
Hi, I am new to the Video Processing toolbox in Matlab. Can someone please answer: How to load a video file using VideoReader and than saving the video using VideoWriter.

  0 Comments

Sign in to comment.

Answers (1)

Nitin
Nitin on 12 Mar 2014
You can find lots of information and examples here.
This should get you started:
%Read the movie file movie.mp4:
movie_loaded = VideoReader('movie.mp4');
nFrames = movie_loaded.NumberOfFrames;
vidHeight = movie_loaded.Height;
vidWidth = movie_loaded.Width;

  0 Comments

Sign in to comment.

Sign in to answer this question.