Playing a video file in matlab.

I wrote this code. Once I read the the video file using VIDEOREADER, I am unable to see it in the matlab. What command should I be looking for?
To further clarify my question, just like we read an image using IMREAD and then can immediately see it using IMSHOW. How can we do the same with a video file?
abc=videoreader('filename'); n=abc.FrameRate*abc.Duration;
% Read one frame at a time.
for k = 1 : n mov(k).cdata = read(abc, k);
end

Respuestas (1)

Andreas Goser
Andreas Goser el 2 de Dic. de 2011

0 votos

It is probably as simple as you only have code to read the data, not display the data. Ideally the the demos for how to do it. I can think of multiple commands like IMAGE or MOVIE for your application.

1 comentario

RahulTandon
RahulTandon el 30 de Sept. de 2020
But, movie, the function will play frames, not a video file from disk, I guess. Say, *.MP4. So one needs to ' videoreader', then movie ...
if true
% code
end

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 2 de Dic. de 2011

Comentada:

el 30 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by