Appending image frames to existing avi file
Afficher commentaires plus anciens
Can anyone suggest how to append frames to an existing video file? I tried the code below in a for loop, however what I get is it can only create a new file only from given frames and doesn't append to the existing file.
outvid=VideoWriter([vidoutpath, name_vidout]);
outvid.FrameRate=mov.FrameRate;
open(outvid)
for pgc=1:length(RGBbin(1,1,1,:))
writeVideo(outvid, RGBbin(:,:,:,pgc));
end
close(outvid)
Thnx.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 8 Août 2016
0 votes
VideoWriter cannot append frames.
You might be able to edit the C++ code given in http://www.mathworks.com/matlabcentral/fileexchange/280-aviwrite . Or possibly you could make use of the 'Continue' and 'Initialized' options of https://www.mathworks.com/matlabcentral/fileexchange/15881-mmwrite
Catégories
En savoir plus sur Audio and Video Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!