|
@@ -8,15 +8,15 @@ function convert {
|
|
now=$(date +"%Y-%m-%d--%T")
|
|
now=$(date +"%Y-%m-%d--%T")
|
|
echo "Timelaps conversion | $now"
|
|
echo "Timelaps conversion | $now"
|
|
|
|
|
|
- mkdir ~/hehe-rover/www/tmp_videos
|
|
|
|
- mkdir ~/hehe-rover/www/tmp_metadata
|
|
|
|
- mkdir ~/hehe-rover/www/tmp_pictures
|
|
|
|
|
|
+ mkdir tmp_videos
|
|
|
|
+ mkdir tmp_metadata
|
|
|
|
+ mkdir tmp_pictures
|
|
|
|
|
|
rm -f tmp_pictures/*
|
|
rm -f tmp_pictures/*
|
|
|
|
|
|
x=1
|
|
x=1
|
|
for i in public_html/pictures/*.jpg; do
|
|
for i in public_html/pictures/*.jpg; do
|
|
- counter=$(printf %03d $x)
|
|
|
|
|
|
+ counter=$(printf %06d $x)
|
|
ln "$i" tmp_pictures/img"$counter".jpg
|
|
ln "$i" tmp_pictures/img"$counter".jpg
|
|
x=$(($x+1))
|
|
x=$(($x+1))
|
|
done
|
|
done
|
|
@@ -30,7 +30,7 @@ function convert {
|
|
echo "creating raw timelaps"
|
|
echo "creating raw timelaps"
|
|
ffmpeg -y \
|
|
ffmpeg -y \
|
|
-framerate $pf \
|
|
-framerate $pf \
|
|
- -i tmp_pictures/img%03d.jpg \
|
|
|
|
|
|
+ -i tmp_pictures/img%06d.jpg \
|
|
-r $vf -pix_fmt yuv420p -vcodec libx264 \
|
|
-r $vf -pix_fmt yuv420p -vcodec libx264 \
|
|
tmp_videos/timelaps-raw.mp4
|
|
tmp_videos/timelaps-raw.mp4
|
|
|
|
|
|
@@ -53,9 +53,9 @@ function convert {
|
|
# SRC
|
|
# SRC
|
|
src="${pict/public_html\/pictures\//}"
|
|
src="${pict/public_html\/pictures\//}"
|
|
# TIME
|
|
# TIME
|
|
- # time="${pict/pictures\/hehe-/}"
|
|
|
|
- # time="${time/.jpg/}"
|
|
|
|
- time=`exiftool 2>/dev/null -S --DateTimeOriginal -p '$DateTimeOriginal' -d %Y/%m/%d-%T "$pict"`
|
|
|
|
|
|
+ time="${pict/public_html\/pictures\/hehe-/}"
|
|
|
|
+ time="${time/.jpg/}"
|
|
|
|
+ # time=`exiftool 2>/dev/null -S --DateTimeOriginal -p '$DateTimeOriginal' -d %Y/%m/%d-%T "$pict"`
|
|
# GPS
|
|
# GPS
|
|
gps=`exiftool 2>/dev/null -n -p '$GPSLatitude,$GPSLongitude' $pict`
|
|
gps=`exiftool 2>/dev/null -n -p '$GPSLatitude,$GPSLongitude' $pict`
|
|
|
|
|