* 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
* 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
* 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
* 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
* 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.
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
webu_hostname currently incorrectly parses IPv6 [] style IP addresses in hostnames because it misinterprets the colons within them as the port delimiting colon.