POV-Ray : Newsgroups : povray.general : Trying to be lazy in Windows : Re: Trying to be lazy in Windows Server Time
20 May 2024 15:09:32 EDT (-0400)
  Re: Trying to be lazy in Windows  
From: m@b
Date: 16 Jul 2023 12:31:11
Message: <64b41b4f$1@news.povray.org>
On 15/07/2023 6:43 PM, Josh English wrote:
> 
> Since I'm using Windows, I can't use a Post_Scene_Command, so I thought 
> I could use Python.

It doesn't answer your question but you can do Post_Scene_Command using 
a windows batch file, here is my setup:

In the ini file:

Output_File_Name=D:\Files\POV-Ray\ANI0\PovRay0.png
Post_Scene_Command=D:\Files\POV-Ray\Bats\PostScene2.bat

PostScene2.bat:
-----------------------------------------------------------------------
@echo off

D:

cd D:\Files\POV-Ray\ffmpeg-20200612-38737b3-win64-static\bin

echo Running ffmpeg.  Press [q] to stop, [?] for help

ffmpeg -hide_banner -loglevel warning -stats -framerate 24 -i 
D:\Files\POV-Ray\ANI0\PovRay%%04d.png -codec:v libx264 -y -pix_fmt 
yuv420p D:\Files\POV-Ray\Animations\POVout.mp4

echo Running ffplay

ffplay -hide_banner -loglevel warning -loop -1 
D:\Files\POV-Ray\Animations\POVout.mp4

-----------------------------------------------------------------------


Post a reply to this message

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