AVIファイルを作成する際にエラーが表示されるのはなぜですか?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
下記のようにAVIファイルを作成すると、エラーが表示されます。
mov = avifile('fn6.avi');
figure
line
mov = addframe(mov,gcf);
pause
mov = addframe(mov,gcf);
mov = close(mov);
(エラーメッセージ)
Error using ==> avifile.addframe>ValidateFrame
Frame must be 560 by 421.
回避方法を教えてください。
Risposta accettata
MathWorks Support Team
il 14 Dic 2009
GETFRAME関数をご利用いただくことで回避することが可能です。
mov = avifile('pd3.avi');
figure
surf(peaks)
frame = getframe(gcf);
mov = addframe(mov,frame);
frame = getframe(gcf);
mov = addframe(mov,frame);
mov = close(mov);
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!