From 65e0382389bfd2efefc352bee5eeb7d6a26f5210 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 23 Oct 2023 17:28:56 -0400 Subject: [PATCH] Use variable for video output file --- fgen.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fgen.sh b/fgen.sh index 686fff9..f303f1a 100755 --- a/fgen.sh +++ b/fgen.sh @@ -171,10 +171,15 @@ function generate_video() if [ x"${png_files}" != x"" ]; then log_dbg "generate_video start" + + local outfile + + outfile=${dest}/${group}.mp4 + if [ ${dry_run} -eq 1 ]; then - touch ${dest}/${group}.mp4 + touch ${outfile} else - ffmpeg ${FFMPEG_OPTS} -r ${fps} -pattern_type glob -i "${dest}/${group}-f*.png" ${dest}/${group}.mp4 + ffmpeg ${FFMPEG_OPTS} -r ${fps} -pattern_type glob -i "${dest}/${dest}-${group}-f*.png" ${outfile} fi log_dbg "generate_video: end" -- 2.20.1