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"