IN-9420 2K+: Not working with audio disabled

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
sherminator
Posts: 18
Joined: Mon Jul 18, 2016 8:30 am

IN-9420 2K+: Not working with audio disabled

Post by sherminator »

Hi there,

we have been using Zoneminder 1.36.35 together with Instar cameras for a long time and are very satisfied.
Now we are testing the IN-9420 2K+ (current firmware) for the first time and have the following issue: As long as audio is activated on the camera (Multimedia -> Audio), everything works fine. However, as soon as we disable audio, we no longer get any pictures from the camera. We then find these messages in the logs:

Code: Select all

Mar 11 16:26:39 <hostname> zmc_m7[2388902]: INF [zmc_m7] [Unable to read packet from stream 0: error -541478725 "End of file".]
Mar 11 16:26:39 <hostname> zmc_m7[2388902]: ERR [zmc_m7] [Failed to capture image from monitor 7 <monitor name> (1/1)]
Mar 11 16:26:39 <hostname> zmc_m7[2388902]: INF [zmc_m7] [<monitor name>: image_count:1448 - Closing event 2429651, shutting down]
Mar 11 16:26:39 <hostname> zms_m7[2388414]: ERR [zms_m7] [Monitor shm is not connected]
Mar 11 16:26:50 <hostname> zmc_m7[2388902]: ERR [zmc_m7] [Unable to open input rtsp://ip:554/livestream/11 due to: Invalid data found when processing input]
Mar 11 16:27:02 <hostname> zmc_m7[2388902]: ERR [zmc_m7] [Unable to open codec for audio stream from rtsp://ip:554/livestream/11]
Mar 11 16:27:02 <hostname> zmc_m7[2388902]: ERR [zmc_m7] [Failed to prime capture of initial monitor]
Mar 11 16:27:24 <hostname> zms_m7[2388414]: ERR [zms_m7] [Monitor shm is not connected]
Mar 11 16:27:26 <hostname> zms_m7[2388414]: ERR [zms_m7] [Can't open memory map file /dev/shm/zm.mmap.7: No such file or directory]
Mar 11 16:27:26 <hostname> zms_m7[2388414]: ERR [zms_m7] [Unable to connect to monitor id 7 for streaming]
What can we do about this?

Thanks a lot for your support and many greets
Stephan
User avatar
iconnor
Posts: 3327
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: IN-9420 2K+: Not working with audio disabled

Post by iconnor »

You are going to have to turn on debug logging to get more info.

At the end of the day though, ffmpeg is saying it doesn't support whatever the camera is sending. Maybe you can change that in the camera, or upgrade ffmpeg libraries.
sherminator
Posts: 18
Joined: Mon Jul 18, 2016 8:30 am

Re: IN-9420 2K+: Not working with audio disabled

Post by sherminator »

Thanks for your reply!
You are going to have to turn on debug logging to get more info.
I just set LOG_LEVEL_SYSLOG = Debug, but I can't see any difference in /var/log/syslog. Did I miss something?
ffmpeg is saying it doesn't support whatever the camera is sending.
ok. That's curious, because the issue occurs when I turn something off. Maybe I will also ask Instar.
sherminator
Posts: 18
Joined: Mon Jul 18, 2016 8:30 am

Re: IN-9420 2K+: Not working with audio disabled

Post by sherminator »

Good news:
Instar confirmed that there is a bug in the current firmware 3.7.0. When disabling audio the camera keeps sending an (empty or faulty) audio stream.
Workaround is disabling audio followed by a restart of the camera. After the restart there is no audio stream left.
In the next but one firmware update the bug will be fixed.
Suggestion for Zoneminder: Maybe you can handle this case, for example by ignoring empty or faulty (audio) streams instead of stopping recording at all.
User avatar
iconnor
Posts: 3327
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: IN-9420 2K+: Not working with audio disabled

Post by iconnor »

Definitely.

In one of my many branches I have a likely fix, because when using an hls stream as input I found streams with AAC audio that can't be stored in an mp4. Building up a list of what can and can't be stored is kinda annoying.
Post Reply