Commit Graph

695 Commits

Author SHA1 Message Date
Mr-Dave
793080eb6d Merge pull request #152 from Mr-DaveDev/ffmpeg-fixes
Timelapse fps and regression fixes
2016-09-04 07:59:48 -06:00
Mr-Dave
802c228829 Merge pull request #153 from Mr-DaveDev/image-corruption
Revert to standard os file buffering
2016-09-03 12:58:35 -06:00
MrDave
e4b5627a70 Revert to standard os file buffering 2016-09-03 11:44:36 -06:00
MrDave
e953b5d14b Timelapse fps and regression fixes 2016-09-03 08:48:38 -06:00
Mr-Dave
67cc2ccdc8 Merge pull request #150 from Mr-DaveDev/ffmpeg-fixes
ffmpeg fixes
2016-09-02 17:12:57 -06:00
MrDave
5697db1195 Change old containers to defaults 2016-09-01 21:08:15 -06:00
MrDave
22b2461cb2 Better implementation of the test codec 2016-09-01 20:35:44 -06:00
MrDave
145374680f PTS refinements, add test and remove ogg options 2016-08-31 18:25:35 -06:00
MrDave
9e4245a3df PTS fixes 2016-08-27 21:08:51 -06:00
MrDave
fbba7b8f7d Timelapse revision of swf to mpg 2016-08-25 19:29:09 -06:00
MrDave
8044d3cc86 Timelapse Container Fix 2016-08-24 22:06:00 -06:00
Mr-Dave
1f6cc87cd1 Merge pull request #141 from jogu/html-fix
Fix bad html in server home page
2016-08-22 20:28:11 -06:00
MrDave
9af23e8121 ffmpeg log messages and init 2016-08-22 19:57:39 -06:00
Joseph Heenan
454f03159d Fix bad html in server home page
</a/n> was presumably meant to be a </a> followed by a new line.
2016-08-22 09:34:58 +01:00
MrDave
1cf2c2eca3 Merge remote-tracking branch 'upstream/master' into ffmpeg-fixes 2016-08-21 21:38:20 -06:00
MrDave
8b2dd73713 Report versions used and revise log levels 2016-08-21 21:28:32 -06:00
MrDave
ec83f0fbda Scale movie quality/crf values based upon ffmpeg_variable_bitrate values from 0 to 100 2016-08-21 21:00:25 -06:00
Mr-Dave
fd5e9ebef4 Merge pull request #140 from jogu/rasppi3-fix
Fix for gcc crashing during configure / unable to build on raspberry pi 3
2016-08-21 16:14:23 -06:00
Joseph Heenan
c7ca2af868 Fix #104 Use optimal compilation options on Raspberry Pi 3
gcc on the raspberry pi 3 crashes when called from our configure
script, and even in simpler cases:

$ gcc -mcpu=native -march=native
*** Error in `gcc': double free or corruption (top): 0x0190dbc0 ***
Aborted

So we need to add explicit optimisation options if we want to build an
optimal binary on the Pi 3.

As per:

https://www.element14.com/community/community/raspberry-pi/blog/2016/02/29/the-most-comprehensive-raspberry-pi-comparison-benchmark-ever

the raspberry pi 3 is an armv8, but cpuinfo incorrectly reports it as
an armv7. So we can’t detect the CPU using /proc/cpuinfo.

Instead we use /proc/device-tree/model, which explicit has the
Raspberry PI type in it, e.g. “Raspberry Pi 3 Model B Rev 1.2”.

https://www.raspberrypi.org/forums/viewtopic.php?t=144115&p=952479
lists hopefully correct optimal gcc flags, namely:

Some basic options that should be the defaults anyway:-
-mfloat-abi=hard -mlittle-endian -munaligned-access
(confirmed; these are the defaults)

Pi1 -mcpu=arm1176jzf-s  -mfpu=vfp
Pi2 -mcpu=cortex-a7  -mfpu=neon-vfpv4
Pi3 -mcpu=cortex-a53  -mfpu=neon-fp-armv8
2016-08-21 10:37:58 +01:00
Joseph Heenan
d40a4f4bc3 #104 Fix compile failing on raspberry pi 3
When we test if the compiler options work, we didn't test for the
possibility of the compiler crashing which unfortunately it does on
the raspberry pi 3 - crashing in this case means returning exit code
134 (i.e. SIGABRT).

Change the test so that instead of testing for one particular failure,
we invert and test for success - treating everything else as failure.
2016-08-21 10:37:58 +01:00
MrDave
8e20d186b6 Fix truncate images. Issue 131 2016-08-20 20:00:52 -06:00
MrDave
4042a40081 Eliminate developer-flags warnings 2016-08-20 19:53:16 -06:00
MrDave
1ffcbe296c ffmpeg 3.0 fixes 2016-08-20 19:36:18 -06:00
MrDave
e10985581b FPS Fix. Issue 132 2016-08-20 19:13:48 -06:00
Mr-DaveDev
3c4ab02d0f Merge branch 'master' of https://github.com/ccrisan/motion into ffmpeg-fixes 2016-08-20 10:23:19 -06:00
Mr-Dave
9fdc1266ea Merge pull request #138 from Mr-DaveDev/pkg-config
Revised configure messages for pkg-config
2016-08-20 08:14:06 -06:00
Mr-DaveDev
55945b6d7d Updated configure.ac for pkg-config 2016-08-18 21:23:58 -06:00
Joseph Heenan
7fdd210543 Produce more helpful error if pkg-config not installed
Currently if users run autoreconf then configure without having
pkg-config installed, they see:

./configure: line 5283: syntax error near unexpected token FFMPEG,'
./configure: line 5283:    PKG_CHECK_MODULES(FFMPEG, libavutil
libavformat libavcodec libswscale, HAVE_FFMPEG=yes)'

This is not hugely helpful and causes support queries and confusion.
It is because the pkg.m4 file that defines PKG_CHECK_MODULES is not
available of pkg-config is not installed.

To work around this, remove PKG_CHECK_MODULES and do roughly the
equivalent calling pkg-config directly. To mirror the current
behaviour, we also add a test for pkg-config being present and abort
if it is not. (I am not 100% sure this is the desired behaviour, but
regardless this commit is still an improvement on what we currently
have.)
2016-08-18 23:09:24 +01:00
MrDave
e44a5a9898 Change log update 2016-08-17 18:45:14 -06:00
MrDave
718f1a8600 Merge branch 'jogu-stack-corruption' 2016-08-17 18:42:55 -06:00
MrDave
c2770c49bb Merge branch 'stack-corruption' of https://github.com/jogu/motion into jogu-stack-corruption 2016-08-17 18:42:33 -06:00
MrDave
d07175348b Revise version number 2016-08-17 18:42:14 -06:00
Joseph Heenan
ad5013bbba Fix stack corruption in event_ffmpeg_timelapse
The current definitions (char codec_swf[3] = "swf" etc) are declared
one character too short resulting in stack corruption or crashes in
some cases.

To avoid the possibility of an error at all, we change ffmpeg_open to
take a const char * as it doesn't need to alter the string.

Closes https://github.com/Mr-Dave/motion/issues/109
2016-08-09 07:38:24 +01:00
Calin Crisan
675b4befb3 ffmpeg/h264: actually pass the crf value to the options 2016-07-17 16:51:27 +03:00
Calin Crisan
b4138ee0dd h264 codec: fixed crf from vbr: the vbr range is actually 1 to 32767 2016-07-06 16:58:09 +03:00
Calin Crisan
e65ea2454d h264 codec: set crf option based on configured vbr 2016-07-03 19:49:06 +03:00
Mr Dave
9b4c16cae0 revise version number to 3.4.1 release-3.4.1 2015-10-18 20:21:44 -06:00
Mr Dave
7509ae848d Merge master into 3.4 2015-10-17 14:13:58 -06:00
Mr Dave
2caced3e71 Revised instructions 2015-10-03 10:42:23 -06:00
Mr Dave
58e065e4f0 Swap PKG_CONFIG_PATH and user spec 2015-09-30 20:41:45 -06:00
Mr Dave
2f0fd7dec1 Add : in netcam_url path spec 2015-09-30 20:27:47 -06:00
Mr Dave
0badf12210 Remove ffmpeg coded_frame 2015-09-30 20:25:24 -06:00
Mr Dave
fa569b178a HEVC Revision for old ffmpeg 2015-09-30 20:21:29 -06:00
momo-i
041797709d Merge remote-tracking branch 'upstream/master' 2015-09-28 17:03:02 +09:00
Mr Dave
2bd79c795b Make/configure changes 2015-09-26 21:19:06 -06:00
momo-i
e6bc27c012 HEVC testing 2015-09-25 16:17:19 +09:00
Mr Dave
b1940b0850 Revised description in configuration file 2015-09-22 21:52:38 -06:00
Mr Dave
e6aba9b46d Change default in configure for ffmpeg 2015-09-22 21:46:38 -06:00
Mr Dave
2fdf34a80f Slight Packaging Changes 2015-09-21 11:16:29 -06:00
Rex Feany
8e62b195f2 compile against ffmpeg from github@58fe57d5a05ad8d15c320b2bd163debbc412bdd3
fix minor compilation issues
use pkg-config
2015-09-21 10:32:15 -06:00