Re: output to file?

New Message Reply Date view Thread view Subject view Author view

Angus Henderson (angus++at++despair.paradigmsim.com)
Wed, 6 Nov 1996 09:24:55 -0600


On Nov 5, 12:03pm, Sandeep S. Mulgund wrote:

> Is there any way to get a Performer app to dump the screen contents to an
> MPEG or quicktime movie?

On Nov 6, 3:50pm, Pascal LEBAILLIF wrote:

> I would like to "save" each frames of a demonstration I made with VEGA to
make
> a movie. I know how to do, but i wonder if I there is some stuff, or if i
must
> code everything.
>
> What I plan to do, is to grab each frame after vgFrame (in the main loop) and
> save it to disk with a different filename, but I cannot see in the
> documentation (maybe I'm blind) a function to save a frame, does it exists ?
>

I did not see an answer to this on info-performer, we tried it a while back and
ended up recording to a VCR with NTSC "vout" on an ONYX and then saving is as a
movie with "capture" on an indy through analog video in.

I half expected "capture" save movies from the screen on any machine exactly as
it does for saving images but I couldn't get it to work.

In any event the frames would not be guaranteed to be taken at regular time
intervals so the movie would glitch.

Pascal's idea is best, I would do this.....

(This is in Vega not performer - but it's just the same except easier for slow
typists like moi )

vgWindow *win;
vgChannel *chan;
int wl, wr, wb, wt;

     chan = vgGetChan( 0 );
     win = vgGetChanWin( chan );
     vgGetWinSize( win, &wl, &wr, &wb, &wt );

.... then in a post draw callback....

     vgAddFunc( chan, VGCHAN_POSTDRAW, PostDrawCallback, NULL );

...

void PostDrawCallback( vgCommon *chan, void *udata )
{
       static char n = 10, sysstr[256];
       sprintf( sysstr, "scrsave images/i%d %d %d %d %d", n++, wl, wr, wb, wt);
       system( sysstr );
}

it works I've just tried it.....

ANgus

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:53 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.