-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageTroubleShooting.txt
57 lines (34 loc) · 1.35 KB
/
imageTroubleShooting.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Here i describe how to make a video from these images
# This is how i describe to make the video from png files.
# you must already be in the directory
cd growPics/
# Show me how many images there are
ls -1 | wc -l
# AVI
ffmpeg -r 100 -pattern_type glob -i '*.png' -c:v libx264 -crf 25 out.avi
# MP4
ffmpeg -pattern_type glob -i '*.png' -s 1296x972 -c:v libx264 -vf fps=200 -pix_fmt yuv420p out.mp4
# Now transfer this to my computer using
# follow this to get ssh running https://jeetblogs.org/post/sshing-into-a-windows-wsl-linux-subsystem/
# from pi to labtop, on pi
scp -P 2222 /home/pi/Documents/autoGrow/growPics/out.avi [email protected]/mnt/c/Users/leele/Desktop
# From pi to laptop
scp [email protected]:/home/pi/Documents/autoGrow/growPics/out.avi /mnt/c/Users/leele/Desktop/
#after a half day i am taking up half a gb of size. This is not sustainable. thus i need to
# reisize thes to be half the resolution 133M
# This is how it did it for me using imagemagick
for f in `find . -name "*.png"`
do
convert $f -resize 50% $f
done
# Ubuntu finding image info
identify image.png
#Ubuntu find folder size
du -hs /path/to/directory
##########################################################
#I need to Rotate all images in the timeLapse 2 directory
cd growPics/timeLapse2
for f in `find . -name "*.png"`
do
convert $f -rotate 180 $f
done