mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
update motion to 4.3.0
This commit is contained in:
parent
84920db771
commit
13aada2077
@ -1,35 +0,0 @@
|
|||||||
diff --git a/raspicam/RaspiCamControl.c b/raspicam/RaspiCamControl.c
|
|
||||||
index 073d657..ad0e405 100644
|
|
||||||
--- a/raspicam/RaspiCamControl.c
|
|
||||||
+++ b/raspicam/RaspiCamControl.c
|
|
||||||
@@ -73,7 +73,8 @@ static XREF_T awb_map[] =
|
|
||||||
{"fluorescent", MMAL_PARAM_AWBMODE_FLUORESCENT},
|
|
||||||
{"incandescent", MMAL_PARAM_AWBMODE_INCANDESCENT},
|
|
||||||
{"flash", MMAL_PARAM_AWBMODE_FLASH},
|
|
||||||
- {"horizon", MMAL_PARAM_AWBMODE_HORIZON}
|
|
||||||
+ {"horizon", MMAL_PARAM_AWBMODE_HORIZON},
|
|
||||||
+ {"greyworld", MMAL_PARAM_AWBMODE_GREYWORLD}
|
|
||||||
};
|
|
||||||
|
|
||||||
static const int awb_map_size = sizeof(awb_map) / sizeof(awb_map[0]);
|
|
||||||
@@ -1196,6 +1197,7 @@ int raspicamcontrol_set_exposure_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_EXPOS
|
|
||||||
* - MMAL_PARAM_AWBMODE_INCANDESCENT,
|
|
||||||
* - MMAL_PARAM_AWBMODE_FLASH,
|
|
||||||
* - MMAL_PARAM_AWBMODE_HORIZON,
|
|
||||||
+ * - MMAL_PARAM_AWBMODE_GREYWORLD,
|
|
||||||
* @return 0 if successful, non-zero if any parameters out of range
|
|
||||||
*/
|
|
||||||
int raspicamcontrol_set_awb_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_AWBMODE_T awb_mode)
|
|
||||||
diff --git a/raspicam/RaspiCamControl.h b/raspicam/RaspiCamControl.h
|
|
||||||
index f4c189a..e7a847f 100644
|
|
||||||
--- a/raspicam/RaspiCamControl.h
|
|
||||||
+++ b/raspicam/RaspiCamControl.h
|
|
||||||
@@ -57,6 +57,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
MMAL_PARAM_AWBMODE_INCANDESCENT,
|
|
||||||
MMAL_PARAM_AWBMODE_FLASH,
|
|
||||||
MMAL_PARAM_AWBMODE_HORIZON,
|
|
||||||
+ MMAL_PARAM_AWBMODE_GREYWORLD,
|
|
||||||
*
|
|
||||||
* Image FX
|
|
||||||
MMAL_PARAM_IMAGEFX_NONE,
|
|
||||||
|
|
51
package/motion/0001-without-nls.patch
Normal file
51
package/motion/0001-without-nls.patch
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
gist 4d213af40bb4786c3a51535bf7cc1fdd
|
||||||
|
Author: Mr-DaveDev
|
||||||
|
Date: Thu Sep 29 22:07:12 2019
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index ecc20f1..8b262c0 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -1,6 +1,4 @@
|
||||||
|
-ACLOCAL_AMFLAGS = -I m4
|
||||||
|
-
|
||||||
|
-SUBDIRS = src po man
|
||||||
|
+SUBDIRS = src man
|
||||||
|
|
||||||
|
sysconfdir = @sysconfdir@/$(PACKAGE)
|
||||||
|
sysconf_DATA = \
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 6ee2554..42b1c36 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -6,10 +6,6 @@ AC_GNU_SOURCE
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_CONFIG_SRCDIR([src/motion.c])
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
-AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
-
|
||||||
|
-AM_GNU_GETTEXT([external])
|
||||||
|
-AM_GNU_GETTEXT_VERSION([0.19])
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
### Check additional system headers
|
||||||
|
@@ -470,7 +466,6 @@ LDFLAGS="$TEMP_LDFLAGS"
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
src/Makefile
|
||||||
|
- po/Makefile.in
|
||||||
|
man/Makefile
|
||||||
|
data/camera1-dist.conf
|
||||||
|
data/camera2-dist.conf
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index bedd1b3..aa253ca 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -4,7 +4,6 @@ if INC_MMAL_SRC
|
||||||
|
MMAL_SRC=raspicam/RaspiCamControl.c raspicam/RaspiCLI.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
-LIBS = @LIBINTL@ @LIBS@
|
||||||
|
|
||||||
|
bin_PROGRAMS = motion
|
||||||
|
|
17
package/motion/0002-enable-h264-omx-codec.patch
Normal file
17
package/motion/0002-enable-h264-omx-codec.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Author: jasaw
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/ffmpeg.c b/src/ffmpeg.c
|
||||||
|
index 3af961a..d59f0e1 100644
|
||||||
|
--- a/src/ffmpeg.c
|
||||||
|
+++ b/src/ffmpeg.c
|
||||||
|
@@ -680,7 +680,7 @@ static const char *ffmpeg_codec_is_blacklisted(const char *codec_name){
|
||||||
|
* - remove the "h264_omx" from this blacklist.
|
||||||
|
* More information: https://github.com/Motion-Project/motion/issues/433
|
||||||
|
*/
|
||||||
|
- {"h264_omx", "Codec causes lock up on your FFMpeg version"},
|
||||||
|
+ //{"h264_omx", "Codec causes lock up on your FFMpeg version"},
|
||||||
|
#endif
|
||||||
|
#if (LIBAVFORMAT_VERSION_MAJOR < 57) || ((LIBAVFORMAT_VERSION_MAJOR == 57) && (LIBAVFORMAT_VERSION_MINOR < 41))
|
||||||
|
{"h264_v4l2m2m", "FFMpeg version is too old"},
|
||||||
|
|
@ -2,6 +2,8 @@ config BR2_PACKAGE_MOTION
|
|||||||
bool "motion"
|
bool "motion"
|
||||||
depends on BR2_USE_MMU # fork()
|
depends on BR2_USE_MMU # fork()
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
select BR2_PACKAGE_FFMPEG
|
||||||
|
select BR2_PACKAGE_FFMPEG_SWSCALE
|
||||||
select BR2_PACKAGE_JPEG
|
select BR2_PACKAGE_JPEG
|
||||||
select BR2_PACKAGE_LIBMICROHTTPD
|
select BR2_PACKAGE_LIBMICROHTTPD
|
||||||
help
|
help
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Locally computed:
|
# Locally computed:
|
||||||
sha256 d97ec6ae766adfd478b6f7f9cc0da5f2fe21faa9366d98664be255714c1cf81d motion-release-4.2.1.tar.gz
|
sha256 567c385af81130f7883e4c417c34c0d6dc82ddba47b94478831f973e0f3ef02b motion-release-4.3.0.tar.gz
|
||||||
sha256 91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad COPYING
|
sha256 91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad COPYING
|
||||||
|
@ -4,76 +4,25 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MOTION_VERSION = release-4.2.1
|
MOTION_VERSION = release-4.3.0
|
||||||
MOTION_SITE = $(call github,Motion-Project,motion,$(MOTION_VERSION))
|
MOTION_SITE = $(call github,Motion-Project,motion,$(MOTION_VERSION))
|
||||||
MOTION_LICENSE = GPL-2.0
|
MOTION_LICENSE = GPL-2.0
|
||||||
MOTION_LICENSE_FILES = COPYING
|
MOTION_LICENSE_FILES = doc/COPYING
|
||||||
MOTION_DEPENDENCIES = host-pkgconf jpeg libmicrohttpd $(TARGET_NLS_DEPENDENCIES)
|
|
||||||
# From git
|
|
||||||
MOTION_AUTORECONF = YES
|
MOTION_AUTORECONF = YES
|
||||||
|
MOTION_DEPENDENCIES = host-pkgconf ffmpeg jpeg libmicrohttpd
|
||||||
|
MOTION_CONF_OPTS = --without-pgsql \
|
||||||
|
--without-sqlite3 \
|
||||||
|
--without-mysql \
|
||||||
|
--without-mariadb \
|
||||||
|
--with-ffmpeg=$(STAGING_DIR)/usr/lib
|
||||||
|
|
||||||
MOTION_CONF_OPTS += --without-optimizecpu
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
|
||||||
MOTION_DEPENDENCIES += ffmpeg
|
|
||||||
MOTION_CONF_OPTS += --with-ffmpeg
|
|
||||||
else
|
|
||||||
MOTION_CONF_OPTS += --without-ffmpeg
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
|
||||||
MOTION_DEPENDENCIES += mysql
|
|
||||||
MOTION_CONF_OPTS += \
|
|
||||||
--with-mysql \
|
|
||||||
--with-mysql-include=$(STAGING_DIR)/usr/include/mysql \
|
|
||||||
--with-mysql-lib=$(STAGING_DIR)/usr/lib
|
|
||||||
else
|
|
||||||
MOTION_CONF_OPTS += --without-mysql
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
|
||||||
MOTION_DEPENDENCIES += postgresql
|
|
||||||
MOTION_CONF_OPTS += \
|
|
||||||
--with-pgsql \
|
|
||||||
--with-pgsql-include=$(STAGING_DIR)/usr/include \
|
|
||||||
--with-pgsql-lib=$(STAGING_DIR)/usr/lib
|
|
||||||
else
|
|
||||||
MOTION_CONF_OPTS += --without-pgsql
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
||||||
MOTION_DEPENDENCIES += sqlite
|
|
||||||
MOTION_CONF_OPTS += --with-sqlite3
|
|
||||||
else
|
|
||||||
MOTION_CONF_OPTS += --without-sqlite3
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_WEBP_MUX),y)
|
|
||||||
MOTION_DEPENDENCIES += webp
|
|
||||||
MOTION_CONF_OPTS += --with-webp
|
|
||||||
else
|
|
||||||
MOTION_CONF_OPTS += --without-webp
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not use default install target as it installs many unneeded files and
|
|
||||||
# directories: docs, examples and init scripts
|
|
||||||
define MOTION_INSTALL_TARGET_CMDS
|
define MOTION_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) -D -m 0644 $(@D)/motion-dist.conf \
|
cp $(@D)/src/motion $(TARGET_DIR)/usr/bin/motion
|
||||||
$(TARGET_DIR)/etc/motion/motion.conf
|
|
||||||
$(INSTALL) -D -m 0755 $(@D)/motion $(TARGET_DIR)/usr/bin/motion
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MOTION_INSTALL_INIT_SYSV
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
|
||||||
$(INSTALL) -D -m 0755 package/motion/S99motion \
|
MOTION_DEPENDENCIES += rpi-userland
|
||||||
$(TARGET_DIR)/etc/init.d/S99motion
|
endif
|
||||||
endef
|
|
||||||
|
|
||||||
define MOTION_INSTALL_INIT_SYSTEMD
|
|
||||||
$(INSTALL) -D -m 644 package/motion/motion.service \
|
|
||||||
$(TARGET_DIR)/usr/lib/systemd/system/motion.service
|
|
||||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
||||||
ln -sf ../../../../usr/lib/systemd/system/motion.service \
|
|
||||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/motion.service
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user