Borrar filtros
Borrar filtros

when I try to play an Avi file, I get an error on the video player "Invalid video data - must be a numeric or logical data type". Please help

8 visualizaciones (últimos 30 días)
I used avifile to read the video file and used mplay(vid) to display it on a video player. But it is giving the error that it needs the video to be i numeric or logical data type
  2 comentarios
David Young
David Young el 17 de Mzo. de 2014
You probably ned to show the code you are using. What is the class of vid?
Aditya
Aditya el 17 de Mzo. de 2014
mov=avifile('Wildlife.avi');
mov.fps=25;
mov.compression='xvid';
tp=ones(600,800,3,'uint8')*255;
fr=im2frame(tp);
for i=1:100
mov = addframe(mov,fr);
end
mplay(mov);
res=close(mov);

Iniciar sesión para comentar.

Respuestas (1)

abbas masoumi
abbas masoumi el 8 de Sept. de 2014
you video have a sound you have to delet sound in your video

Community Treasure Hunt

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

Start Hunting!

Translated by