X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=fgen.sh;h=f303f1afd2ea9b193124a3c4d8aee96056ffcaa2;hb=65e0382389bfd2efefc352bee5eeb7d6a26f5210;hp=686fff918748b851e7c0b21377550dcc2c7391b1;hpb=79f431e19ea88f28e23d5bd4b9f39a7e6d0b1471;p=fgen.git 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"