#!/bin/bash set -e POVOPT=" -q9 +a -W800 -H600 +WT2 -d -v " SOURCE="vision.pov" TMPF="/dev/shm/gravfield.png" # --------------------------------------- une_passe () { clock=$1 povray -i${SOURCE} -K${clock} $POVOPT -O${TMPF} 2> pov.stderr timestamp=$(date | tr '01' 'Ol') outfile=$(printf "WS/%05d.png" $clock) convert ${TMPF} \ -pointsize 14 \ -font Courier-Bold \ -fill Orange \ -annotate +10+16 "$timestamp" \ ${outfile} } # --------------------------------------- for foo in $(seq 0 1999) do echo '............' $foo une_passe $foo done ffmpeg -nostdin \ -loglevel warning \ -y -r 30 -f image2 -i WS/%05d.png \ -metadata artist='---{ tTh }---' \ -metadata title="Experiment on Gravity Field" \ -c:v libx264 -pix_fmt yuv420p \ bar.mp4