comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: write_mpeg.pro
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: write_mpeg.pro [message #8205] Wed, 19 February 1997 00:00
Christian Soeller is currently offline  Christian Soeller
Messages: 46
Registered: August 1996
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Erosion/Dilation Operators
Next Topic: Re: Running time display

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:44:44 PDT 2025

Total time taken to generate the page: 0.00512 seconds