AVIファイルを作成​する際にエラーが表示​されるのはなぜですか​?

14 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 14 de Dic. de 2009
下記のように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.
回避方法を教えてください。

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 14 de Dic. de 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);

Más respuestas (0)

Categorías

Más información sobre 印刷と保存 en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!