What is the recommended command to convert POVRay *.png to mpg

Asked by Feng Chen

Hi, All:

I am curious what is the command used to produce the videos as shown in the:

https://twiki.esscc.uq.edu.au/bin/view/ESSCC/DocumentationAndPresentations#ESyS_Particle_Python_Scripting_T

use ffmpeg or mencoder like this?

mencoder "mf://*.png" -mf type=png -ovc copy -o output.avi

Thanks for any suggestions!

Feng

Question information

Language:
English Edit question
Status:
Solved
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Solved by:
Vince Boros
Solved:
Last query:
Last reply:
Revision history for this message
Best Vince Boros (v-boros) said :
#1

Feng, here is the ffmpeg command that produced the movies on our web page:

ffmpeg -f image2 -r $input_fps -i $input_pattern -mbd rd -flags qprd -flags +4mv+aic -trellis 1 -bf 2 -cmp 2 -g 25 -y -b $bit_rate -r $output_fps $movie_name

where

$input_fps is the frame rate (in frames per second) for your input files,
$input_pattern will be snap_%04d.png if you have snap_0000.png, snap_0001.png, etc.,
$bit_rate is image width x image height x 3 x output frame rate,
$output_fps is the frame rate (in frames per second) of your output file, and
$movie_name is the output filename.

For example, for the bingle simulations I used:

ffmpeg -f image2 -r 6 -i snap_%05d.png -mbd rd -flags qprd -flags +4mv+aic -trellis 1 -bf 2 -cmp 2 -g 25 -y -b 43200000 -r 30 bingle_run.mpg

where an imput frame rate of 6 was used because the snapshots were taken every 0.1 seconds.

Revision history for this message
Feng Chen (fchen3-gmail) said :
#2

Thanks Vince Boros, that solved my question.