Isaac Connor
b7c2b66c1a
Handle ffmpeg5 channel deprecations
2024-09-10 16:50:40 -04:00
Isaac Connor
0980326d05
Handle another duration deprecation
2024-09-10 16:44:20 -04:00
Isaac Connor
098722f573
Handle ffmpeg6 deprecating (renaming) pkt_duration
2024-09-10 16:40:54 -04:00
Doug Nazar
e4b45b89d5
Add guard to handle resetting AVPacket after use.
...
Also handle allocation failures.
2024-09-10 16:34:46 -04:00
Isaac Connor
4020be4ea8
Continue cherry-pick
2024-09-10 16:22:50 -04:00
Doug Nazar
b4c71c0c7b
Switch from av_init_packet() to av_packet_alloc()
...
Remove all uses of deprecated av_init_packet() and switch any stack
based AVPackets to unique_ptrs allocated with av_packet_alloc().
Ensure that all code paths call av_packet_unref() after use to reset
before next usage.
2024-09-10 16:22:25 -04:00
Isaac Connor
47b81286df
Merge pull request #4117 from robertsilen/master
...
add MariaDB to docs
2024-09-03 10:23:34 -04:00
Isaac Connor
76fce065bc
Track Monitor_Status and FPS logging times separately. Update db every 10seconds.
2024-08-29 12:55:18 -04:00
Isaac Connor
150145035a
Fix not updating Monitor_Status
2024-08-22 09:57:50 -04:00
Isaac Connor
26b5983f64
Only output 403 status if not nph
2024-08-22 09:56:06 -04:00
Isaac Connor
d513695bcf
Don't output the boundary if we aren't streaming. Single jpegs don't need it and I think something was complaining about it.
2024-08-22 09:38:43 -04:00
Isaac Connor
b7631c8f3a
Only use fps_report_interval for the logging of fps updates. Always update the db.
2024-08-20 16:03:34 -04:00
Isaac Connor
29ea7c7074
Always attempt upgrade so that we re-apply the latest update.sql
2024-08-19 14:48:07 -04:00
Isaac Connor
9669620ced
Setup auto package building
2024-08-19 12:34:03 -04:00
Isaac Connor
248625c676
Handle more than one level of output buffering when cleaning and ending them so we can send the video file so we don't run out of ram. Fixes #4110
2024-08-11 09:22:08 -04:00
Isaac Connor
8a5d008b28
Don't log error when ignoring action if it is an ajax request
2024-08-08 17:05:39 -04:00
Isaac Connor
52b191d258
If the css in cookie is invalid, clear it so that the logs don't fill up with the warnings
2024-08-08 17:04:07 -04:00
Isaac Connor
7026d51d7f
When duplicated timestamps are seen, subtract 1 when adjusting dts so that the second one will still monotonically increase.
2024-08-08 13:57:04 -04:00
Aktarus
9f62a3f4bd
Update debian.rst, enable autostart of ZM at boot
...
added one line to enable autostart of ZM at boot
2024-08-08 08:01:58 -04:00
Isaac Connor
a199b7e970
Must obtain lock in free_it
2024-08-08 08:01:29 -04:00
Isaac Connor
2fad7c160a
Change log to a debug
2024-08-08 08:00:54 -04:00
Isaac Connor
792a62d1d6
Sometimes the initial keyframe packet will have AV_NOPTS for pts and dts. When this happenes, set last_dts to -1 instead of 0, so that when the next packet comes in and sets the first_dts value, the resulting dts will be 0 which is > -1.
2024-08-02 13:19:58 -04:00
Isaac Connor
06448f0885
Use packetqueue.unlock so that we wakeup event threads waiting on the packet.
2024-08-02 12:42:44 -04:00
Isaac Connor
fe0952588a
Use get_packet_no_wait and a sleep so that if told to close we give up on getting a packet
2024-08-02 12:41:51 -04:00
Isaac Connor
d194a97df8
Add get_packet_no_wait for tasks that should not wait indefinitely
2024-08-02 12:40:27 -04:00
Isaac Connor
cfdfe8344a
Check for iterator pointing to first packet. This is a special case.
2024-08-01 12:03:47 -04:00
Isaac Connor
0e87a4e982
Make second segfault Fatal as Panic doesn't exit
2024-07-17 15:34:44 -04:00
Isaac Connor
67ca121811
Put back code that looks for iterators when cleaning packet queue. event thread can now have an iterator that follows analysis
2024-07-17 15:34:44 -04:00
Isaac Connor
39c53de33f
Merge branch 'release-1.36' of github.com:ZoneMinder/zoneminder into release-1.36
2024-07-16 10:20:32 -04:00
Isaac Connor
04b58ab51e
Put swap file File::find into an eval because it can die.
2024-07-16 10:19:51 -04:00
Isaac Connor
7efddac6a2
Limit segfaults to 1
2024-07-09 11:28:46 -04:00
Isaac Connor
a52d4675cd
Always re-apply the latest update. Mainly because sometimes Isaac forgets to add the zm_update file when bumping versions, also in release branches, we increment version before release. zm_update scripts are always supposed to be re-runnable, so this is ok, if a little skeezy
2024-07-09 11:28:00 -04:00
Isaac Connor
22ebade6dc
Add last_duration to warning about non increasing dts
2024-07-09 11:26:52 -04:00
Isaac Connor
7ad7721955
Slight code improvements, mostly for readability
2024-07-09 11:25:24 -04:00
Isaac Connor
90a64a5ae9
Add last_duration to warning about non increasing dts
2024-07-04 14:52:22 -04:00
Isaac Connor
18ba1eb8c8
Remove & from functions taking a shared_ptr
2024-07-04 09:24:21 -04:00
Shobu UMEMURA
f7a8d5b46d
Update charset header in ja_jp.php from Shift_JIS to UTF-8
...
Given that most Japanese servers now use UTF-8, it makes sense to set UTF-8 as the default charset.
2024-07-04 09:21:10 -04:00
Isaac Connor
b9ae17b8fe
Don't pass shared_ptr by ref. Defeats the ref counting
2024-07-04 09:20:41 -04:00
Isaac Connor
2a9fa4a4f1
When dts==last_dts, don't log it as an error. It is too common. Just add duration and move on.
2024-06-26 14:14:05 -04:00
Isaac Connor
38e80b9024
Use last duration instead of 1 when adjusting dts when non-monotonic. Some googling indicates this might be a better approach. What I am seeing with a tapo C520WS agrees.
2024-06-26 14:12:59 -04:00
Isaac Connor
2ba179b54e
ENsure that dts increases. Not enough to just == last_dts
2024-06-26 14:10:23 -04:00
Isaac Connor
3ef4c36b09
Don't log failure to get packet. Can only happen when stopping the pcketqueue.
2024-06-26 14:06:18 -04:00
Isaac Connor
8520f32990
Fix recording when Decoding=None by setting packet->decoded in capture
2024-06-26 14:01:52 -04:00
Isaac Connor
904a04207e
Reset last_capture_image_count in connect so that we don't get negative fps reports and possible floating point exceptions
2024-06-26 14:01:02 -04:00
Isaac Connor
b8cea22530
Update depends for noble
2024-06-18 18:58:20 -04:00
Isaac Connor
194b55a21c
move image_count to shared mem. Use it in monitorstream to detect when last_write_time % buffer_count hasn't changed, but there is in fact a new image.
2024-06-17 18:40:46 -04:00
Isaac Connor
a1cabef2e2
Wait for decoded flag so that we stay behind the decoder
2024-06-17 14:27:37 -04:00
Isaac Connor
6b63d58534
Mark audio packets as decoded
2024-06-17 14:27:18 -04:00
Isaac Connor
c9d5daf649
Redo the event thread. Instead of analysis adding packets to an event specific queue, just pass in the iterator and let the event thread do it's own locking. This allows us to free ram in packet in the event, and not segfault.
2024-06-15 13:54:32 -04:00
Isaac Connor
278f0d0eb4
Add dependencies for ubuntu noble
2024-06-10 10:15:46 -04:00