diff options
author | Andinus <andinus@nand.sh> | 2021-11-03 21:13:04 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-11-03 21:13:04 +0530 |
commit | 7b812b8ef7456a491b667b52713cbef5dbc81bc6 (patch) | |
tree | 7e012d62e4cb0fdfa346a5157a682f952a2bfe2d /lib | |
parent | 03919ea02fe91e3742aa8c3805edb9c0f9883fda (diff) | |
download | fornax-7b812b8ef7456a491b667b52713cbef5dbc81bc6.tar.gz |
Change default output directory
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Fornax/CLI.rakumod | 7 |
1 files changed, 4 insertions, 3 deletions
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( |