Add video debug messages
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 15:22:40 +0000 (11:22 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 8 Oct 2023 02:36:44 +0000 (22:36 -0400)
fgen.sh

diff --git a/fgen.sh b/fgen.sh
index 86e9b55..df952fa 100755 (executable)
--- a/fgen.sh
+++ b/fgen.sh
@@ -111,10 +111,14 @@ function generate_video()
 {
     if which ffmpeg 1> /dev/null 2>&1; then
         if [ -f ${dest}/${group}-f1.png ]; then
-            if [ ${dry_run} -eq 0 ]; then
-                # Conversion vidéo:
+            log_dbg "generate_video start"
+            if [ ${dry_run} -eq 1 ]; then
+                touch ${dest}/${group}.mp4
+            else
                 ffmpeg ${FFMPEG_OPTS} -r ${fps} -start_number 1 -i ${dest}/${group}-f%d.png ${dest}/${group}.mp4
             fi
+
+            log_dbg "generate_video: end"
         fi
     fi
 }