[請益] 有關movie2avi輸出的檔案的問題已回收
文章最下面為Code
目前我遇到的問題是
不寫'compression','none'就無法輸出檔案
會跳出
---
??? Error using ==> movie2avi at 58
Inputs must be a MATLAB movie, a filename, and param/value pairs.
Error in ==> dipolemovie at 17
movie2avi(F,'summer','none')
---
或是
---
Warning: The frame width has been padded to be a multiple of four as required
by the
specified codec.
> In avifile.addframe at 133
In movie2avi at 64
In dipolemovie at 17
---
可是輸出的檔案只有一個畫面,連動也不會動
請問哪邊出錯了呢?
--
i=-0.5*pi:pi/1024:0.5*pi;
for t=0:48;
j=-(23.5+8*sin(t*pi/24))*pi/180;
for L=-10:0.5:10;
r=L.*(cos(i+j)).^2;
r(r<=1 & r>=0)=1;
r(r>=-1 & r<=0)=-1;
x=r.*cos(i);
y=r.*sin(i);
plot(x,y)
hold on
end
axis('equal')
F=getframe;
hold off
end
movie2avi(F,'summer','compression','none')
movie(F)
--
◢ 川◣ │││││
▃▅▃▅▆ ◣││││
(cat▍_/ ▲ 、 ││
▊ ▊Moon◤▍▍▄▂ │
▃─ _▍_ ◣▌▎▃▅
▲ ◤  ̄ ◢▂▃ *Mooncat~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.16.56
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):