Something wrong with capuring video since upgrade

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Something wrong with capuring video since upgrade

Post by Taurus61 »

Hi,
Since i upgrade version 1.35 to 1.36.5 and after that 1.36.8 i have an issue with video capturing. It looks like if there is a capture in the storage location but the file is very small and gives an error that the video can not be loaded ........
Older mp4's can be played without any problem and ofcourse the capturing was working fine on the previous version. I think an important setting in an config is overwritten but i can't figure out which one. All the rest works fine except storing the captured video's from my cams.
Searched for many days for a solution but i can't find a suitable.
I am on CENTOS 7.9.2009 and hope that some can push me in the right direction to solve this problem
Many thanks
Paul


This is what the log says
2021-10-31 20:37:48 zmc_m7 21188 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 241
2021-10-31 19:50:05 zmc_m7 20911 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1083
2021-10-31 19:45:15 zmc_m7 20398 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1083
2021-10-31 19:36:55 zms_m7 20407 WAR no last_frame_sent. Shouldn't happen. frame_mod was (1) frame_count (0) zm_monitorstream.cpp 822
2021-10-31 19:36:50 zmc_m7 20279 ERR Failed to capture image from monitor 7 Achterdeur (1/1) zmc.cpp 306
2021-10-31 19:36:50 zmc_m7 20279 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087
2021-10-31 19:36:50 zmc_m7 20279 ERR Unable to read header zm_remote_camera_http.cpp 634
2021-10-31 19:36:50 zmc_m7 20279 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 241
2021-10-31 19:35:57 zmc_m7 18300 ERR Failed to capture image from monitor 7 Achterdeur (1/1) zmc.cpp 306
2021-10-31 19:35:57 zmc_m7 18300 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087
2021-10-31 19:35:57 zmc_m7 18300 ERR Unable to read header zm_remote_camera_http.cpp 634
2021-10-31 19:35:57 zmc_m7 18300 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 241
2021-10-31 19:03:40 zmc_m7 17764 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1083
2021-10-31 18:54:19 zmc_m7 12321 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1083
2021-10-31 17:26:30 zmc_m7 12328 WAR Encoder Option # Lines beginning with # are a comment # For changing quality, use the crf option# 1 is best, 51 is worst quality#crf not recognized by ffmpeg codec zm_videostore.cpp 318
2021-10-31 17:26:30 zmc_m7 12328 ERR Failed to create hwdevice_ctx zm_videostore.cpp 256
2021-10-31 17:14:35 zmc_m7 4291 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1083
2021-10-31 17:00:25 zmc_m7 4291 ERR Failed to capture image from monitor 7 Achterdeur (1/1) zmc.cpp 306
2021-10-31 17:00:25 zmc_m7 4291 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087
2021-10-31 17:00:25 zmc_m7 4291 ERR Unrecognised content type 'text/htmlg' zm_remote_camera_http.cpp 827
2021-10-31 17:00:25 zmc_m7 4291 ERR No content boundary found in header ' text/html; charset=UTF-8' zm_remote_camera_http.cpp 790
2021-10-31 15:16:48 zmc_m7 4291 ERR Failed to capture image from monitor 7 Achterdeur (1/1) zmc.cpp 306
2021-10-31 15:16:48 zmc_m7 4291 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087
2021-10-31 15:16:48 zmc_m7 4291 ERR Unable to read content zm_remote_camera_http.cpp 976
2021-10-31 14:38:37 zmc_m7 2978 WAR Unable to capture image, retrying


I am on CENTOS 7.9.2009 and hope that some can push me in the right direction to solve this problem
Many thanks
Paul
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Something wrong with capuring video since upgrade

Post by dougmccrary »

You’re in remote? Try Ffmpeg.
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Re: Something wrong with capuring video since upgrade

Post by Taurus61 »

No that cam is in Ffmpeg.
After some trial and error the status now is that i have a mp4 file which is still very small (222K) almost the size of the jpeg captures.
That mp4 file i can play but only outside ZM. Inside same error as before video can not be loaded ........
Tried a change in the source and switched in the storage tab "Output codec" and "encoder" both from auto to h264. Then there wasn't a mp4 file at all but i could play back the detected movement within ZM. I am not very familiar with this kind of stuff so you can imagine that i didn't understand this.
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Something wrong with capuring video since upgrade

Post by dougmccrary »

Do you want to decode? Use passthrough.
Otherwise try this except for the storage area:
Attachments
B6F81CF7-9D28-4826-B29E-FAC1D5E0731B.png
B6F81CF7-9D28-4826-B29E-FAC1D5E0731B.png (59.95 KiB) Viewed 2204 times
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Re: Something wrong with capuring video since upgrade

Post by Taurus61 »

Thanks. I will try this.
Before the upgrade to 1.36 i had a stable system for years. Now after the upgrade i run into this trouble. Do you have any idea why? I mean what is changed compared to previous version?
I get back to you with the results
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Something wrong with capuring video since upgrade

Post by dougmccrary »

Slews of changes. Almost 2.0 version.
A few memory leaks most of which have been fixed. Right NOW the dev version is much better on my machines. But you probably don’t want to use it yet because it breaks often.
Taurus61
Posts: 30
Joined: Thu Jun 13, 2019 1:09 pm

Re: Something wrong with capuring video since upgrade

Post by Taurus61 »

Hello again,
Your solution did it. Everything normal again.
Conclusion: The auto mode on encoder and output codec don't work as it should be after the upgrade.
Are you involved in the development of ZM?
Thanks for your time and help
Rgds, Paul
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Something wrong with capuring video since upgrade

Post by dougmccrary »

Involved?
Only to the extent of running the development version when it’s not fatally broken. And sending money from time to time.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Something wrong with capuring video since upgrade

Post by iconnor »

Yeah auto might have been a mistake. Should have defaulted to h264.
Post Reply