필터 지우기
필터 지우기

making movies with avifile and addframe produces black screen in half of the movie

조회 수: 1 (최근 30일)
Hello there!
I would very much appreciate some help with a movie I am making from my simulation results. Generally, the code is like this:
clear all; clc;
aviobj=avifile('movie.avi','fps',5);
img = figure();
ax = axes('parent',img);
hold(ax,'all');
set(ax,'XLim',[0 300]);
set(ax,'YLim',[0 300]);
for i=1:288
pl = plot(i,i,'parent',ax);
aviobj = addframe(aviobj,getframe(img));
delete(pl);
end
aviobj = close(aviobj);
close all;
Obviously, the pictures in it are more complex but this is the principle.
This works well, except: When looking at the movie, the second half of the movie is just a black screen.
What could be the problem here?
Thank you very much for your help!
Anna

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by