2023-11-02 13:03:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# capture n°080530
|
|
|
|
#
|
|
|
|
|
|
|
|
###################################
|
2023-11-23 11:23:07 +01:00
|
|
|
#
|
2023-11-02 13:03:46 +01:00
|
|
|
###################################
|
2023-11-23 11:23:07 +01:00
|
|
|
# exemple ./hugin_bash.sh 36077 36159
|
2023-11-02 13:03:46 +01:00
|
|
|
|
|
|
|
function batch_exif_photos {
|
2023-11-02 18:38:08 +01:00
|
|
|
# this is a WIP
|
2023-11-02 13:03:46 +01:00
|
|
|
|
2023-11-23 14:10:45 +01:00
|
|
|
local gopro_subfolder=$1
|
2023-11-23 11:23:07 +01:00
|
|
|
|
2023-11-23 14:10:45 +01:00
|
|
|
|
|
|
|
echo " création des assemblages pour le dossier $gopro_subfolder"
|
2023-11-23 11:23:07 +01:00
|
|
|
|
|
|
|
archive_zfs="/home/poule/encrypted/stockage-syncable"
|
2023-11-23 14:10:45 +01:00
|
|
|
node_script_hugin_folder="/home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion"
|
|
|
|
|
2023-11-23 11:23:07 +01:00
|
|
|
pto_folder="$archive_zfs/www/development/html/scripts/hugin-gopro-fusion/output_pto/"
|
2023-11-23 14:10:45 +01:00
|
|
|
destination_pto="$archive_zfs/photos/imageries/gopro/INBOX_PTO_hugin"
|
2023-11-23 11:23:07 +01:00
|
|
|
# test de l'existence des dossiers
|
|
|
|
if [ -f "$archive_zfs" ] ; then
|
|
|
|
echo "zfs archive is not mounted"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$destination_pto" ] ; then
|
|
|
|
mkdir -p "$archive_zfs/photos/imageries/gopro/INBOX_PTO_hugin"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$destination_pto"
|
2023-11-23 14:10:45 +01:00
|
|
|
echo "création de hugin_executor"
|
|
|
|
echo " -> ts-node ${node_script_hugin_folder}/main.ts --goproSubFolder="${gopro_subfolder}" --previous_zero=''"
|
|
|
|
ts-node $node_script_hugin_folder/main.ts --goproSubFolder="$gopro_subfolder" --previous_zero=''
|
|
|
|
|
|
|
|
|
|
|
|
# echo "lancement de hugin_executor_from_${min}_to_${max}.sh"
|
|
|
|
# echo " -> bash hugin_executor_from_${min}_to_${max}.sh"
|
|
|
|
# echo "lancement de l'ajout d'infos GPS aux photos assemblées"
|
|
|
|
# echo " -> bash exif_batch ${min} ${max} ${gopro_subfolder}"
|
2023-11-23 11:23:07 +01:00
|
|
|
|
2023-11-02 13:03:46 +01:00
|
|
|
}
|
|
|
|
|
2023-11-23 14:10:45 +01:00
|
|
|
batch_exif_photos $1
|