POV-Ray : Newsgroups : povray.binaries.images : <no subject> Server Time
28 Mar 2024 16:44:09 EDT (-0400)
  <no subject> (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Melody
Subject: Re: <no subject>
Date: 19 Dec 2019 03:25:01
Message: <web.5dfb33c16f92e8569da690110@news.povray.org>
reading the instructions but not finding the command line I need.

ffmpeg -i file000.png -r 24 output.mpg
fails.

needs something like that.


Post a reply to this message

From: Melody
Subject: Re: <no subject>
Date: 19 Dec 2019 03:35:00
Message: <web.5dfb35c76f92e8569da690110@news.povray.org>
Using ffmpeg to convert a set of images into a video

ffmpeg -r 60 -f image2 -s 1920x1080 -i pic%04d.png -vcodec libx264 -crf 25
-pix_fmt yuv420p test.mp4

Specifying start and end frames

ffmpeg -r 60 -f image2 -s 1920x1080 -start_number 1 -i pic%04d.png -vframes 1000
-vcodec libx264 -crf 25  -pix_fmt yuv420p test.mp4

okay thats completely heinous, heh. cool?

https://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/


Post a reply to this message

From: Melody
Subject: Re: <no subject>
Date: 19 Dec 2019 05:25:01
Message: <web.5dfb4ee76f92e8569da690110@news.povray.org>
working command lines. issue, command line doesn't run from a batch file.
"Could find no file with path 'legomb.bat3d.png' and index in the range 0-4"

ffmpeg -r 8 -f image2 -s 640x366 -i legom%03d.png -vcodec libx264 -crf 25
-pix_fmt yuv420p legom.mp4

REM ImageMagick
REM This works on command line ONLY, run from b.bat, uses "b.bat" in the name
!?!? temp\legomb.bat3d.png

convert -resize 640x366 c:\ftp\dempov\kauai\starliner\*.png temp\legom%03d.png"

1meg small size mpeg with: -crf 25
smaller number is better.


Post a reply to this message

From: Melody
Subject: Re: <no subject>
Date: 21 Dec 2019 03:50:00
Message: <web.5dfddb2a6f92e8569da690110@news.povray.org>
#local d = 4 * (1/20);
 #if (fr > 178) #declare speed = _clamp(speed-d,0,4); #end
 // I cant believe I wrote that expecting it to work, and it did.
 // how did that work? it had to remember from last frame?

evidence of remembering a var from past frame?
 or twilight zone? ever been there?
  saw speed go to 0 by frame 200 in the vid!?!?!
that was the only line to change speed value of 4.

 // everything else expects it to start over. like this
 #if (fr > 178) #declare speed = _clamp(4 - 4 * ((fr-178)/20),0,4);


Post a reply to this message

From: Melody
Subject: Re: <no subject>
Date: 21 Dec 2019 04:10:01
Message: <web.5dfde0c96f92e8569da690110@news.povray.org>
for that line to work,
it means that the next frame had to ignore the initial value of 4.
/////// Cam1 Control \\\\\\\\
#declare speed = 4;

unquote

which could potentially mix up increments depending on that initial global
value. am I wrong?


Post a reply to this message

From: Melody
Subject: Re: <no subject>
Date: 25 Dec 2019 03:00:01
Message: <web.5e0316216f92e8569da690110@news.povray.org>
slowly gaining control on the plane's matrix.
I never wrote a flight sim before, nuts.

got auto pilot of sorts. less trial and error guessing at input values for
decent rate, with elevation and fame number u want to be there.

  #if (fr > 145) #declare attack = abs(grav) / speed; // level flight
  #local lift = (attack) * speed;  // to get anywhere, set exact vector/lift
  #local lift = lift - (campos.y-.64)/(230 - fr); #end

so new test grav and speed values, change nothing.

seems futile for the model's pitch to get counted, attack angle is calculated,
then maybe model's pitch could follow, incrementally, I was thinking.

here it went smoothTrans cam2 to cam1. then I wanted to roll over and have him
wave ... this could take forever.

someday, slow things down for 5000 frames, and better machine.


Post a reply to this message


Attachments:
Download 'legom.mp4.mpg' (392 KB)

<<< Previous 10 Messages Goto Initial 10 Messages

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