From 54a7114da63abaa8b44c6c2619a7c0bad0a93cb8 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 29 Jun 2016 19:28:30 +0200 Subject: [PATCH] fixed functions bug on pict-converter --- www/pict-converter.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/pict-converter.sh b/www/pict-converter.sh index f5bfb81..bbf5370 100755 --- a/www/pict-converter.sh +++ b/www/pict-converter.sh @@ -3,7 +3,7 @@ # https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images # needs ffmep and exiftool -function convert(){ +function convert{ now=$(date +"%Y-%m-%d--%T") echo "Timelaps conversion | $now" @@ -12,12 +12,12 @@ function convert(){ echo "pictframerate:$pictframerate, videoframerate=$videoframerate" - # convertVideo $pictframerate $videoframerate + convertVideo $pictframerate $videoframerate exportData $pictframerate $videoframerate } -function convertVideo(){ +function convertVideo{ echo 'Video conversion' pf=$1 vf=$2 @@ -34,7 +34,7 @@ function convertVideo(){ ffmpeg -y -i videos/timelaps-raw.mp4 -vf "scale=360:-1, crop=in_w:240" videos/timelaps-240p.mp4 } -function exportData(){ +function exportData{ echo "metadata export" pf=$1 vf=$2