이전 댓글 표시
Hello, I'm trying to save a video in .avi format but I just cannot do it. Whenever I see the final video on a player, I just get an static image that doesn't move at all. First I tried this:
angleview=linspace(0,360,18);
for tt=1:numel(angleview)
view(angleview(tt),30);
M(tt)=getframe(gcf);
end
movie2avi(M,'video.avi','compression','none','fps',4);
then this:
aviobj = avifile('video.avi');
angleview=linspace(0,360,18);
for tt=1:numel(angleview)
view(angleview(tt),30);
M(tt)=getframe(gcf);
aviobj=addframe(aviobj,M(tt));
end
aviobj=close(aviobj);
Whats wrong? I appreciate your help.
답변 (1개)
SR
2012년 4월 12일
0 개 추천
Weird, both code pieces work for me, I see an .avi with a spinning axes. I'm running 2011b on 64-bit Windows.
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!