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
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user