1127 Commits

Author SHA1 Message Date
MrDave
850f412bf0 Version 4.1.1 release-4.1.1 2017-12-09 18:05:49 -07:00
Mr-DaveDev
eef702b3d7 Fix builds on musl based systems
* Fix pthread_setname_np detection

Commit 6617c6f2c8 replaced
AC_LINK_IFELSE with AC_COMPILE_IFELSE. This has broken the
pthread_setname_np detection as compilation will always succeed even if
pthread_setname_np is not available (if the function is not found, a
simple warning will be displayed in config.log).

The correct fix is to put back AC_LINK_IFELSE with -pthread in LIBS
otherwise compilation will fail on toolchain without pthread_setname_np.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

* Check for pthread_getname_np

On some toolchains (like musl), pthread_setname_np is available but not
pthread_getname_np so add this check in configure.ac

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

* Revision for detection of XSI vs GNU variants of strerror
2017-12-09 15:42:16 -07:00
Mr-DaveDev
fe0f201345 Fix saving of pictures with highres (#564) 2017-12-07 17:25:59 -07:00
Mr-DaveDev
caea41df75 Add error checking on jpeg utils (#563) 2017-12-07 17:25:40 -07:00
Mr-DaveDev
64c159e020 Fix filename for debug movies (#562) 2017-12-07 17:25:22 -07:00
Mr-DaveDev
93c004c915 Update version script for old distros (#561)
* Update version script for old distros and tag dirty status
2017-12-07 17:25:03 -07:00
MrDave
ccbe2f5927 Version Script Update 2017-11-10 20:51:27 -07:00
Mr-DaveDev
adba9ca6af CHANGELOG Update (#537)
Version 4.1
release-4.1
2017-11-10 20:47:06 -07:00
Mr-DaveDev
b103dc08b7 Documentation Update (#534)
* Documentation Update
2017-11-07 21:02:29 -07:00
Mr-DaveDev
336734e44e Compiler Warnings (#535)
* 17.10 Compiler Revisions
* Config Changes
2017-11-06 18:55:39 -07:00
Mr-DaveDev
fbb3c2e022 Limit parameters available on webcontrol (#530)
Implement a new configuration option which allows users to specify the
type of parameters which can be accessed via the webcontrol page.  The
new option permits levels 0(none) to 3(restricted) with a default of
none.  This option is to enhance the security associated with the
application for users that may expose the webcontrol port publicly.

Close #515
2017-11-01 18:13:05 -06:00
Mr-DaveDev
ec9a5f993d Separate Timelapse Options (#528)
* Timelapse Options

1.  Revise the configuration options to have some of the timelapse options use distinct configuration values.

Closes #43

* Whitespace
2017-10-29 16:04:07 -06:00
Mr-Dave
d4cbc787a1 Merge pull request #527 from Mr-DaveDev/issues
Logging, V4l2, Flood Control, RTMP Issues
2017-10-28 20:15:10 -06:00
MrDave
07a48e45b5 Logging for buffered packet
1.  Remove error logged when a buffered packet is encoded.

Closes #457
2017-10-28 19:35:01 -06:00
MrDave
3f75f380c1 Add RTMP format specifier
1.  Add RTMP as a valid network camera protocol

Closes #401
2017-10-28 19:32:24 -06:00
MrDave
f34ad7485c Add flood control to logger
1.  Implement flood control to avoid duplication of messages to the log.

Closes #282
2017-10-28 19:21:11 -06:00
MrDave
2e95ed01c7 Configuration Parameters to log
Revise the dump of configuration parameters to automatically send them to the
log at the INF level for use in issue reporting.

Closes #509
2017-10-28 19:16:10 -06:00
MrDave
5aa9002a93 Log Authentication Failures
1.  Add IP logging for authentication failures using MD5
2017-10-28 19:10:38 -06:00
MrDave
d00220b5c4 Validate v4l2 parameters in netcam
Add functionality to validate that the palette parameters passed into
v4l2 via netcam are appropriate.

Closes #494
Closes #493
Closes #456
2017-10-28 19:04:13 -06:00
Mr-DaveDev
69ad4fb350 High Resolution (#522)
* High Resolution

Refactor the netcam_rtsp module and associated image variables to allow for processing a dual stream from rtsp cameras.

Continue the process of segregating the functionality of the netcams into distinct modules based upon their function.
2017-10-28 17:29:16 -06:00
Ismo Puustinen
8fd7a6156d Makefile.in: allow building out-of-tree. (#453)
Allow code to be compiled in a separate build tree.
2017-10-22 18:12:52 -06:00
genius3000
07e3df36d7 WIP: Log client IP (stream, webcontrol) where useful (#434)
* Log failed authentication requests and add IP to standard read log
2017-10-22 18:11:37 -06:00
genius3000
bd9c16567f Fix config write bug introduced in eeecf61 (#516)
The correction to my previous method of setting an existing string
(commit 3af03ad) inadvertently caused a memory access violation,
which causes a crash when trying to write the config.
Fix this by using a separate string buffer.
2017-10-15 10:31:02 -06:00
genius3000
c03a4f98cb Add a runtime argument to dump config options (#513)
* Add a runtime argument to dump config options

In order to simplify support requests, we can now dump all enabled
config options to the log(file), with argument 'o' for 'options'.
Any likely sensitive information will be redacted.

* Documentation update for dump config argument
2017-10-15 10:30:46 -06:00
jasaw
f9b059aa62 do not force packet keyframe (#502)
* do not force packet keyframe

* set packet metadata for old ffmpeg
2017-10-15 10:30:14 -06:00
tosiara
7d8ba03cfc Motion substream (#454)
Add option to output a sub-stream from Motion
2017-10-15 10:29:43 -06:00
Mr-Dave
2eedfdc015 Merge pull request #510 from tosiara/privacy
CONTRIBUTION GUIDE: added link to the privacy wiki article
2017-09-23 09:35:01 -06:00
tosiara
398480dd8e CONTRIBUTION GUIDE: added link to the privacy wiki article 2017-09-21 16:01:36 +03:00
Mr-Dave
2a140fa31f Merge pull request #501 from Mr-DaveDev/14.04-issues
14.04 issues
2017-09-16 20:35:10 -06:00
Mr-Dave
b1c6bca2b1 Merge pull request #496 from inodlite/unpad-mmal-frames
Handle padded MMAL frames
2017-09-16 20:21:00 -06:00
Mr-Dave
924ec9fb73 Merge pull request #477 from jasaw/tune-h264-encode-quality
Tune h264_omx encode video quality
2017-09-16 20:20:13 -06:00
Mr-Dave
8863857215 Merge pull request #476 from jasaw/add-preferred-codec-config
Extend ffmpeg_video_codec config to take optional preferred_codec
2017-09-16 20:16:51 -06:00
Joo Aun Saw
516f9f19c9 fix sizeof comparison warning 2017-09-12 14:55:58 +10:00
Joo Aun Saw
cf0d95f243 blacklist h264_omx codec 2017-09-12 14:47:26 +10:00
Mr-Dave
9d80f272e5 Merge pull request #495 from jasaw/pts-before-encode
set PTS value before encoding
2017-09-11 19:06:15 -06:00
telemaxx
29ea11e629 Update webhttpd.c (#484)
Just adding a newline to get a nicer looking html.
<BODY> was in the same line as the meta line.
2017-09-10 20:00:02 -06:00
Mr-Dave
425bf05c08 14.04 Issues
Resolve issues related to RTSP Cameras
1.  Do not drain the codec at each frame
2.  Add variable active to context and remove #ifdef HAVE_FFMPEG
3.  Reset return code for encoding when timing problems for pts
4.  Set the jpeg error messages to debug level.
5.  Comment out the frame timing debug messages that flood log.
2017-09-10 17:03:14 -06:00
MrDave
b744c3ca25 MJPG Huffman tables
Provide Huffman tables to v4l2 mjpg streams using older jpg libraries.
2017-09-10 09:38:53 -06:00
Mr-DaveDev
0e7566360f Additional Travis Tests (#499)
* Additional Travis Testing

This commit includes the following revisions to the testing.
1.  Add a output from the configure script to indicate version of libavformat.
2.  Add test_builds.sh script which includes tests for following with/without options.
    --with-developer-flags, --without-ffmpeg, --without-mysql, --without-pgsql
    --without-v4l2, --without-mysqlite3
3.  Add testing via docker for 16.04 and 17.04
2017-09-10 09:19:06 -06:00
Mr-DaveDev
eeecf611f7 Resolve Developer Warnings (#497)
1.  Revise the developer warnings to treat all warnings as errors
2.  Revise a few of the comparisons of signed to unsigned.
3.  Isolate the setjmp to separate function since it is warning on 14.04
4.  Remove redundant clang OSX test since gcc is really clang according to travis logs
2017-09-08 18:18:20 -06:00
inodlite
27102bba56 Allow copy from larger buffers in mmalcam_next, as those are from (un)padded frames. 2017-09-05 22:29:08 -07:00
inodlite
7de5b8a07c Print image size on failure in mmalcam_next. 2017-09-05 22:28:58 -07:00
inodlite
ef36f9c9c5 Set MMAL buffer size to accommodate padded frame, as required by RPi's firmware. 2017-09-05 22:23:09 -07:00
inodlite
b1f1356a3e Enable padding-removal for MMAL video port. 2017-09-05 22:20:48 -07:00
Joo Aun Saw
2c072634ef set PTS value before encoding 2017-09-05 11:09:41 +10:00
Mr-Dave
b2faa694e4 Merge pull request #488 from Mr-DaveDev/travis-update
Travis Update
2017-09-04 10:05:12 -06:00
Joo Aun Saw
fd98597647 do not include alloca.h 2017-09-04 15:13:00 +10:00
Joo Aun Saw
ac4ce84a8f replace alloca with malloc 2017-09-04 15:00:46 +10:00
Mr-Dave
5a03718a4b Merge pull request #485 from ferdinandkeil/master
Documentation update for building on CentOS 7
2017-09-03 14:35:47 -06:00
MrDave
df35d2b7ef Travis Update
This commit updates the travis testing for the following:

1.  Adds Mac OS X testing for gcc and clang
2.  Removes the testing on precise
3.  Adds the developer flags to the configure
4.  For trusty, tests both the default ffmpeg libraries from apt as well as those in the ppa.
2017-09-02 14:30:29 -06:00