From 7b812b8ef7456a491b667b52713cbef5dbc81bc6 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 3 Nov 2021 21:13:04 +0530 Subject: Change default output directory --- lib/Fornax/CLI.rakumod | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Fornax/CLI.rakumod b/lib/Fornax/CLI.rakumod index b2fb629..3918fc1 100644 --- a/lib/Fornax/CLI.rakumod +++ b/lib/Fornax/CLI.rakumod @@ -16,7 +16,7 @@ proto MAIN(|) is export { unless so @*ARGS { put $*USAGE; exit }; {*} } #| Collection of tools to visualize Path Finding Algorithms multi sub MAIN( File $input, #= fornax format file (solved) - Directory :$output = 'output', #= output directory (existing) + Directory :$output = '/tmp/output', #= output directory (existing) Int :$frame-rate = 1, #= frame rate Bool :$verbose = True, #= verbosity ) is export { @@ -119,10 +119,11 @@ multi sub MAIN( } } - put "[fornax] Generated images."; - put "[fornax] Creating a slideshow."; + put "[fornax] Generated images." if $verbose; + put "[fornax] Creating a slideshow." if $verbose; run «ffmpeg -loglevel error -r "$frame-rate" -i "$output/\%08d.png" -vcodec libx264 -crf 28 -pix_fmt yuv420p "$output/solution.mp4"»; + put "[fornax] Output: '$output'"; } multi sub MAIN( -- cgit 1.4.1-2-gfad0