fixed functions bug on pict-converter
This commit is contained in:
+16
-14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user