POV-Ray : Newsgroups : povray.animations : output question Server Time
24 Nov 2024 13:41:32 EST (-0500)
  output question (Message 1 to 7 of 7)  
From: Matt Giwer
Subject: output question
Date: 13 Dec 1999 18:09:48
Message: <3855A70C.CD446A79@ij.net>
If you want 10 animation images POV spits them out
in NAME00 throught NAME10. For 100 they come out
NAME000 through NAME100.

    All fine but CMPEG wants them NAME0 to NAME10 to
NAME99 ending at NAME100.

    OK, I created simple batch files to convert the
names.

    But I am wondering if there is either a way to get
POV to output what CMPEG wants or to make CMPEG eat the
POV output.


Post a reply to this message

From: ingo
Subject: Re: output question
Date: 14 Dec 1999 04:09:52
Message: <8E9C66702seed7@204.213.191.228>
Matt Giwer wrote:

>    If you want 10 animation images POV spits them out
>in NAME00 throught NAME10. For 100 they come out
>NAME000 through NAME100.

on commandline +kfi0 +kff9 gives you ten frames named in the way that cmpeg 
likes.
Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Matt Giwer
Subject: Re: output question
Date: 14 Dec 1999 04:56:20
Message: <38563E93.2E31A671@ij.net>
ingo wrote:

> Matt Giwer wrote:
>
> >    If you want 10 animation images POV spits them out
> >in NAME00 throught NAME10. For 100 they come out
> >NAME000 through NAME100.
>
> on commandline +kfi0 +kff9 gives you ten frames named in the way that cmpeg
> likes.

Gratias. And would that be +kfi0 +kff999 for over a thousand frames?


Post a reply to this message

From: Nieminen Juha
Subject: Re: output question
Date: 14 Dec 1999 06:03:26
Message: <385623fe@news.povray.org>
cmpeg also can read a file with all the filenames. You can create this
file this way in DOS:

dir /b *.tga > images.lst

and this way in UNIX:

ls *.tga > images.lst

  See the documentation of cmpeg for more information.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: omniVERSE
Subject: Re: output question
Date: 14 Dec 1999 08:08:34
Message: <38564152@news.povray.org>
What you want to do is give CMpeg the correct parameter.

cmpeg frame%03d.tga animated.mpg

The %03d tells it to get frame000 to frame999 for example.  %02d  is for
double digits, %01d for single (0 to 9).  The zero is telling it to look for
zero buffered numbers as in 00 to 99 where the first digit starts out as 0.

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.

Bob

"Matt Giwer" <jul### [at] ijnet> wrote in message
news:3855A70C.CD446A79@ij.net...
>     If you want 10 animation images POV spits them out
> in NAME00 throught NAME10. For 100 they come out
> NAME000 through NAME100.
>
>     All fine but CMPEG wants them NAME0 to NAME10 to
> NAME99 ending at NAME100.
>
>     OK, I created simple batch files to convert the
> names.
>
>     But I am wondering if there is either a way to get
> POV to output what CMPEG wants or to make CMPEG eat the
> POV output.
>


Post a reply to this message

From: Chris Colefax
Subject: Re: output question
Date: 14 Dec 1999 21:48:57
Message: <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

From: omniVERSE
Subject: Re: output question
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.