diff --git a/www/pict-converter.sh b/www/pict-converter.sh index 8db1b60..ed5931d 100755 --- a/www/pict-converter.sh +++ b/www/pict-converter.sh @@ -3,20 +3,6 @@ # https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images # needs ffmep and exiftool -function convert { - now=$(date +"%Y-%m-%d--%T") - echo "Timelaps conversion | $now" - - pictframerate=12 - videoframerate=24 - - echo "pictframerate:$pictframerate, videoframerate=$videoframerate" - - convertVideo $pictframerate $videoframerate - exportData $pictframerate $videoframerate -} - - function convertVideo { echo 'Video conversion' pf=$1 @@ -61,6 +47,22 @@ function exportData { } + +function convert { + now=$(date +"%Y-%m-%d--%T") + echo "Timelaps conversion | $now" + + pictframerate=12 + videoframerate=24 + + echo "pictframerate:$pictframerate, videoframerate=$videoframerate" + + convertVideo $pictframerate $videoframerate + exportData $pictframerate $videoframerate +} + + + day=$(date +"%Y-%m-%d") logfile="logs/convert-$day.log" touch $logfile