How do I convert a videofile (.mp4, .avi, etc.) to a .mat file?

9 visualizaciones (últimos 30 días)
Austin May
Austin May el 17 de Feb. de 2018
Comentada: Walter Roberson el 8 de Abr. de 2019
I am trying to convert a .mp4 or .avi file into a .mat file. I need this to process the video and to conduct salient object research.
  6 comentarios
Subhash Bhashakhetre
Subhash Bhashakhetre el 8 de Abr. de 2019
How to put specific data in generated .mat file?
Walter Roberson
Walter Roberson el 8 de Abr. de 2019
I find that MATLAB code for VideoPCA is available from a link given at https://sites.google.com/site/automaticvideounderstaning/

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Feb. de 2018
VideoReader or Vision.VideoFileReader .
  2 comentarios
Austin May
Austin May el 17 de Feb. de 2018
So do I just call the video with videoreader? How do I save the file to a .mat?
Walter Roberson
Walter Roberson el 17 de Feb. de 2018
v = VideoReader('xylophone.mp4');
vid_frames = read(v); %read all frames
clear v %release it
save('xyloframes.mat', 'vid_frames');

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by