Commit Graph
5431 Commits
Author SHA1 Message Date
Isaac Connor 9a999d1465 replace const char * with std::string and save filename in the object when created by filename. Long term, we may represent an image by filename and load the image on demand. For potential use with sendfile. 2023-02-01 14:31:59 -05:00
Isaac Connor 88be2e1865 Merge branch 'master' of ../otherbranch 2023-01-31 16:06:01 -05:00
Cloudmule 20dc0d02fc Handle failure to subscribe gracefully, de-initing soap instead of crashing. 2023-01-31 16:05:30 -05:00
Isaac Connor 7a1066c534 Disable multi-threaded decoding as a test 2023-01-26 18:46:38 -05:00
Isaac Connor 08f02ecd09 Queue packets instead of packet locks in event thread. Since we are using std::shared_ptr and not modifying the packet, should not need locking. Also, locking in one thread and unlocking in another is apparentlyundefined behaviour and doesn't work infreebsd. 2023-01-24 10:28:38 -05:00
Isaac Connor 9c52ae7856 Increase infomation in packet lock debugging 2023-01-24 10:26:46 -05:00
Isaac Connor 6eceda0267 Fix complaint 2023-01-18 16:01:42 -05:00
Isaac Connor 388f1c6e1b Add const to MonitorId 2023-01-18 16:01:32 -05:00
Isaac Connor 8300a7b40d Upgrade sendfile7 to not mash size on stack. offset is a nullptr most of the time, don't dereference it. When falling back to read/write, just read in chunks of 4096, because I don't know how to make llvm use c99 dynamic arrays. Check for HAVE_SENDFILE. Fixes #3505 2023-01-17 16:10:55 -05:00
Isaac Connor 8b75a2510a Change to ssize_t to fix compile on freebsd 2023-01-12 13:07:29 -05:00
Isaac Connor 95f9e0b19a Fix crash from getting packet from rend 2023-01-12 09:25:44 -05:00
Isaac Connor 32add0952c Differentiate between negative pts and AV_NOPTS_VALUE when looking for wrap around. 2023-01-10 14:19:40 -05:00
Isaac Connor ca513c0a74 Add deleting status to debug 2023-01-10 12:07:35 -05:00
baudneo 8750e0e333 Add Janus RTSP session timeout to C ⚗️
Signed-off-by: baudneo <86508179+baudneo@users.noreply.github.com>
2023-01-09 17:57:26 -07:00
Isaac Connor 693e897204 Remove excess debugging 2023-01-07 12:40:02 -05:00
Isaac Connor 0d569c26d7 fix formatting string 2023-01-07 12:35:24 -05:00
Isaac Connor f06e11a097 Add SectionLengthWarn, use it to disable warnings in logs about section length being exceeded. 2023-01-07 12:33:42 -05:00
Isaac Connor 090b90565f Add uriencoding of the password 2023-01-06 12:22:04 -05:00
Isaac Connor 62c084b225 Make the setting to default time base warning into a debug 2023-01-04 12:44:34 -05:00
Isaac Connor 65952705ac Fix logging of situation. I think inserting at rend, changes the value of rend. So reorder the lines a bit and include the dts of the packet we are inserting after 2022-12-24 12:33:41 -05:00
Isaac Connor 48c18ca4ed Attempt to better handle 32bit wrap around in the pts in the input stream. 2022-12-23 09:02:41 -05:00
Isaac Connor 8ded9fc83a copy value of monitor_ids_lodaded in Copy constructor and set monitor_ids_loaded=true when actually loading them. 2022-12-22 12:40:07 -05:00
Isaac Connor a64ec13a52 Add lots of debugging around group_permission loading and monitor finding 2022-12-22 09:54:07 -05:00
Isaac Connor 0390d0e6f4 Fix FILE Monitor type. 2022-12-08 15:33:57 -05:00
Isaac Connor 9024b57171 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-12-08 13:54:03 -05:00
Isaac Connor 047d775528 Add more debug to loaded group permission 2022-12-08 13:53:58 -05:00
Isaac Connor 64786cc103 Set Status to Connected when updating FPS 2022-12-07 20:35:56 -05:00
Isaac Connor 2ca4756958 Only update fps if capture was successful. Beacuse it now also updates status to say Conected 2022-12-07 20:35:56 -05:00
Isaac Connor b53eed852c Merge branch 'master' of ../cloudmule 2022-12-07 12:39:58 -05:00
Isaac Connor 9e8d2a8428 Remove extra debug 2022-12-07 12:27:02 -05:00
Isaac Connor 7e489f7fa2 When there are NO frames in the db, populate the list of frames by 1/fps. 2022-12-07 12:26:51 -05:00
Isaac Connor 46bb48e2c8 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-12-06 11:20:20 -05:00
Isaac Connor f010356d62 Merge pull request #3638 from kholk/patch-1
zm_ffmpeg_camera: Add support for Jetson Nano/Xavier NVMPI
2022-12-06 04:01:51 -05:00
Oleg 83a401fc44 Fix typo fwrite -> write 2022-12-02 21:43:45 +00:00
Isaac Connor 0c41333976 remove extra braces, explicilty handle INHERIT permission and log any other values as a warning 2022-12-02 14:51:53 -05:00
Isaac Connor b4f674ef5d Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-11-30 13:18:38 -05:00
Isaac Connor ae66782ddb Use 32byte aligned buffer size when allocating an image buffer to make ffmpeg happy. Fixes a crash when width = 1080. When linesizes are different, copy line by line instead of the whole buffer all at once. 2022-11-30 13:18:13 -05:00
Isaac Connor 61e5527b63 Log image size as wel 2022-11-30 13:18:13 -05:00
Isaac Connor fbb9350c58 Remove some extra scope, log group id as well. 2022-11-30 13:00:37 -05:00
AngeloGioacchino Del Regno 7f8badc334 zm_ffmpeg_camera: Add support for Jetson Nano/Xavier NVMPI
Add support for the NVMPI hardware decoders (not CUDA decoders!)
of the Tegra SoCs found in the Jetson Nano/TX/TX2 and Xavier NX/AGX.

This platform supports hardware decoding of H264, HEVC, MPEG2,
MPEG4, VP8 and VP9.
2022-11-24 00:09:02 +01:00
Isaac Connor b3a262fc9b Fix crash due to using unrotated y-channel image. Put the y-image creation in ::Decode, stored in ZMPacket. 2022-11-22 12:38:48 -05:00
Isaac Connor 5fdf66b51c Instead of return, set zm_terminate and continue so that we join the command processor thread and don't crash 2022-11-16 10:33:10 -05:00
Isaac Connor 4d716f26ee Make shm is not connected a debug... otherwise we really spam the logs. Useful error messages can go at a higher level 2022-11-16 09:07:36 -05:00
Isaac Connor a4c88cea0a Fix warning about parentheses around assignment used as truth value 2022-11-15 13:03:55 -05:00
Isaac Connor e59451b6da Check for return value of openEvent. In the situation where opening the event fails we must not crash. 2022-11-15 12:49:59 -05:00
Isaac Connor bfaf8c8b53 Fix logic inversion on testing user Monitors for camera access 2022-11-06 07:46:41 -05:00
Isaac Connor 7fda500140 Make permission values 0 based but stsarting with UNKNOWN because when doing permission+0 in SQL, we get a 1-based value 2022-11-03 18:28:23 -04:00
Isaac Connor 6265a1ca41 Move from MonitorIds to Monitor_Permissions and Group_Permissions. 2022-11-02 13:25:43 -04:00
Isaac Connor 6d2b2ae525 Implement split out username/password for remote_camera and remote_camera_http 2022-11-02 10:06:39 -04:00
Isaac Connor 30bb5d47d7 Implement split out username/password for remote_camera and remote_camera_http 2022-11-02 10:06:26 -04:00