Skip to content

Commit

Permalink
OLD edits - more correct FFMPEG shell script stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvist committed Feb 4, 2025
1 parent 11f8301 commit d24fd9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Fig1_movie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit d24fd9f

Please sign in to comment.