Azzera filtri
Azzera filtri

Trouble creating AVI with 64-bit Windows

1 visualizzazione (ultimi 30 giorni)
Trying to create AVI movie with either movie2avi, addframe or VideoWriter, I get file, where all the frames are identical (i.e. the first one is reproduced). No error occurs. The problem is present only for PCs with 64-bit Windows - Windows-7 with Matlab 2013b and Windows-8 with Matlab 2010b. Movies are small (5-20 frames with resolution about 400x400 pix). An example from Help for movie2avi leads to the same result. Any known solutions?

Risposta accettata

Image Analyst
Image Analyst il 6 Mag 2014
I'm sure there is but we can't fix it until you upload your code. In the meantime, see my code, which works.

Più risposte (1)

Nikolay Vinnichenko
Nikolay Vinnichenko il 7 Mag 2014
Thanks. Your code works and this helped me to resolve the issue. The solution is
set(gcf,'Renderer','zbuffer'); %Setting the Renderer property to zbuffer or Painters works around limitations of getframe with the OpenGL® renderer on some Windows® systems.
which is present in Help example for writeVideo, but absent in analogous example for movie2avi.

Community Treasure Hunt

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

Start Hunting!

Translated by