Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
ermak@scorpio.iem.ac.ru (Vladimir V. Ermakov) writes: > my code: > > ----------------- > mov=bytarr(100,100,3) > mov(*,*,0)=0 > mov(*,*,1)=100 > mov(*,*,2)=200 > write_mpeg, 'test.mpg', mov > > I've got errors: > Is it my fault or write_mpeg.pro is incorrect? Just checked. There is indeed a typo in the first line of code. Replace if n_elements(rep) eq 0 then rep=0 with if n_elements(rep) eq 0 then rep=1 The rep keyword allows you to repeat every frame 'rep' times. Hope this helps, Christian ------------------------------------------------------------ -------- Christian Soeller mailto: csoelle@sghms.ac.uk St. Georges Hospital Medical School Dept. of Pharmacology Cranmer Terrace London SW17 0RE