-
Notifications
You must be signed in to change notification settings - Fork 0
/
process.sh
executable file
·32 lines (29 loc) · 748 Bytes
/
process.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
IMHERE="$(dirname "$0")"
. "${IMHERE}"/common.sh
showhelp(){
echo $0 '<target_dir>'
}
getoption "$1" target_dir "./"
for subdir in "$target_dir"/*; do
if [[ ! -d "$subdir" ]]; then continue; fi
"${IMHERE}"/tagall.sh "$subdir"
done
echo "Tagging videos...will return when complete"
jobs -l
wait
for subdir in "$target_dir"/*; do
if [[ ! -d "$subdir" ]]; then continue; fi
"${IMHERE}"/organize.sh "$subdir"
done
echo "Running organization...will return when complete"
jobs -l
wait
for subdir in "$target_dir"/*; do
if [[ ! -d "$subdir" ]]; then continue; fi
"${IMHERE}"/cutter.sh "$subdir"
done
echo "Running ffmpeg cuts...will return when complete"
jobs -l
wait
echo "Completed tagging, organization, and auto-cuts!"