while converting frames into video i was getting some errors . My code is actually a tutorial from matlab. i am getting some difficulties in understanding how to give the input of my frames in the code.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
v = VideoWriter('sample.avi');
open(v);
Z= peaks;
surf(z);
axis tight manual
set(gca,'nextplot', 'xyz');
for k= 1:20
surf(sin(2*pi*k/20)*z,z)
frame=getframes(gcf);
writeVideo(v,frame);
end
close(v);
0 Kommentare
Antworten (1)
Manan Mishra
am 12 Jan. 2018
Here are a few links to help you out:
- A post from MATLAB Answers:
- A documentation example. Check the section named "Create New Video with the Image Sequence":
- If you face further issues, please consider sharing the exact error message or sample data files through which the error can be reproduced.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!