Commit Graph

1311 Commits

Author SHA1 Message Date
Sylvain Garrigues
e69cc42f46 Do not override user's CFLAGS nor LDFLAGS 2020-03-07 17:01:52 -07:00
Vasiliy Glazov
a4a48baf86 Fix build with GCC 10. 2020-03-07 17:00:21 -07:00
MrDave
346ad0dd7f Adjust version script 2020-01-22 20:40:20 -07:00
Mr-DaveDev
2a1e525815 Version 4.3.0 (#1096) release-4.3.0 Release-4.3.0 2020-01-13 21:26:23 -07:00
Mr-DaveDev
e855dbe83f Revise to 0.19 of gettext 2020-01-12 19:07:51 -07:00
Mr-DaveDev
947e6737c5 Additional translations
* Additional translations
2020-01-12 19:06:50 -07:00
Mr-DaveDev
10807b1d96 Add default for non ascii characters 2019-12-29 13:54:13 -07:00
Mr-DaveDev
23dffb03cb Add notice to stream.c 2019-12-01 15:47:56 -07:00
Mr-DaveDev
bb0d931256 Add default translations
Add default translations using the popular online translation web site.
2019-12-01 14:30:46 -07:00
Mr-DaveDev
c9bef91685 Remove poll option for mhd
closes #1063
2019-12-01 14:30:10 -07:00
Rosen Penev
7ae3bd5f0c Fix format warnings (#1064)
Replaced several static const chars with defines. GCC cannot check
const char * as it is a variable, not a constant expression. C
unfortunately does not support constexpr.

Discovered with -Wformat=2.
2019-12-01 13:21:16 -07:00
Mr-DaveDev
d8ea81dc8c Adjust loop for first motion 2019-10-30 18:19:43 -06:00
Mr-DaveDev
8f18946261 Add some defaults for Pi cam 2019-10-28 22:31:01 -06:00
Mr-DaveDev
5d88fe68bb Add User Requested Decoder
Add user option for decoder
2019-10-28 22:30:30 -06:00
Mr-DaveDev
6033120053 Use time of first SAVE image in the ring for FIRSTMOTION 2019-10-28 22:28:34 -06:00
jasaw
4cb16937b8 ffmpeg: do not encode NAL as the first video frame 2019-10-28 22:28:10 -06:00
Mr-DaveDev
98f060dacb Allow for embedded & via webcontrol
closes #1014
2019-10-16 20:22:26 -06:00
Mr-DaveDev
cf5138bc6f Revise mmal libs
Closes #1034
2019-10-16 20:21:57 -06:00
Mr-DaveDev
001b281914 Use database port for maria/mysql
Closes #1022
2019-10-16 20:21:08 -06:00
Mr-DaveDev
90678890a5 Eliminate my_bool
Closes #995
2019-10-16 20:20:29 -06:00
Mr-DaveDev
3518726e1e netcam_url jpeg option
* Allow for netcam_url jpeg
closes #939
2019-10-16 20:19:45 -06:00
popoviciri
5c8ac5282b MMAL fix 'for' loop initial declaration 2019-09-29 09:24:52 -06:00
Mr-DaveDev
a22b787897 Add back the --no-as-needed for mmal 2019-09-28 21:10:11 -06:00
Mr-DaveDev
f2522711ef Add Slovak translations 2019-09-28 13:00:30 -06:00
Mr-DaveDev
e4fb274a55 Update for new messages in native language files 2019-09-28 10:00:34 -06:00
Mr-DaveDev
8e6318b6b9 Revise distributed samples and remove local make rule 2019-09-28 10:00:09 -06:00
Mr-DaveDev
1dd05e6789 Add DESTDIR to local rule 2019-09-24 21:49:01 -06:00
jasaw
45e54f44f8 ffmpeg: rework blacklist 2019-09-24 21:48:43 -06:00
Mr-DaveDev
740c436a97 Update version script 2019-09-24 21:48:22 -06:00
Mr-DaveDev
0dc2ae9372 Autotools (#1011)
* Revise directory structure

* Update translation files and mmal

* Test for sys/videoio.h

* Revise sysconfdir specification

* Update defines to match configure

* v4l2 configure, translations

* Update travis

* Updated tests for travis

* Updated 16.04 and fewer checks

* Update travis for Mac

* Move CODE_STANDARD and delete test_builds.sh

* Update documentation
2019-09-21 21:15:08 -06:00
Mr-DaveDev
be0838067d Eliminate compiler warnings
* Resolve compiler warnings

* Remove mysql testing for buster

* Adjust for null terminating byte
2019-09-20 20:09:57 -06:00
Mr-DaveDev
55341663cb Adjust location of functions in module (#1009) 2019-09-20 12:22:19 -06:00
Mr-DaveDev
b6fced321b Update travis test distros (#1008) 2019-09-20 12:22:05 -06:00
popoviciri
2eabcfc371 Update mmal raspicam (#1005)
* update raspicam files with latest from raspberrypi/userland

* document changes to "RaspiCamControl.c" file
2019-09-20 11:46:20 -06:00
jasaw
a389bd96d1 OMX: disable zerocopy the via avoption (#998)
ffmpeg no longer force enable zerocopy on RPi builds, which means
we can disable zerocopy from ffmpeg options.
2019-09-20 11:45:48 -06:00
jasaw
fc11704ceb emulate motion also produces movies with no pause (#997) 2019-09-20 11:44:08 -06:00
jasaw
11da9efef6 Support h264_v4l2m2m video encoder (#991)
* support h264_v4l2m2m encoder

* fix h264_v4l2m2m encoder draining error

Handle h264_v4l2m2m encoder setting packet pts and size to zero rather
than returning AVERROR_EOF to indicate the end of codec draining.

* ffmpeg_alloc_video_buffer: more useful error message

* ffmpeg_alloc_video_buffer: get rid of goto

* ffmpeg: rearrange end of codec drain detection code

* ffmpeg: only NV21 format convert if h264_v4l2m2m

* ffmpeg: handle separated NAL unit during encoding

* ffmpeg: ensure first frame PTS is zero

* Revise to use enum and parse into some smaller functions
2019-09-20 11:43:04 -06:00
tomamplius
e2cb143155 fix comment (#975) 2019-09-20 11:42:14 -06:00
hasselh
b998316f66 v4l2_fps_set added to set device framerate (#969)
* v4l2_fps_set added to set device framerate

* Update video_v4l2.c

in v4l2_fps_set:
- moved function v4l2_fps_set() up into HAVE_V4L2 logic
- replaced calloc() by mymalloc()
- removed redundant memset()
- added freeing up memory before function exit

* Revise setting and reporting for fps on v4l2 devices
2019-09-20 11:41:33 -06:00
Raphael Graf
67418acb2c Include sys/videoio.h as an alternative to linux/videodev2.h (#908)
* Include sys/videoio.h as an alternative to linux/videodev2.h
and check for defined(BSD) instead of defined(__FreeBSD__).
This makes webcams work on OpenBSD.

Resolves #904

* Fix apple build
2019-09-20 11:40:41 -06:00
tosiara
10aa98b4fa jpeg code cleanup (#851)
* Changed how jpeg is written to file
Removed redundant code, put jpeg to memory and then write to file using fwrite

* Similar reuse of function put_jpeg_grey_memory

* Add jpeg error handler to put_jpeg_yuv420p_memory
Handlers copied from jpegutils.c

* Too much copied, removing extra line

* Similar changes to grey jpeg code

* Moved jpeg related functions from picture.c to jpegutils.c

* Fix for travis: unused parameter

* Few more unnecessary code removed from picture.c

* Fix for travis: no previous prototype

* Adjust function names and headers
2019-09-20 11:40:07 -06:00
Mr-DaveDev
ff903de2e3 Fix substream processing when images not modulo 16 (#990) 2019-08-18 17:49:22 -06:00
Mr-DaveDev
95b1358dec Ignore invalid packet data (#986) 2019-08-17 16:34:46 -06:00
Mr-DaveDev
badd828c95 Revise Netcam handler (#984)
* Eliminate reconnect delay
2019-08-17 16:34:27 -06:00
Mr-DaveDev
3f41b3618f Answer incorrect web stream requests (#982)
Closes #916
2019-08-13 20:18:23 -06:00
Mr-DaveDev
3cf5a549f0 Delay on reconnect (#983) 2019-08-13 20:17:33 -06:00
tosiara
1c93c20e47 Incorrect file type specified when saving snapshots (#981)
Should have been FTYPE_IMAGE_SNAPSHOT instead of a generic FTYPE_IMAGE
Reported here: https://github.com/Motion-Project/motion/issues/980
2019-08-12 18:55:14 -06:00
Tim Small
9db8e03b03 systemd unit file enhancements and cleanup (#907)
* Remove unused PIDFile setting

Since the default config doesn't create a PID file, and they're not
needed for systemd unit files which aren't forking (this unit file
runs motion as a 'simple' service), this setting can be removed in the
default config.

* Add comment about the systemd unit file, including license info.

* Expand description, add man page reference.

* systemd: read /etc/default/motion for compatibility with init script.

Allow the user to specify environment variables to be inherited by
motion when started via native systemd service.  Noop if file does not
exist.  Useful to pass env files to scripts etc. which are called by
motion (e.g. with on_event_start etc.).

* Comment discarding of stderr.

* Add reload functionality to systemd unit file.

* Add restart behaviour to systemd unit file.

* Set motion to run as user "motion" for consistency with init scripts

* Honor start_motion_daemon setting in /etc/default/motion

For existing installations which have disabled auto-start of the daemon
by setting start_motion_daemon != yes in /etc/default/motion, check this
variable as a prerequisite for systemd to start motion.

* systemd: Document some security related options, don't enable by default.
2019-08-11 20:48:54 -06:00
tosiara
24a0619b5c Add new variable to the context structure: extpipecmdline (#961)
It will contain full command line of extpipe
The problem was that this command line was only stored in a temp buffer
upon creation of the pipe. So it was not possible to write full command
line into log if pipe fails to put a frame
2019-08-11 20:47:02 -06:00
Calin Crisan
5d514cc363 Guide: replace minimum_gap with minimum_frame_time (#920) 2019-08-11 20:41:54 -06:00