소스 검색

fixed functions bug on pict-converter

Bachir Soussi Chiadmi 7 년 전
부모
커밋
54a7114da6
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      www/pict-converter.sh

+ 4 - 4
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