Commit Graph

5450 Commits

Author SHA1 Message Date
Isaac Connor
9a4376adcc Add reason for error setting up device 2023-02-26 16:31:32 -05:00
Isaac Connor
47e4b7cf37 Add DecoderName to Monitors 2023-02-26 16:31:14 -05:00
Isaac Connor
6d942dacb0 Add DecoderName to Monitors 2023-02-26 16:31:07 -05:00
Isaac Connor
ab9298cbf0 Add DecoderName to Monitors, and use it in ffmpeg_camera instead of just trying all options 2023-02-26 16:30:56 -05:00
Isaac Connor
af6d2c6ca3 The sw pix format for qsv should be YUV420P 2023-02-26 11:00:50 -05:00
Isaac Connor
f2c2b869ad Merge pull request #3544 from dougnazar/fix_backtrace
Fix backtrace addr2line command.
2023-02-26 10:12:56 -05:00
Isaac Connor
6505bba826 Add qsv codec options 2023-02-25 19:00:31 -05:00
Isaac Connor
c1c25aeb76 Add sqv hwaccel types 2023-02-25 18:07:54 -05:00
Isaac Connor
84383a0498 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-02-25 13:17:53 -05:00
Isaac Connor
12409e624e Support username and password as auth query params. These happen when using auth_relay=plain. 2023-02-25 13:12:40 -05:00
Isaac Connor
24313b1a59 uint16 should be plenty for width and height, so width*height will not overflow an int32. Might fix a codeQL warning. 2023-02-23 17:16:28 -05:00
Isaac Connor
a62f4b2e77 Use snprintf instead of sprintf to quieten codeql 2023-02-23 16:52:19 -05:00
Isaac Connor
a7b1379502 Add AVPixelFormat to shm for each image, disable analysis image viewing. The cp to shm is too expensive. Need something better. 2023-02-22 05:59:16 -05:00
Isaac Connor
decf3e307b Use dbEscapeString on username retrieved from jwt to prevent SQL injection 2023-02-20 12:10:49 -05:00
Isaac Connor
9a996cb423 image may have been deleted, but analysis image may still be there. Correct logic so that analysis frame get saved again. 2023-02-19 14:47:43 -05:00
Isaac Connor
4889358f38 Add the actual packet, not the first packet over and over and over. Fixes #3656 2023-02-13 14:46:56 -05:00
Isaac Connor
1d51f1b146 Fix missing c_str() 2023-02-02 12:16:43 -05:00
Isaac Connor
a0b23388b8 Handle failure to insert into Events table. 2023-02-02 10:03:18 -05:00
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