Loading and Saving a video

2 visualizaciones (últimos 30 días)
Idan
Idan el 11 de Mzo. de 2014
Respondida: Nitin el 12 de Mzo. de 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.

Respuestas (1)

Nitin
Nitin el 12 de Mzo. de 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;

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by