Isaac Connor
cf29f4b0a4
Selecting any of the monitor filters causes a reload with no mid specified. So don't log an error if no mid was specified.
2022-08-22 10:37:16 -04:00
Isaac Connor
d51a2eb8a5
Merge pull request #3537 from parvit/issue-695
...
Added configuring of authentication for rstp cameras
2022-08-21 18:08:00 -04:00
parvit (Vittorio Parrella)
ef104fcda3
libvlc support for rtsp authentication with special characters
2022-08-20 11:00:51 -04:00
parvit (Vittorio Parrella)
a94d74143e
support for ffmpeg type camera authentication with special characters
2022-08-20 10:01:14 -04:00
Isaac Connor
5bf1d92956
SCALE_BASE is const now in skin.js.php
2022-08-19 13:33:22 -04:00
Isaac Connor
c36a8a28fe
Fix eslint
2022-08-19 13:33:22 -04:00
Isaac Connor
9287d06ced
currentTimeSecs is already calculated, so use it instead of parsing string version
2022-08-19 13:33:22 -04:00
Isaac Connor
4ee998b350
If current time is specified, calculate minTime and maxTime from it.
2022-08-19 13:33:22 -04:00
Isaac Connor
f1c92d9729
Implement binary search functions for finding event based on time.
2022-08-19 13:33:22 -04:00
Isaac Connor
bb810e3d8d
Make a.btn the same line-height as button.btn
2022-08-19 13:33:22 -04:00
Isaac Connor
28731e549d
Add a button to jump this event time in montage review
2022-08-19 13:33:22 -04:00
Isaac Connor
0681a199c3
Update material icons to v1.11.10
2022-08-19 13:33:22 -04:00
Isaac Connor
8b73e3311d
SCALE BASE is already deifned
2022-08-19 13:33:22 -04:00
Isaac Connor
3feb089740
Clear out width=auto and height=auto to prevent warnings in logs
2022-08-19 13:33:22 -04:00
Isaac Connor
4ec1187056
Remove SCALE_BASE as it is defined globally already
2022-08-19 13:33:22 -04:00
Isaac Connor
e42fd15e44
Use const instead of var to flush out duplicates for things that shouldn't change in javascript land
2022-08-19 13:33:22 -04:00
Isaac Connor
a0008a6a6c
Set auto_relay as well as auth_hash. getNavBar uses it
2022-08-19 13:33:22 -04:00
Isaac Connor
ef82d1c9a1
Add a Control file for Grandstream cameras
2022-08-19 13:33:22 -04:00
Isaac Connor
9e2d31c574
Test for success loading Control
2022-08-19 13:33:22 -04:00
Isaac Connor
fe2452f4c9
Add SetVideoWriterStartTime(starting_packet->timestamp);. We use shared->data->recording.tv_sec etc... but since we don't set it, it is always 0.
2022-08-19 13:33:22 -04:00
Isaac Connor
d6ed2f65a1
Don't update notes from this frame on continuous recording. Fixes #3550
2022-08-19 13:33:22 -04:00
Isaac Connor
c0da19e8ed
Fix crash due to deplicated join.
2022-08-19 13:33:22 -04:00
Isaac Connor
03707ed88e
Handle case where time_base is not set in the codec. Fixes h265 not playing right. Don't eek until a significant difference in time. Lots more debug output. Pass codec when initialising codec context. Mostly this fixes playback of h265
2022-08-19 13:33:22 -04:00
Isaac Connor
788bb603e1
Fix crash due to deplicated join. Don't output BOUNDARY unless image loading suceeds
2022-08-19 13:33:22 -04:00
Isaac Connor
087be40337
Split out realm detection and use it in sendCmdPost. Our initial query on / doesn't fail as the camera doesn't require authorization for /.
2022-08-19 13:33:22 -04:00
Isaac Connor
394e518722
Remove debug
2022-08-19 13:33:22 -04:00
Isaac Connor
b17ce950a9
Quote and spacing
2022-08-19 13:33:22 -04:00
Isaac Connor
7b39b3f7a6
Make checkCommandQueue it's own thread, meaning we use blocking I/O and will still respond when it takes forever to send a jpeg. Make warning about broken stream into a Debug. The signal doesn't set zm_terminate fast enough.
2022-08-19 13:33:22 -04:00
Isaac Connor
f202e82b78
Remove no longer used code to protect percentage widths
2022-08-19 13:33:22 -04:00
Isaac Connor
71024dabb1
Don't setScale after layout, just do setSteamScale because setScale will alter widths and heights
2022-08-19 13:33:22 -04:00
Isaac Connor
331e3f483a
Handle width=100% and remove code that worked around montage layouts with width=%.
2022-08-19 13:33:22 -04:00
Ratchanan Srirattanamet
27808888a6
db: start the processing thread after all fields are initialized
...
Initializing `zmDbQueue::mThread` with initializer list makes the thread
start in the middle of object initialization. This means `zmDbQueue::
process()` could start and reach mCondition.wait(lock); before `std::
wait_condition`'s constructor, which causes deadlock.
To make sure thread won't start before object initialize, move
`mThread`'s initialization to constructor's body.
This _at last_ solves the random zmu deadlock issue that has plagued my
setup for almost a year.
2022-08-19 13:33:22 -04:00
Isaac Connor
494077eee7
Don't set AVFMT_TS_NONSTRICT. Crashes on ffmpeg 5. Fixes #3497
2022-08-19 13:33:22 -04:00
Isaac Connor
85795c30ee
Remove warning about maxImageBuffer. It will be handled in queuePacket as it was before, only now we actually tell about the keyframe interval. It is entirely common to not get to another keyframe due to locked packets during event writing.
2022-08-19 13:33:22 -04:00
Isaac Connor
de3ffa72c8
set decoded=true and notify when deleting packets from queue. Analysing might be waiting on the packet.
2022-08-19 13:33:22 -04:00
Isaac Connor
d40ab068e4
Use new packetqueue.stopping() to not wait when the packetqueue is stopping
2022-08-19 13:33:22 -04:00
Isaac Connor
f028e764ba
Add bool stopping() to packetqueue.
2022-08-19 13:33:22 -04:00
Isaac Connor
765714d976
Keep track of max_keyframe_interval and log it when complaining
2022-08-19 13:33:22 -04:00
Isaac Connor
11846ed208
Don't need max_keyframe_interval. Whether our it is still pointing at the front is enough. Only log the warning if the packetqueue is full and we couldn't find another keyframe.
2022-08-19 13:33:22 -04:00
Isaac Connor
fcccf33cf6
Don't call format on an empty string and only pass the integer part of it
2022-08-19 13:33:22 -04:00
Isaac Connor
2922202355
Detect out of order packets
2022-08-19 13:33:22 -04:00
Isaac Connor
a5f7495874
Fix bionic-focal
2022-08-19 13:33:22 -04:00
Isaac Connor
5f9f7861d7
Bump version to 1.37.20 to pickup Janus db changes
2022-08-19 13:33:22 -04:00
Isaac Connor
ac9f5c210c
Add bionic and focal builds
2022-08-19 13:33:22 -04:00
Isaac Connor
0fa41c4aae
Fix warnings about keyframe interval and maximagebuffer count on jpeg streams.
2022-08-19 13:33:22 -04:00
Isaac Connor
11bfc74cff
Log entire backtrace when invalid value for width
2022-08-19 13:33:22 -04:00
Isaac Connor
38b37ff39b
Fix deprecation warning due to implicit conversion to integer. Make it explicit.
2022-08-19 13:33:22 -04:00
Isaac Connor
4514ceddd5
Rework code to be smaller. Don't require SystemView permission to post a log entry. Default to ERR if invalid err code provided instead of PANIC so that the log entry still gets saved
2022-08-19 13:33:22 -04:00
Jonathan Bennett
e55dfe4d4c
Fix typo in field name
2022-08-19 13:33:22 -04:00
Isaac Connor
3c38f5d3f9
Test for existence of monitors[i] before trying to kill it just to reduce javascript errors
2022-08-19 13:33:22 -04:00