X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=fgen.sh;fp=fgen.sh;h=5ffb9d775aedc5770edb0e63f59a16a161982ccd;hb=58b228f01c3ee64d5934428f416b4416d807b5c8;hp=b1bd4e2750ef48855ae45969a29bbb223911b6d5;hpb=c3928b8cf0a04cff024efd7b371c8980b0fee8d7;p=fgen.git diff --git a/fgen.sh b/fgen.sh index b1bd4e2..5ffb9d7 100755 --- a/fgen.sh +++ b/fgen.sh @@ -160,6 +160,13 @@ function insert_empty_frames() done } +function record_max_nf() +{ + if [ ${nf} -gt ${max_nf} ]; then + max_nf="${nf}" + fi +} + function generate_video() { local png_files @@ -290,6 +297,7 @@ if [ ${trames} -eq 1 ]; then convert -size ${size} xc:none ${dest}/background.png nf="" + max_nf="0" oldnf="" files="" group="default" @@ -355,6 +363,7 @@ if [ ${trames} -eq 1 ]; then fi log_dbg "New frame ID: ${nf}" + record_max_nf fname=$(get_frame_name ${nf})