fixed functions bug on pict-converter

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-29 19:50:25 +02:00
parent f3ca1f757e
commit 20e1061df8
+6 -6
View File
@@ -3,7 +3,7 @@
# https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
# needs ffmep and exiftool
function convertVideo {
function convertVideo(){
echo 'Video conversion'
pf=$1
vf=$2
@@ -25,7 +25,7 @@ function convertVideo {
rsync -r tmp_videos/ public_html/videos/
}
function exportData {
function exportData(){
echo "metadata export"
pf=$1
vf=$2
@@ -54,13 +54,13 @@ function exportData {
}
function convert {
function convert(){
now=$(date +"%Y-%m-%d--%T")
echo "Timelaps conversion | $now"
_cwd="$(pwd)"
mkdir $_cwd/tmp_videos
mkdir $_cwd/tmp_metadata
mkdir ~/hehe-rover/www/tmp_videos
mkdir ~/hehe-rover/www/tmp_metadata
pictframerate=12
videoframerate=24