POV-Ray : Newsgroups : povray.general : ending the frustration, animations, CMPEG and DOS Server Time
1 Nov 2024 21:21:53 EDT (-0400)
  ending the frustration, animations, CMPEG and DOS (Message 1 to 2 of 2)  
From: Matt Giwer
Subject: ending the frustration, animations, CMPEG and DOS
Date: 10 Jul 1999 17:17:59
Message: <3787B89D.C2254E10@giwersworld.org>
Finally remembering what I forget about DOS batch files, the
example of execution with the input images to be sample%d.tga in
a .bat file gets the error message, can't find sampled.tga. But
of course it works from the command line. 

	The problem is that batch files use % also. To make it work from
a batch file the format is 2 % as in sample%%d.tga and then it
works from a batch file. 

	Get away from DOS for a few years and you forget everything. :( 

-- 
<blink>-------please--don't-----------------</blink>

http://www.giwersworld.org/artii/
http://www.giwersworld.org/artiii/

Finally up on 99/06/22 updated 06/30


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

From: Bob Hughes
Subject: Re: ending the frustration, animations, CMPEG and DOS
Date: 13 Jul 1999 00:49:33
Message: <378AC541.D22156F2@aol.com>
Hmmmm, I thought I must have tried that though. I ended up with a
"sample%02d.tga" (0 being the padded digit[?] and 2 being a double digit
set of image frames for example) and all works fine.
Here's my super simplistic batch:

@echo off
cd mpg_util\avi2mpg
cls
echo.
echo  Busy...
echo.
cmpeg -v0 -t0 -f2 ipb.ctl c:\povanim\create\%1d.tga %2.mpg
echo.
dir %2.mpg
cd \

And I just enter MPG IMAGES%02 ANIMATE on the command line replacing the
counted digits with %02 (example).
I'm going to check using the double percent as you said.


Matt Giwer wrote:
> 
>         Finally remembering what I forget about DOS batch files, the
> example of execution with the input images to be sample%d.tga in
> a .bat file gets the error message, can't find sampled.tga. But
> of course it works from the command line.
> 
>         The problem is that batch files use % also. To make it work from
> a batch file the format is 2 % as in sample%%d.tga and then it
> works from a batch file.
> 
>         Get away from DOS for a few years and you forget everything. :(
> 
> --
> <blink>-------please--don't-----------------</blink>
> 
> http://www.giwersworld.org/artii/
> http://www.giwersworld.org/artiii/
> 
> Finally up on 99/06/22 updated 06/30

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

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