From 215c915e8e2cd6c6465ba1a0a8dc09fb8a927a49 Mon Sep 17 00:00:00 2001 From: Signor Pellegrino <68112357+FlyRouter@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:36:04 +0300 Subject: [PATCH] Update majestic-streamer.md --- en/majestic-streamer.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/en/majestic-streamer.md b/en/majestic-streamer.md index 007c9bb..f2591f4 100644 --- a/en/majestic-streamer.md +++ b/en/majestic-streamer.md @@ -22,11 +22,38 @@ The long JPEG control parameter did not fit into the example on the site and we ### Auto day/night detection -To be continued... +The experiments continue... ### Motion detection -To be continued... +If motion detect is enabled (for Hisilion/Goke, Ingenic and Sigmastar), the first check is for an executable file: +`/etc/majestic_motion.sh` + +Then the following will be called: +`/etc/majestic_motion.sh 1163 0 400 275 &` + +The usage is: +`/etc/majestic_motion.sh [x coordinate] [y coordinate] [region width] [region height]` + +Example script: +``` +#!/bin/sh + +echo 0:[$0] 1:[$1] 2:[$2] 3:[$3] 4:[$4] +``` + +Final diagnosis: +``` +20:37:02 [ motion] motion_update@155 Motion detected: [1163x0] -> [690x475] +20:37:02 [ tools] motion_event@615 Execute motion script: /etc/majestic_motion.sh +0:[/etc/majestic_motion.sh] 1:[1163] 2:[0] 3:[690] 4:[475] +``` + +More info: +- https://github.com/OpenIPC/majestic/issues/28 +- https://github.com/OpenIPC/majestic/issues/117 + +The experiments continue... ### How to convert YUV image to a more common image format