about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-11-03 22:02:19 +0530
committerAndinus <andinus@nand.sh>2021-11-03 22:02:19 +0530
commit6b73ff7511a37c08be63c77ec66fc7c6c2be06b1 (patch)
treefa8c29368afb3d60b4be00acbd649a91ce912333 /lib
parenteafd5d5cf87c3c5c6783957ebfc815b356fd88fa (diff)
downloadfornax-6b73ff7511a37c08be63c77ec66fc7c6c2be06b1.tar.gz
Set ffmpeg verbosity
Diffstat (limited to 'lib')
-rw-r--r--lib/Fornax/CLI.rakumod4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Fornax/CLI.rakumod b/lib/Fornax/CLI.rakumod
index cdc910d..9f6c569 100644
--- a/lib/Fornax/CLI.rakumod
+++ b/lib/Fornax/CLI.rakumod
@@ -121,7 +121,9 @@ multi sub MAIN(
 
     put "[fornax] Generated images." if $verbose;
     put "[fornax] Creating a slideshow." if $verbose;
-    run «ffmpeg -loglevel error -r "$frame-rate" -i "$output/\%08d.png"
+
+    my Str $log-level = $verbose ?? "info" !! "error";
+    run «ffmpeg -loglevel "$verbose" -r "$frame-rate" -i "$output/\%08d.png"
                 -vcodec libx264 -crf 28 -pix_fmt yuv420p "$output/solution.mp4"»;
     put "[fornax] Output: '$output'";
 }