Re: zmc is saving empty files
Posted: Fri Mar 29, 2024 12:03 pm
by launcoan
Hi,
I think mainly the problem could be the way the camera handles the stream... some codec thing I suppose...
the debug log shows the following at the time ZMC starts to write the first empty file ( HiRes Stream ):
The problem happened at 06:34:06, I put here a bit more...
=====================================================================================
03/28/24 06:33:32.384684 zmc_m30[2241324].DB1-zm_event.cpp/734 [Adding packet 447814]
03/28/24 06:33:32.384724 zmc_m30[2241324].DB1-zm_videostore.cpp/1054 [Queue size for 0 is 0]
03/28/24 06:33:32.384737 zmc_m30[2241324].DB1-zm_videostore.cpp/1082 [Pushing on queue 0, size is 1]
03/28/24 06:33:32.384761 zmc_m30[2241324].DB1-zm_event.cpp/436 [Have frame type Normal from score(0) state 5 frames 4265 bulk frame interval 100 and mod65]
03/28/24 06:33:32.384775 zmc_m30[2241324].DB1-zm_event.cpp/484 [No image]
03/28/24 06:33:43.001619 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/631 [timeout in ffmpeg camera now 1711604023 - 1711604012 > 10]
03/28/24 06:33:43.001833 zmc_m30[2239513].DB1-zm_monitor.cpp/1790 [Checking linked monitors]
03/28/24 06:33:43.001878 zmc_m30[2239513].DB1-zm_monitor.cpp/1797 [Linked monitor 31 Cucina-DX-Low is connected]
03/28/24 06:33:43.001892 zmc_m30[2239513].DB1-zm_monitor.cpp/1813 [Linked monitor 31 Cucina-DX-Low is not alarmed]
03/28/24 06:33:43.001905 zmc_m30[2239513].DB1-zm_monitor.cpp/1887 [Not Active(1) enabled 1 active 1 doing motion detection: 0]
03/28/24 06:33:43.001918 zmc_m30[2239513].DB1-zm_monitor.cpp/2040 [State TAPE because image_count(447806)-last_alarm_count(445875) > post_event_count(0) and timestamp.tv_sec(1711604023) - recording.tv_src(1711603799) >= min_section_length(10)]
03/28/24 06:33:43.001956 zmc_m30[2241324].DB1-zm_event.cpp/734 [Adding packet 447815]
03/28/24 06:33:43.001974 zmc_m30[2241324].DB1-zm_videostore.cpp/1054 [Queue size for 0 is 0]
03/28/24 06:33:43.001987 zmc_m30[2241324].DB1-zm_videostore.cpp/1082 [Pushing on queue 0, size is 1]
03/28/24 06:33:43.002013 zmc_m30[2241324].DB1-zm_event.cpp/436 [Have frame type Normal from score(0) state 5 frames 4266 bulk frame interval 100 and mod66]
03/28/24 06:33:43.002027 zmc_m30[2241324].DB1-zm_event.cpp/484 [No image]
03/28/24 06:33:54.019692 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/631 [timeout in ffmpeg camera now 1711604034 - 1711604023 > 10]
03/28/24 06:33:54.019765 zmc_m30[2226615].ERR-zm_ffmpeg_camera.cpp/231 [Unable to read packet from stream 0: error -1414092869 "Immediate exit requested".]
03/28/24 06:33:54.023535 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604034.019765, 'zmc_m30', 0, 2226615, -2, 'ERR', 'Unable to read packet from stream 0: error -1414092869 \"Immediate exit requested\".', 'zm_ffmpeg_camera.cpp', 231 )]
03/28/24 06:33:54.026862 zmc_m30[2226615].ERR-zmc.cpp/305 [Failed to capture image from monitor 30 Cucina-DX-HD (1/1)]
03/28/24 06:33:54.026990 zmc_m30[2226615].INF-zm_monitor.cpp/3064 [Cucina-DX-HD: image_count:447817 - Closing event 2275277, shutting down]
03/28/24 06:33:54.027012 zmc_m30[2226615].DB1-zm_monitor.cpp/2731 [close event thread is not joinable]
03/28/24 06:33:54.027028 zmc_m30[2226615].DB1-zm_monitor.cpp/2733 [Starting thread to close event]
03/28/24 06:33:54.027046 zmc_m30[2239513].DB1-zm_packetqueue.cpp/471 [terminated, leaving]
03/28/24 06:33:54.027121 zmc_m30[2226615].DB1-zm_monitor.cpp/2735 [Nulling event]
03/28/24 06:33:54.027266 zmc_m30[2241445].DB1-zm_videostore.cpp/653 [Queue for 0 length is 0]
03/28/24 06:33:54.027297 zmc_m30[2241445].DB1-zm_videostore.cpp/673 [Writing trailer]
03/28/24 06:33:54.027641 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604034.026862, 'zmc_m30', 0, 2226615, -2, 'ERR', 'Failed to capture image from monitor 30 Cucina-DX-HD (1/1)', 'zmc.cpp', 305 )]
03/28/24 06:33:54.031153 zmc_m30[2226615].DB1-zm_packetqueue.cpp/380 [Clearing packetqueue]
03/28/24 06:33:54.031270 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447750 with keyframe:1, video frames in queue:66 max: 1, queuesize:66]
03/28/24 06:33:54.031298 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447751 with keyframe:0, video frames in queue:65 max: 1, queuesize:65]
03/28/24 06:33:54.031319 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447752 with keyframe:0, video frames in queue:64 max: 1, queuesize:64]
03/28/24 06:33:54.031343 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447753 with keyframe:0, video frames in queue:63 max: 1, queuesize:63]
03/28/24 06:33:54.031364 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447754 with keyframe:0, video frames in queue:62 max: 1, queuesize:62]
03/28/24 06:33:54.031410 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447755 with keyframe:0, video frames in queue:61 max: 1, queuesize:61]
03/28/24 06:33:54.031428 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447756 with keyframe:0, video frames in queue:60 max: 1, queuesize:60]
03/28/24 06:33:54.031446 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447757 with keyframe:0, video frames in queue:59 max: 1, queuesize:59]
03/28/24 06:33:54.031462 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447758 with keyframe:0, video frames in queue:58 max: 1, queuesize:58]
03/28/24 06:33:54.031479 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447759 with keyframe:0, video frames in queue:57 max: 1, queuesize:57]
03/28/24 06:33:54.031496 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447760 with keyframe:0, video frames in queue:56 max: 1, queuesize:56]
03/28/24 06:33:54.031513 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447761 with keyframe:0, video frames in queue:55 max: 1, queuesize:55]
03/28/24 06:33:54.031530 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447762 with keyframe:0, video frames in queue:54 max: 1, queuesize:54]
03/28/24 06:33:54.031546 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447763 with keyframe:0, video frames in queue:53 max: 1, queuesize:53]
03/28/24 06:33:54.031562 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447764 with keyframe:0, video frames in queue:52 max: 1, queuesize:52]
03/28/24 06:33:54.031580 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447765 with keyframe:0, video frames in queue:51 max: 1, queuesize:51]
03/28/24 06:33:54.031595 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447766 with keyframe:0, video frames in queue:50 max: 1, queuesize:50]
03/28/24 06:33:54.031611 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447767 with keyframe:0, video frames in queue:49 max: 1, queuesize:49]
03/28/24 06:33:54.031625 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447768 with keyframe:0, video frames in queue:48 max: 1, queuesize:48]
03/28/24 06:33:54.031641 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447769 with keyframe:0, video frames in queue:47 max: 1, queuesize:47]
03/28/24 06:33:54.031656 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447770 with keyframe:0, video frames in queue:46 max: 1, queuesize:46]
03/28/24 06:33:54.031672 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447771 with keyframe:0, video frames in queue:45 max: 1, queuesize:45]
03/28/24 06:33:54.031687 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447772 with keyframe:0, video frames in queue:44 max: 1, queuesize:44]
03/28/24 06:33:54.031703 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447773 with keyframe:0, video frames in queue:43 max: 1, queuesize:43]
03/28/24 06:33:54.031724 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447774 with keyframe:0, video frames in queue:42 max: 1, queuesize:42]
03/28/24 06:33:54.031741 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447775 with keyframe:0, video frames in queue:41 max: 1, queuesize:41]
03/28/24 06:33:54.031757 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447776 with keyframe:0, video frames in queue:40 max: 1, queuesize:40]
03/28/24 06:33:54.031785 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447777 with keyframe:0, video frames in queue:39 max: 1, queuesize:39]
03/28/24 06:33:54.031802 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447778 with keyframe:0, video frames in queue:38 max: 1, queuesize:38]
03/28/24 06:33:54.031819 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447779 with keyframe:0, video frames in queue:37 max: 1, queuesize:37]
03/28/24 06:33:54.031834 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447780 with keyframe:0, video frames in queue:36 max: 1, queuesize:36]
03/28/24 06:33:54.031850 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447781 with keyframe:0, video frames in queue:35 max: 1, queuesize:35]
03/28/24 06:33:54.031866 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447782 with keyframe:0, video frames in queue:34 max: 1, queuesize:34]
03/28/24 06:33:54.031881 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447783 with keyframe:0, video frames in queue:33 max: 1, queuesize:33]
03/28/24 06:33:54.031896 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447784 with keyframe:0, video frames in queue:32 max: 1, queuesize:32]
03/28/24 06:33:54.031911 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447785 with keyframe:0, video frames in queue:31 max: 1, queuesize:31]
03/28/24 06:33:54.031927 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447786 with keyframe:0, video frames in queue:30 max: 1, queuesize:30]
03/28/24 06:33:54.031949 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447787 with keyframe:0, video frames in queue:29 max: 1, queuesize:29]
03/28/24 06:33:54.031967 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447788 with keyframe:0, video frames in queue:28 max: 1, queuesize:28]
03/28/24 06:33:54.031983 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447789 with keyframe:0, video frames in queue:27 max: 1, queuesize:27]
03/28/24 06:33:54.031999 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447790 with keyframe:1, video frames in queue:26 max: 1, queuesize:26]
03/28/24 06:33:54.032045 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447791 with keyframe:0, video frames in queue:25 max: 1, queuesize:25]
03/28/24 06:33:54.032061 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447792 with keyframe:0, video frames in queue:24 max: 1, queuesize:24]
03/28/24 06:33:54.032076 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447793 with keyframe:0, video frames in queue:23 max: 1, queuesize:23]
03/28/24 06:33:54.032092 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447794 with keyframe:0, video frames in queue:22 max: 1, queuesize:22]
03/28/24 06:33:54.032108 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447795 with keyframe:0, video frames in queue:21 max: 1, queuesize:21]
03/28/24 06:33:54.032124 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447796 with keyframe:0, video frames in queue:20 max: 1, queuesize:20]
03/28/24 06:33:54.032140 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447797 with keyframe:0, video frames in queue:19 max: 1, queuesize:19]
03/28/24 06:33:54.032166 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447798 with keyframe:0, video frames in queue:18 max: 1, queuesize:18]
03/28/24 06:33:54.032183 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447799 with keyframe:0, video frames in queue:17 max: 1, queuesize:17]
03/28/24 06:33:54.032199 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447800 with keyframe:0, video frames in queue:16 max: 1, queuesize:16]
03/28/24 06:33:54.032228 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447801 with keyframe:0, video frames in queue:15 max: 1, queuesize:15]
03/28/24 06:33:54.032250 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447802 with keyframe:0, video frames in queue:14 max: 1, queuesize:14]
03/28/24 06:33:54.032267 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447803 with keyframe:0, video frames in queue:13 max: 1, queuesize:13]
03/28/24 06:33:54.032283 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447804 with keyframe:0, video frames in queue:12 max: 1, queuesize:12]
03/28/24 06:33:54.032299 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447805 with keyframe:0, video frames in queue:11 max: 1, queuesize:11]
03/28/24 06:33:54.032315 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447806 with keyframe:0, video frames in queue:10 max: 1, queuesize:10]
03/28/24 06:33:54.032330 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447807 with keyframe:0, video frames in queue:9 max: 1, queuesize:9]
03/28/24 06:33:54.032346 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447808 with keyframe:0, video frames in queue:8 max: 1, queuesize:8]
03/28/24 06:33:54.032362 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447809 with keyframe:0, video frames in queue:7 max: 1, queuesize:7]
03/28/24 06:33:54.032377 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447810 with keyframe:0, video frames in queue:6 max: 1, queuesize:6]
03/28/24 06:33:54.032391 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447811 with keyframe:0, video frames in queue:5 max: 1, queuesize:5]
03/28/24 06:33:54.032405 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447812 with keyframe:0, video frames in queue:4 max: 1, queuesize:4]
03/28/24 06:33:54.032427 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447813 with keyframe:0, video frames in queue:3 max: 1, queuesize:3]
03/28/24 06:33:54.032444 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447814 with keyframe:0, video frames in queue:2 max: 1, queuesize:2]
03/28/24 06:33:54.032460 zmc_m30[2226615].DB1-zm_packetqueue.cpp/388 [Deleting a packet with stream index:0 image_index:447815 with keyframe:0, video frames in queue:1 max: 1, queuesize:1]
03/28/24 06:33:54.032475 zmc_m30[2226615].DB1-zm_packetqueue.cpp/400 [Packetqueue is clear, deleting iterators]
03/28/24 06:33:54.032488 zmc_m30[2226615].DB1-zm_packetqueue.cpp/415 [Packetqueue is clear, notifying]
03/28/24 06:33:54.032709 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/631 [timeout in ffmpeg camera now 1711604034 - 1711604023 > 10]
03/28/24 06:33:54.032859 zmc_m30[2226615].DB1-zm_monitor.cpp/1081 [Setting shared_data->valid = false]
03/28/24 06:33:54.048735 zmc_m30[2226615].DB1-zm_monitor.cpp/968 [Unable to map file /dev/shm/zm.mmap.30 (24888760 bytes) to locked memory, trying unlocked]
03/28/24 06:33:54.048811 zmc_m30[2226615].DB1-zm_monitor.cpp/971 [Mapped file /dev/shm/zm.mmap.30 (24888760 bytes) to unlocked memory]
03/28/24 06:33:54.102062 zmc_m30[2226615].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO Monitor_Status (MonitorId,Status,CaptureFPS,AnalysisFPS) VALUES (30, 'Running',0,0) ON DUPLICATE KEY UPDATE Status='Running',CaptureFPS=0,AnalysisFPS=0]
03/28/24 06:33:54.102087 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/185 [Priming capture from rtsp://x.x.x.x/live2_0.sdp]
03/28/24 06:33:54.102125 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/311 [Calling avformat_open_input for rtsp://x.x.x.x/live2_0.sdp]
03/28/24 06:33:55.406276 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/345 [Finding stream info]
03/28/24 06:34:05.022710 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/631 [timeout in ffmpeg camera now 1711604045 - 1711604034 > 10]
03/28/24 06:34:05.023009 zmc_m30[2226615].INF-zm_ffmpeg.cpp/69 [Could not find codec parameters for stream 0 (Video: h264, 1 reference frame, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options]
03/28/24 06:34:05.023159 zmc_m30[2226615].DB1-zm_ffmpeg_camera.cpp/400 [Failed to find decoder (h264_mmal)]
03/28/24 06:34:05.023441 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/280 [Dumping stream index i(0) index(0)]
03/28/24 06:34:05.023461 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/290 [ Stream #0:0]
03/28/24 06:34:05.023475 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/298 [frame_size:0 stream timebase: 1/90000]
03/28/24 06:34:05.023490 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/304 [codec: h264 video]
03/28/24 06:34:05.023505 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/232 [90k stream tb numerator]
03/28/24 06:34:05.023741 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/254 [Dumping codec_context codec_type(0 video) codec_id(27 h264) width(0) height(0) timebase(0/1) format(none) gop_size 12 max_b_frames 0 me_cmp 0 me_range 0 qmin 2 qmax 31]
03/28/24 06:34:05.023788 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/280 [Dumping stream index i(1) index(0)]
03/28/24 06:34:05.023803 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/290 [ Stream #0:1]
03/28/24 06:34:05.023816 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/298 [frame_size:0 stream timebase: 1/8000]
03/28/24 06:34:05.023830 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/304 [codec: pcm_alaw audio]
03/28/24 06:34:05.023843 zmc_m30[2226615].DB1-zm_ffmpeg.cpp/337 [profile -99 channels 1 sample_rate 8000]
03/28/24 06:34:05.023867 zmc_m30[2226615].WAR-zm_ffmpeg_camera.cpp/579 [Monitor dimensions are 1920x1080 but camera is sending 0x0]
03/28/24 06:34:05.023962 zmc_m30[2226615].DB1-zm_monitor.cpp/3017 [Done restarting decoder]
03/28/24 06:34:05.023978 zmc_m30[2226615].DB1-zm_monitor.cpp/3022 [haveing analysis_it]
03/28/24 06:34:05.023991 zmc_m30[2226615].DB1-zm_monitor.cpp/3028 [Restarting analysis thread for monitor (30)]
03/28/24 06:34:05.027500 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604045.023867, 'zmc_m30', 0, 2226615, -1, 'WAR', 'Monitor dimensions are 1920x1080 but camera is sending 0x0', 'zm_ffmpeg_camera.cpp', 579 )]
03/28/24 06:34:05.028189 zmc_m30[2226615].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO Monitor_Status (MonitorId,Status) VALUES (30, 'Connected') ON DUPLICATE KEY UPDATE Status='Connected']
03/28/24 06:34:06.038484 zmc_m30[2241467].DB1-zm_monitor.cpp/1790 [Checking linked monitors]
03/28/24 06:34:06.038522 zmc_m30[2241467].DB1-zm_monitor.cpp/1817 [Linked monitor 0 31 is not connected. Connecting.]
03/28/24 06:34:06.038536 zmc_m30[2241467].DB1-zm_monitor.cpp/163 [link.mem.size=1320]
03/28/24 06:34:06.038668 zmc_m30[2241467].DB1-zm_monitor.cpp/1887 [Not Active(1) enabled 1 active 1 doing motion detection: 0]
03/28/24 06:34:06.060130 zmc_m30[2241467].INF-zm_monitor.cpp/1933 [Cucina-DX-HD: 447807 - Opened new event 2275287, section start]
03/28/24 06:34:06.060189 zmc_m30[2241467].DB1-zm_monitor.cpp/2040 [State TAPE because image_count(447807)-last_alarm_count(445875) > post_event_count(0) and timestamp.tv_sec(1711604046) - recording.tv_src(1711604046) >= min_section_length(10)]
03/28/24 06:34:06.060278 zmc_m30[2241475].DB1-zm_event.cpp/624 [Starting event thread]
03/28/24 06:34:06.060761 zmc_m30[2241475].DB1-zm_event.cpp/675 [Using storage area at /mnt/4tera2/zoneminder/30/2024-03-28/2275287]
03/28/24 06:34:06.060813 zmc_m30[2241475].DB1-zm_event.cpp/687 [Writing video file to /mnt/4tera2/zoneminder/30/2024-03-28/2275287/2275287-video.mp4]
03/28/24 06:34:06.060847 zmc_m30[2241475].DB1-zm_videostore.cpp/119 [Opening video storage stream /mnt/4tera2/zoneminder/30/2024-03-28/2275287/2275287-video.mp4 format: mp4]
03/28/24 06:34:06.060983 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/238 [Dumping codecpar codec_type(0 video) codec_id(27 h264) codec_tag(0) width(0) height(0) bit_rate(0) format(-1 none)]
03/28/24 06:34:06.061035 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/254 [Dumping codec_context codec_type(0 video) codec_id(27 h264) width(0) height(0) timebase(1/1000000) format(yuv420p) gop_size 12 max_b_frames 0 me_cmp 0 me_range 0 qmin 2 qmax 31]
03/28/24 06:34:06.061206 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/280 [Dumping stream index i(0) index(0)]
03/28/24 06:34:06.061250 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/290 [ Stream #0:0]
03/28/24 06:34:06.061265 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/298 [frame_size:0 stream timebase: 1/90000]
03/28/24 06:34:06.061280 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/304 [codec: h264 video]
03/28/24 06:34:06.061295 zmc_m30[2241475].DB1-zm_ffmpeg.cpp/232 [90k stream tb numerator]
03/28/24 06:34:06.061319 zmc_m30[2241475].DB1-zm_videostore.cpp/522 [setting movflags to frag_keyframe+empty_moov]
03/28/24 06:34:06.061360 zmc_m30[2241475].WAR-zm_ffmpeg.cpp/69 [dimensions not set]
03/28/24 06:34:06.061455 zmc_m30[2241475].WAR-zm_videostore.cpp/529 [Unable to set movflags trying with defaults.]
03/28/24 06:34:06.061501 zmc_m30[2241475].WAR-zm_ffmpeg.cpp/69 [dimensions not set]
03/28/24 06:34:06.061548 zmc_m30[2241475].ERR-zm_videostore.cpp/543 [Error occurred when writing out file header to /mnt/4tera2/zoneminder/30/2024-03-28/2275287/2275287-video.mp4: Invalid argument]
03/28/24 06:34:06.061613 zmc_m30[2241475].WAR-zm_event.cpp/701 [Failed to open videostore, turning on jpegs]
03/28/24 06:34:06.061656 zmc_m30[2241475].DB1-zm_videostore.cpp/653 [Queue for 0 length is 0]
03/28/24 06:34:06.062458 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604046.061360, 'zmc_m30', 0, 2241475, -1, 'WAR', 'dimensions not set', 'zm_ffmpeg.cpp', 69 )]
03/28/24 06:34:06.063030 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604046.061455, 'zmc_m30', 0, 2241475, -1, 'WAR', 'Unable to set movflags trying with defaults.', 'zm_videostore.cpp', 529 )]
03/28/24 06:34:06.063596 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604046.061501, 'zmc_m30', 0, 2241475, -1, 'WAR', 'dimensions not set', 'zm_ffmpeg.cpp', 69 )]
03/28/24 06:34:06.064072 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604046.061548, 'zmc_m30', 0, 2241475, -2, 'ERR', 'Error occurred when writing out file header to /mnt/4tera2/zoneminder/30/2024-03-28/2275287/2275287-video.mp4: Invalid argument', 'zm_videostore.cpp', 543 )]
03/28/24 06:34:06.064593 zmc_m30[2226618].DB1-zm_db.cpp/190 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1711604046.061613, 'zmc_m30', 0, 2241475, -1, 'WAR', 'Failed to open videostore, turning on jpegs', 'zm_event.cpp', 701 )]
03/28/24 06:34:06.065643 zmc_m30[2241475].DB1-zm_db.cpp/190 [Success running sql query UPDATE Events SET SaveJpegs=1 WHERE Id=2275287]
03/28/24 06:34:06.065681 zmc_m30[2241475].DB1-zm_event.cpp/734 [Adding packet 447817]
03/28/24 06:34:06.065690 zmc_m30[2241475].DB1-zm_event.cpp/436 [Have frame type Normal from score(0) state 5 frames 1 bulk frame interval 100 and mod1]
03/28/24 06:34:06.065699 zmc_m30[2241475].DB1-zm_event.cpp/484 [No image]
03/28/24 06:34:06.065705 zmc_m30[2241475].DB1-zm_event.cpp/505 [Frame delta is 1711604046.38414 - 1711604046.38414 = 0.0, score 0 zone_stats.size 0]
03/28/24 06:34:06.065714 zmc_m30[2241475].DB1-zm_event.cpp/541 [Not Adding 1 frames to DB because write_to_db:0 or frames > analysis fps 0.000000 or BULK]
03/28/24 06:34:06.071427 zmc_m30[2241467].DB1-zm_monitor.cpp/1790 [Checking linked monitors]
03/28/24 06:34:06.071453 zmc_m30[2241467].DB1-zm_monitor.cpp/1797 [Linked monitor 31 Cucina-DX-Low is connected]
03/28/24 06:34:06.071463 zmc_m30[2241467].DB1-zm_monitor.cpp/1813 [Linked monitor 31 Cucina-DX-Low is not alarmed]
03/28/24 06:34:06.071472 zmc_m30[2241467].DB1-zm_monitor.cpp/1887 [Not Active(1) enabled 1 active 1 doing motion detection: 0]
03/28/24 06:34:06.071482 zmc_m30[2241467].DB1-zm_monitor.cpp/2040 [State TAPE because image_count(447808)-last_alarm_count(445875) > post_event_count(0) and timestamp.tv_sec(1711604046) - recording.tv_src(1711604046) >= min_section_length(10)]
03/28/24 06:34:06.071521 zmc_m30[2241475].DB1-zm_event.cpp/734 [Adding packet 447818]
03/28/24 06:34:06.071550 zmc_m30[2241475].DB1-zm_event.cpp/436 [Have frame type Normal from score(0) state 5 frames 2 bulk frame interval 100 and mod2]
03/28/24 06:34:06.071568 zmc_m30[2241475].DB1-zm_event.cpp/484 [No image]
03/28/24 06:34:06.124057 zmc_m30[2241467].DB1-zm_monitor.cpp/1790 [Checking linked monitors]
03/28/24 06:34:06.124102 zmc_m30[2241467].DB1-zm_monitor.cpp/1797 [Linked monitor 31 Cucina-DX-Low is connected]
03/28/24 06:34:06.124117 zmc_m30[2241467].DB1-zm_monitor.cpp/1813 [Linked monitor 31 Cucina-DX-Low is not alarmed]
03/28/24 06:34:06.124131 zmc_m30[2241467].DB1-zm_monitor.cpp/1887 [Not Active(1) enabled 1 active 1 doing motion detection: 0]
03/28/24 06:34:06.124146 zmc_m30[2241467].DB1-zm_monitor.cpp/2040 [State TAPE because image_count(447809)-last_alarm_count(445875) > post_event_count(0) and timestamp.tv_sec(1711604046) - recording.tv_src(1711604046) >= min_section_length(10)]
03/28/24 06:34:06.124161 zmc_m30[2241467].DB1-zm_packetqueue.cpp/246 [Tail count is 0, queue size is 3]
03/28/24 06:34:06.124181 zmc_m30[2241467].DB1-zm_packetqueue.cpp/337 [Resulting it pointing at latest packet? 1, next front points to begin? 1, Keyframe interval 2]
03/28/24 06:34:06.124211 zmc_m30[2241475].DB1-zm_event.cpp/734 [Adding packet 447819]
03/28/24 06:34:06.124234 zmc_m30[2241475].DB1-zm_event.cpp/436 [Have frame type Normal from score(0) state 5 frames 3 bulk frame interval 100 and mod3]
====================================================================================================
let me add that the empty files are related to the HiRes streams. the LowRes stream keeps kinda working because zmc instead of registering mp4 switch to saving jpegs...
I'll add the debug log of the LowRes Stream in a different message as there is a limit in the message size...