POV-Ray : Newsgroups : povray.animations : output question : Re: output question Server Time
28 Jul 2024 14:26:17 EDT (-0400)
  Re: output question  
From: omniVERSE
Date: 14 Dec 1999 22:26:37
Message: <38570a6d@news.povray.org>
I'm fairly certain I tried to do just that before, although it was in vain
for some reason.  I remember now, the way it would be needed to be entered
kind of prevents the simple two parameter way I wanted to do it.

mpg frame 3 animated  (example of command-line) would be  cmpeg %1%%0%2d.tga
%3.mpg  in the batch file.

See?  Would require three instead of just two.  I know, ridiculous aren't I?
Though I thought I had at least tried this before and it might have fouled
up somehow, not sure.
I like Nieminen's file list idea too, so maybe I'll switch to that since it
certainly reduces the command line entry.  Which occurs to me, noticed you
typed out the .TGA when you can put it in the batch as well, just like
Nieminen had said.

Bob

"Chris Colefax" <cco### [at] geocitiescom> wrote in message
news:38570199@news.povray.org...
> omniVERSE <inv### [at] aolcom> wrote:
> > I use a batch file myself, except simply for the running of CMpeg.  So I
> > only have to type:
> >
> >   mpg frame%02 animated
> >
> > at a DOS prompt to compile the "frame00.tga" to "frame99.tga" into a
mpeg
> > called "animate".  The mpg.bat file contains a line saying:
> >
> >  cmpeg %1d.tga %2.mpg
> >
> > with a cd command before that to go to where I have CMpeg, since I don't
> add
> > everything to my PATH.  I never could get the "%0" to go inside the
batch
> > file itself otherwise it would be even simpler.
>
> If you want to pass the literal string "%0" as a parameter to CMPEG you
> probably need to add an extra percentage sign in the batch file, eg. cmpeg
> %%0...  Otherwise the %0 is substituted with the first word on the command
> line, ie. the name of the batch file itself.
>
> My own CMPEG batch file follows Warp's suggestion:
>
> @ECHO OFF
> IF "%1"=="" GOTO Help
> IF "%1"=="/?" GOTO Help
>
> DIR %1 /B /ON > CMPEG.TMP
> P:\CMPEG\CMPEG -v1 %2 %3 %4 %5 %6 %7 %8 %9 P:\CMPEG.CTL CMPEG.TMP
Movie.mpg
> DEL CMPEG.TMP
> ECHO.
> GOTO End
>
> :Help
> P:\CMPEG\CMPEG /?
>
> :End
>
> This lets me specify a set of frame files using a wildcard, as well as any
> optional CMPEG parameters I might wish to use, eg:
>
>    CMPEG FRM*.TGA -d1
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.