From 1ef8b03bad506a5f5872341c9d90cd7c96e3ea26 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 4 Nov 2021 16:05:22 +0530 Subject: Wait 4s on last frame, use await --- lib/Fornax/CLI.rakumod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Fornax/CLI.rakumod b/lib/Fornax/CLI.rakumod index 0bd3d54..38ed03d 100644 --- a/lib/Fornax/CLI.rakumod +++ b/lib/Fornax/CLI.rakumod @@ -81,7 +81,7 @@ multi sub MAIN( # Wait until all scheduled jobs are finished, then empty the # array and continue. if @p.elems == $batch { - while @p.grep(*.status).elems !== $batch {}; + await @p; @p = []; } @@ -155,6 +155,7 @@ multi sub MAIN( my Str $log-level = $verbose ?? "info" !! "error"; run «ffmpeg -loglevel "$log-level" -r "$frame-rate" -i "$output/\%08d.png" + -vf 'tpad=stop_mode=clone:stop_duration=4' -vcodec libx264 -crf 28 -pix_fmt yuv420p "$output/solution.mp4"»; } put "[fornax] Output: '$output'"; -- cgit 1.4.1-2-gfad0