Commit Graph

1280 Commits

Author SHA1 Message Date
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
Jacob A. van der Kolk, Ph.D
74e6f207f3 Documentation ambiguity fix (#949)
In response to https://github.com/Motion-Project/motion/issues/948
2019-08-11 20:41:10 -06:00
Vitaly Sinilin
3b1906fab2 Avoid using word semicolon to refer to : (#954)
Because it's actually a colon.
2019-08-11 20:40:27 -06:00
jasaw
8c345cbe9f ffmpeg: do bitrate calculation in 64 bits to prevent overflow (#959) 2019-08-11 20:39:43 -06:00
Mr-DaveDev
c43a56095e Version 4.2.2 2019-02-03 11:51:34 -07:00
Mr-DaveDev
b5b8496492 OpenBSD compile 2019-02-03 10:40:17 -07:00
Mr-DaveDev
cf1582967c Webcontrol Actions (#900)
* Update Webcontrol Actions and Resolve Compiler Warnings
2019-02-03 10:16:59 -07:00
Mr-DaveDev
503af40f1d Set packet stream_index for pass through
Closes #889
2019-01-19 20:40:59 -07:00
Mr-DaveDev
1d6556289b Revise stream rate 2019-01-19 20:39:13 -07:00
Mr-DaveDev
f40b46f331 Answer stream only after first pass of motion loop
closes #883
2019-01-19 20:38:31 -07:00
Mr-DaveDev
b550370585 Save preview on emulate
Closes #876
2019-01-19 20:36:22 -07:00
Mr-DaveDev
5508eb0c5a Initialize for track type 4
Closes #877
2019-01-19 20:35:10 -07:00
Martin Pollard
1faacf12be Fix webu_hostname to handle IPv6 [] colons (#885)
webu_hostname currently incorrectly parses IPv6 [] style IP addresses in hostnames because it misinterprets the colons within them as the port delimiting colon.
2019-01-13 22:03:04 -07:00
Mr-DaveDev
7bd179c085 Update Version number to 4.2.1+git 2018-12-09 11:52:25 -07:00
Mr-DaveDev
b7f8b2dcdd Version 4.2.1 2018-12-09 10:15:16 -07:00
Mr-DaveDev
3c249fbcfa Logging messages
Closes #861
2018-12-02 12:06:26 -07:00
tosiara
3955c75c85 Added SQL logging
Closes #858
2018-11-30 18:26:47 -07:00
Mr-DaveDev
d8377cb5bc v4l2 via netcam revisions
Closes #853
Closes #854
Closes #855
Closes #857
2018-11-27 18:34:55 -07:00
tosiara
7573d9e1e1 Force null terminator when writing description string into EXIF
Fixes #833
2018-11-25 10:59:49 -07:00
Fabrice Fontaine
f001f5aec6 fix static linking with webp (#850)
Static build with webp fails because webp is put before webpmux.

Fixes:
 - http://autobuild.buildroot.org/results/4d4e72808300ba1ff79ca794930112b554eb2533

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2018-11-22 16:46:01 -07:00
Mr-DaveDev
f76cbf3743 Additional message for initial setup 2018-11-21 11:28:30 -07:00
Mr-DaveDev
37c088a933 Prevent movie_passthrough updates via webcontrol
Closes #836
2018-11-20 18:20:36 -07:00
Mr-DaveDev
f7f0fb9ab1 Eliminate Log Message 2018-11-20 18:19:44 -07:00
Mr-DaveDev
ccea9a3690 Remove privacy mask areas from motion detection 2018-11-20 18:19:03 -07:00
Mr-DaveDev
06b403fdad Passthrough locking revision
Closes #843
2018-11-18 08:43:40 -07:00
Mr-DaveDev
d49630f404 Guide Update
* Guide update
2018-11-14 21:31:10 -07:00
Mr-DaveDev
1919f22fe5 Webstream Rate Update 2018-11-14 21:29:56 -07:00
adameat
f65fb529d6 webstream rate calculations 2018-11-14 19:59:54 -07:00
tosiara
8d9c585e3d Obsolete function
Has been removed with cleanup of deprecated substream code
2018-11-14 19:56:53 -07:00
Mr-DaveDev
c22d4a46d0 Update version number to 4.2+git 2018-11-14 19:47:14 -07:00
Mr-DaveDev
4b72282855 Version Update for 4.2 release-4.2 2018-10-28 09:59:59 -06:00
Mr-DaveDev
b48f782cf7 Legacy interface revisions 2018-10-28 08:44:10 -06:00