Isaac Connor
9faaba9300
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
2019-04-05 15:18:39 -04:00
Isaac Connor
9ae6acf532
Fix for opening audio_in_codec
2019-04-04 17:20:21 -04:00
Isaac Connor
d97dd6cdd9
Should close videostore before closing input codecs/streams.
2019-04-04 14:11:56 -04:00
Isaac Connor
7955a1c9b2
fix version check to get rid of deprecated av_register_all
2019-04-04 12:56:00 -04:00
Isaac Connor
bc62493096
Increase sql buffer space because we are using path strings that are PATH_MAX size.
2019-04-04 12:55:35 -04:00
Isaac Connor
f6d5038586
we only use event_file if we are writing out a jpg, so only generate the event_file string if we are writing out jpgs
2019-04-04 12:37:25 -04:00
Isaac Connor
271937f005
store the snapshot_file and alarm_file strings in the boject during construction so that we don't have to do it everytime we write out an image
2019-04-04 12:28:08 -04:00
Isaac Connor
f3d0c4e643
Merge branch 'master' of github.com:zoneminder/ZoneMinder
2019-04-04 09:37:13 -04:00
Isaac Connor
8de7d576a5
spacing and use Error instead of fprintf(stderr) so that things get logged.
2019-04-04 09:35:37 -04:00
Isaac Connor
8d3fa807e2
compilation fixes for old ffmpeg
2019-04-03 16:51:41 -04:00
Isaac Connor
12631abd46
when copying a packet (for old ffmpeg) copy pts, dts and duration too
2019-04-03 16:51:27 -04:00
Isaac Connor
94479fc850
copy pkt flags as well. When pts is NOPTS_VALUE set it to zero
2019-04-03 16:03:21 -04:00
Isaac Connor
055efdc950
Merge branch 'master' of github.com:ConnorTechnology/ZoneMinder
2019-04-03 14:56:18 -04:00
Isaac Connor
bd9b5afe46
old ffmpeg doesn't have av_frame_unref and it doesn't seem to be needed
2019-04-03 14:56:14 -04:00
Isaac Connor
2e7fd7c9a2
handle really old ffmpeg not having pkt_duration
2019-04-03 14:55:29 -04:00
Isaac Connor
b53e4aa803
fix segfault
2019-04-03 14:51:10 -04:00
Isaac Connor
b6f35db4de
put back codec closing in destructure, testing with bionic
2019-04-03 14:25:18 -04:00
Isaac Connor
aece64049f
We cannot avcodec_open2 a context that has been duped. This code currently works without crashes and leaks on ffmpeg 2.8
2019-04-03 13:23:00 -04:00
Isaac Connor
f78e95f5d4
add is_video_context and is_audio_context and use them in zm_revceive_frame to add audio decoding support
2019-04-03 13:21:52 -04:00
Isaac Connor
bd412fa9ca
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
2019-04-02 14:25:50 -04:00
Isaac Connor
036560e3e9
Allow packets with pts=AV_NOPTS_VALUE
2019-04-02 14:23:49 -04:00
Isaac Connor
cd28559c03
when encoding audio, pts and dts have to come from the encoder.
2019-04-02 14:08:46 -04:00
Isaac Connor
87cb716500
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
2019-04-01 14:02:46 -04:00
Isaac Connor
cb33318c4a
fix invalid memory access due to incorrect opening/closing/copying of contexts
2019-04-01 14:02:39 -04:00
Isaac Connor
a6998cbc9e
Use FFMPEGDeInit instead of avformat_network_deinit
2019-04-01 13:39:11 -04:00
Isaac Connor
c9985107ee
Add a deinit function to handle avformat_network_deinit
2019-04-01 13:38:13 -04:00
Isaac Connor
ed5a448a1d
Correct pts on audio frame before sending it to the encoder so that when we flush the encoder the resulting packets have the right pts.
2019-04-01 11:13:14 -04:00
Isaac Connor
90e97ff135
Merge branch 'master' into storageareas
2019-03-28 11:20:29 -04:00
Isaac Connor
e6547953b0
fix segfault using old ffmpeg
2019-03-28 09:24:32 -04:00
Isaac Connor
acb9070b04
Add a warning when an event exceeds section length
2019-03-25 12:33:30 -04:00
Isaac Connor
5615cafc19
fix compile on old ffmpeg
2019-03-21 17:50:17 -04:00
Isaac Connor
c159dd8d10
cleanup and fix code that assumed H264
2019-03-21 14:13:56 -04:00
Isaac Connor
c791f136da
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2019-03-21 10:43:54 -04:00
Isaac Connor
a30c4d9551
rework ffmpeg_input to not use pkt_duration which doesn't exist in avconv
2019-03-21 10:41:59 -04:00
Isaac Connor
fcb9f76561
Fix out_frame->pts being nothing because we freed in_frame
2019-03-20 16:06:55 -04:00
Isaac Connor
05976b3227
Add pts to zm_dump_frame
2019-03-20 16:06:31 -04:00
Isaac Connor
3931baa2b6
fix build on old ffmpeg
2019-03-20 10:21:43 -04:00
Isaac Connor
a437c407a7
fix video_out_ctx init so that ffmpeg doesn't complain
2019-03-19 13:17:26 -04:00
Isaac Connor
f89654f442
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2019-03-19 10:50:05 -04:00
Isaac Connor
520c41da23
Merge ../ZoneMinder.connortechnology.bad into storageareas
2019-03-18 14:40:03 -04:00
Isaac Connor
b794c2ca20
fix crash by checking username without checking if it is NULL
2019-03-18 12:01:51 -04:00
Isaac Connor
dde911d16a
add more debug about command queue
2019-03-18 10:55:21 -04:00
Isaac Connor
8417230690
debug where the comms sock is
2019-03-18 10:55:08 -04:00
Isaac Connor
9b713a489d
fix sleep time by using a comparison between the frame display time and the distance between now and when we started playing.
...
handle infinite fps
2019-03-06 14:50:36 -05:00
Isaac Connor
6c8eac1ac8
Merge branch 'storageareas' into h265
2019-03-06 11:10:01 -05:00
Isaac Connor
abfb5642c8
cleanup and document updateFrameRate
2019-03-06 09:46:28 -05:00
Isaac Connor
24665264a2
Merge branch 'storageareas' of github.com:/ConnorTechnology/ZoneMinder into storageareas
2019-03-05 20:16:05 -05:00
Isaac Connor
73ae3f49ed
Merge branch 'master' into storageareas
2019-03-05 11:35:55 -05:00
Isaac Connor
b1838de701
test turning off frag_custom
2019-03-05 11:35:16 -05:00
rpdrewes
0bf001be3c
Fix for file and curl camera sources ( #2545 )
2019-03-05 09:59:36 -05:00
Isaac Connor
778707c8df
Merge branch 'master' into storageareas
2019-03-04 14:33:28 -05:00
Isaac Connor
903f5af1ef
invalid parameters should be a debug not a warning
2019-03-04 13:35:36 -05:00
Isaac Connor
95567e07a4
Merge branch 'storageareas' of github.com:/ConnorTechnology/ZoneMinder into storageareas
2019-02-26 11:43:07 -05:00
Isaac Connor
a38fcf5297
Add debug and use alternate way of figuring out how long to sleep to maintain fps
2019-02-26 11:41:02 -05:00
Isaac Connor
f7dd1b049d
Merge branch 'master' into storageareas
2019-02-26 10:16:11 -05:00
Isaac Connor
705468dfc4
if we don't have a connkey, comms will not be open so don't touch the sock file or call checkCommandQueue
2019-02-26 10:08:07 -05:00
Isaac Connor
fd310c0f0a
Merge branch 'master' into storageareas
2019-02-22 11:33:47 -05:00
Isaac Connor
443fd35d99
Fix imagesize requirements ( #2404 )
...
* introduce non-loop-unrolled version of function and use them when the image size is not a multiple of 12 or 16
* Remove tests for imagesize being a multiple of 16 or 12 to handle functions with unrolled loops
* Use non-unrolled functions when image size is not a multiple of 12 or 16
* use std_blend when image is odd size
2019-02-22 09:44:57 -05:00
Isaac Connor
c626b0fb8e
if adding a closing frame, queue it with the rest of the frames so they get written all at once. Queue 20 frames instead of 10
2019-02-19 12:00:17 -05:00
Isaac Connor
5029d7214a
Merge branch 'master' into storageareas
2019-02-18 17:00:45 -05:00
Isaac Connor
9996b3e718
Merge branch 'master' into break_videostorage
2019-02-17 12:10:32 -05:00
Isaac Connor
baba438ce1
use image_count when reporting earlier than fps_report_interval
2019-02-16 11:49:28 -05:00
Isaac Connor
9656032906
spacing
2019-02-15 17:52:51 -05:00
Isaac Connor
96906734b8
add an audio_fifo to handle input audio < 1024 samples per frame
2019-02-15 17:26:30 -05:00
Isaac Connor
6156aa2af9
Merge branch 'storageareas' of github.com:/ConnorTechnology/ZoneMinder into storageareas
2019-02-15 10:49:06 -05:00
Isaac Connor
4e463c9354
use swr_convert_frame instead of swr_convert
2019-02-14 17:48:58 -05:00
Isaac Connor
281775cc80
try setting out_frame pts from in_frame
2019-02-14 15:54:47 -05:00
Isaac Connor
9e07d5cd17
try setting out_frame pts from in_frame
2019-02-14 15:54:00 -05:00
Isaac Connor
a11349bffe
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2019-02-13 11:38:44 -05:00
Isaac Connor
a41e8a8834
Merge branch 'master' into storageareas
2019-02-13 11:38:38 -05:00
Isaac Connor
31a11a6992
init log earlier in zms
2019-02-13 11:34:47 -05:00
Isaac Connor
78b97303a3
Merge branch 'storageareas' of github.com:/ConnorTechnology/ZoneMinder into storageareas
2019-02-13 11:32:40 -05:00
Isaac Connor
2563951c1f
comment out the signal blocking. I still can't figure out why we would want it
2019-02-13 11:32:34 -05:00
Isaac Connor
42011e96e6
Merge branch 'storageareas' of github.com:/connortechnology/ZoneMinder into storageareas
2019-02-13 11:29:12 -05:00
Isaac Connor
1aad1f765d
slep for 1 second if there is an error in capturing
2019-02-13 11:28:18 -05:00
Steve Gilvarry
924d5235d0
Validate zmu Username and Password lengths ( #2484 )
...
* Validate zmu Username and Password lengths
Ensure user provided values are not larger than allowed and error if
they are, therefore further preventing overflow.
* Check username and password functions for zmu and zms
* Check username and password functions for zmu and zms
2019-02-13 10:40:43 -05:00
Isaac Connor
060751602b
fix missing ;
2019-02-13 10:34:09 -05:00
Isaac Connor
d1b3b23c09
Merge branch 'master' into storageareas
2019-02-13 09:42:03 -05:00
Isaac Connor
0bfaf87d27
Mostly code style and whitespacing. However, I do setup more values in the output frame when doing audio resampling
2019-02-12 16:40:27 -05:00
Isaac Connor
3177764db4
spacing
2019-02-12 14:20:33 -05:00
Isaac Connor
ed6b22ac06
spacing
2019-02-11 16:29:36 -05:00
Isaac Connor
d33e094526
Merge branch 'master' into storageareas
2019-02-06 17:03:41 -05:00
Isaac Connor
e90f49deb9
Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
2019-01-30 15:17:32 -05:00
Isaac Connor
533d021dea
Merge branch 'master' into storageareas
2019-01-30 15:17:27 -05:00
Isaac Connor
6d7660cdbd
Now that we are dynamically allocating safer_username and safer_password, need to free them. Also, don't strlen them multiple times for efficiency
2019-01-25 08:46:40 -05:00
Steve Gilvarry
a81e7c5221
Safer_username and safer_login should be based on the username and login ( #2482 )
...
(lengths * 2)+1. Control input lengths at user input
2019-01-25 08:33:30 -05:00
Isaac Connor
ad69915e4a
fix build on libav 9, ubuntu trusty
2019-01-22 13:30:40 -05:00
Isaac Connor
7260f823cb
Merge branch 'master' into storageareas
2019-01-21 13:52:38 -05:00
Isaac Connor
a81428f701
add a test for a 0 fps passed in to updateFrameRate which would cause an infinite loop. Fixes #2427
2019-01-21 13:30:00 -05:00
Isaac Connor
189e78b42d
add comments and a test for zm_terminate in the checkCommandQueue while loop
2019-01-21 13:29:20 -05:00
Isaac Connor
83a652aade
add comments and a test for zm_terminate in the checkCommandQueue while loop
2019-01-21 13:29:14 -05:00
Isaac Connor
9f588d5758
prevent returning infinity from GetFPS
2019-01-21 13:00:10 -05:00
Isaac Connor
a39b92154c
wip
2019-01-17 08:49:48 -05:00
Isaac Connor
87d1390fed
Merge branch 'storageareas' into h265
2019-01-16 15:20:17 -05:00
Isaac Connor
f49dd93b6a
Merge branch 'master' into storageareas
2019-01-16 14:39:56 -05:00
Isaac Connor
2b21fe3640
increase sql var size to MED to hold the largest possible sql string.
2019-01-16 11:48:31 -05:00
Isaac Connor
3560d6247f
whitespace and comments.
2019-01-16 11:20:10 -05:00
Isaac Connor
345e2fef0f
start only used in eventstream
2019-01-15 16:44:58 -05:00
Isaac Connor
92066aaf4f
add stream start timeval
2019-01-15 16:33:27 -05:00
Isaac Connor
34224a957b
cleanup error string
2019-01-15 11:36:13 -05:00