From d24fd9f34721fe44ca09f2aeda141c3c90e5e34f Mon Sep 17 00:00:00 2001 From: Jarvist Moore Frost Date: Tue, 4 Feb 2025 23:02:41 +0000 Subject: [PATCH] OLD edits - more correct FFMPEG shell script stuff. --- examples/Fig1_movie.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Fig1_movie.jl b/examples/Fig1_movie.jl index 96358e0..c5999e5 100644 --- a/examples/Fig1_movie.jl +++ b/examples/Fig1_movie.jl @@ -42,8 +42,8 @@ println("# Imagemagick 'convert' PPM to PNG with text overlay") println("""for f in frames/*.ppm; do num=\$(basename \$f .ppm) frame=\${num##*_} - a=\$(printf "%.2f" \$(echo "scale=2; (\$frame - 1) * (1.0/$(frames-1))" | bc)) + a=$(printf "%.4f" $(echo "scale=4; ( $frame - 1) * (1.0/ $(frames-1))" | bc -l)) + echo "Frane: $(frame) Backflow: $a" convert \$f -pointsize 36 -fill white -annotate +50+$(S-50) "a = \$a" \${f%.*}.png done""") println("ffmpeg -framerate 10 -i frames/backflow_%03d.png -c:v libx264 backflow.mp4") -println("rm frames/*.ppm")