fixed functions bug on pict-converter
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
|
# https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
|
||||||
# needs ffmep and exiftool
|
# needs ffmep and exiftool
|
||||||
|
|
||||||
function convertVideo {
|
function convertVideo(){
|
||||||
echo 'Video conversion'
|
echo 'Video conversion'
|
||||||
pf=$1
|
pf=$1
|
||||||
vf=$2
|
vf=$2
|
||||||
@@ -25,7 +25,7 @@ function convertVideo {
|
|||||||
rsync -r tmp_videos/ public_html/videos/
|
rsync -r tmp_videos/ public_html/videos/
|
||||||
}
|
}
|
||||||
|
|
||||||
function exportData {
|
function exportData(){
|
||||||
echo "metadata export"
|
echo "metadata export"
|
||||||
pf=$1
|
pf=$1
|
||||||
vf=$2
|
vf=$2
|
||||||
@@ -54,13 +54,13 @@ function exportData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function convert {
|
function convert(){
|
||||||
now=$(date +"%Y-%m-%d--%T")
|
now=$(date +"%Y-%m-%d--%T")
|
||||||
echo "Timelaps conversion | $now"
|
echo "Timelaps conversion | $now"
|
||||||
|
|
||||||
_cwd="$(pwd)"
|
|
||||||
mkdir $_cwd/tmp_videos
|
mkdir ~/hehe-rover/www/tmp_videos
|
||||||
mkdir $_cwd/tmp_metadata
|
mkdir ~/hehe-rover/www/tmp_metadata
|
||||||
|
|
||||||
pictframerate=12
|
pictframerate=12
|
||||||
videoframerate=24
|
videoframerate=24
|
||||||
|
|||||||
Reference in New Issue
Block a user