필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
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
David Young
David Young 2014년 3월 17일
You probably ned to show the code you are using. What is the class of vid?
Aditya
Aditya 2014년 3월 17일
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);

댓글을 달려면 로그인하십시오.

답변 (1개)

abbas masoumi
abbas masoumi 2014년 9월 8일
you video have a sound you have to delet sound in your video

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by