fixed functions bug on pict-converter

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-29 19:31:47 +02:00
parent 14872ac0e7
commit 527fbe15d8
+16 -14
View File
@@ -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