-
Notifications
You must be signed in to change notification settings - Fork 1
/
crop.sh
17 lines (14 loc) · 1012 Bytes
/
crop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#path=/media/dan/Galactica/earth/img/full-disk-true-color/crop1080
#path=/home/dan/Documents/repos/animate-earth/img/full-disk-true-color/crop1080
#path=/Users/danieldelany/Documents/animate\ earth/img/full-disk-true-color/crop1080
path=/Volumes/Galactica/earth/img/full-disk-true-color/skiptest/crop
#for file in /media/dan/Galactica/earth/img/full-disk-true-color/high5/*.jpg; do
#for file in /Users/danieldelany/Documents/animate\ earth/img/full-disk-true-color/high5/*.jpg; do
#for file in /Users/danieldelany/Documents/animate\ earth/img/full-disk-true-color/high5/*.jpg; do
for file in /Volumes/Galactica/earth/img/full-disk-true-color/skiptest/*.jpg; do
echo "cropping $file";
# convert "$file" -crop 1920x1080+1500+1000 "$path/${file##*/}";
convert "$file" -crop 640x480+1000+2220 "$path/${file##*/}";
done
# ffmpeg -i video_smv/crop1080-2x60c.mp4 -i video/crop1080-2x60.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS[bg]; [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w/2" video/sbs4.mp4