From 665faf610a826459b8edafbbf419e10273465ce8 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 7 Oct 2023 11:22:40 -0400 Subject: [PATCH] Add video debug messages --- fgen.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fgen.sh b/fgen.sh index 86e9b55..df952fa 100755 --- 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 } -- 2.20.1