Commit 79c3551
filter.md
@@ -0,0 +1,48 @@
+## Move images into new folders by timestamp
+
+```bash
+find . \
+ -maxdepth 1 \
+ -type f \
+ -newermt "2023-12-25 08:00:00" \
+ -not -newermt "2023-12-25 22:00:00" \
+ | xargs -t -P 16 -I {} \
+ mv {} day/
+find . \
+ -maxdepth 1 \
+ -type f \
+ -newermt "2023-12-25 22:00:00" \
+ -not -newermt "2023-12-26 08:00:00" \
+ | xargs -t -P 16 -I {} \
+ mv {} day-night/
+```
+
+## Find bad jpegs with grey areas
+```bash
+sudo apt install jpeginfo
+```
+
+```bash
+{
+mkdir -p ./bad
+find . -maxdepth 1 -type f \
+ | xargs -I {} -P10 \
+ bash -c "jpeginfo -c {}" \
+ | grep "WARNING Premature" \
+ | cut -d ' ' -f 1 \
+ | xargs -I {} -P10 \
+ mv {} ./bad/
+}
+```
+
+## Encoding
+
+```bash
+ffmpeg \
+ -framerate 120 \
+ -pattern_type glob -i "*.jpg" \
+ -c:v libx265 \
+ -pix_fmt yuv420p \
+ ../$(basename ${PWD}).mp4
+```
+
README.md
@@ -1,1 +1,78 @@
# christmas-cam
+# Speco Camera
+
+Find it by mac:
+```
+1703474999 5c:f2:07:35:f3:6d 192.168.32.186 * 01:5c:f2:07:35:f3:6d
+```
+
+Find it by http:
+```
+curl -s http://192.168.32.186 | grep "Scripts/global.js"
+```
+
+Snapshot:
+```bash
+{
+ while true; do
+ curl \
+ --connect-timeout 0.3 \
+ --max-time 1.2 \
+ -s http://admin:${PASSWORD}@192.168.32.186/snapshot.JPG \
+ -o $(printf '%x' $(date +"%s")).jpg
+ sleep 1;
+ done
+}
+```
+
+
+
+
+## Move images into new folders by timestamp
+
+```bash
+find . \
+ -maxdepth 1 \
+ -type f \
+ -newermt "2023-12-25 08:00:00" \
+ -not -newermt "2023-12-25 22:00:00" \
+ | xargs -t -P 16 -I {} \
+ mv {} day/
+find . \
+ -maxdepth 1 \
+ -type f \
+ -newermt "2023-12-25 22:00:00" \
+ -not -newermt "2023-12-26 08:00:00" \
+ | xargs -t -P 16 -I {} \
+ mv {} day-night/
+```
+
+## Find bad jpegs with grey areas
+```bash
+sudo apt install jpeginfo
+```
+
+```bash
+{
+mkdir -p ./bad
+find . -maxdepth 1 -type f \
+ | xargs -I {} -P10 \
+ bash -c "jpeginfo -c {}" \
+ | grep "WARNING Premature" \
+ | cut -d ' ' -f 1 \
+ | xargs -I {} -P10 \
+ mv {} ./bad/
+}
+```
+
+## Encoding
+
+```bash
+ffmpeg \
+ -framerate 120 \
+ -pattern_type glob -i "*.jpg" \
+ -c:v libx265 \
+ -pix_fmt yuv420p \
+ ../$(basename ${PWD}).mp4
+```
+
speco.md
@@ -0,0 +1,29 @@
+# Speco Camera
+
+Find it by mac:
+```
+1703474999 5c:f2:07:35:f3:6d 192.168.32.186 * 01:5c:f2:07:35:f3:6d
+```
+
+Find it by http:
+```
+curl -s http://192.168.32.186 | grep "Scripts/global.js"
+```
+
+Snapshot:
+```bash
+{
+ while true; do
+ curl \
+ --connect-timeout 0.3 \
+ --max-time 1.2 \
+ -s http://admin:specospeco1\!@192.168.32.186/snapshot.JPG \
+ -o $(printf '%x' $(date +"%s")).jpg
+ sleep 1;
+ done
+}
+```
+
+
+
+