Vstarcam and ZM 1.30.0 in Raspbian

Forum for questions and support relating to the 1.30.x releases only.
Locked
clemenlg
Posts: 2
Joined: Wed Nov 14, 2018 8:14 pm

Vstarcam and ZM 1.30.0 in Raspbian

Post by clemenlg »

Hi,
First of all, thanks for the people who invests his time helping the others.
I've a Vstarcam C22Q, and I can open rtsp://user:password@ip:port/udp/av0_0 in vlc without problem.
I've 3 streams:
  • av0_0: Main Stream: 2560×1440@15fps
  • av0_1: Sub Stream:360p(640X360)@15fps
  • av0_2: Third Stream:180p(320X180)@10fps
If I want to use the second stream (640x360), it works perfectly:
  • Source type: ffmpeg
  • Source Path: rtsp://user:password@ip:port/udp/av0_1
  • Remote Method: RTP/Unicast
  • Capture Width: 640
  • Capture Height: 360
But if I want to use the first stream (2560x1440), I can't see nothing (no image), with the same configuration:
  • Source type: ffmpeg
  • Source Path: rtsp://user:password@ip:port/udp/av0_0
  • Remote Method: RTP/Unicast
  • Capture Width: 2560
  • Capture Height: 1440
I can see in logs:

Code: Select all

'zmc -m 1' exited abnormally, exit status 255
Can't find process with command of 'zma -m 1'
'zmc -m 1' crashed, signal 6
Starting pending process, zmc -m 1
'zmc -m 1' starting at 18/11/15 13:29:49, pid = 5238
'zmc -m 1' started at 18/11/15 13:29:49
'zmc -m 1' crashed, signal 6
Restarting capture daemon for Monitor-1, shared data not valid
It try to create a process, but crash, and try one more time to create the process, and crash, ...
I read a lot of posts, but I can't see what means signal 6 or status 255.
What's the problem?
Regards
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Vstarcam and ZM 1.30.0 in Raspbian

Post by bbunge »

With a pi you are likely out of memory using high resolution. Check /dev/shm for free space then lower the camera resolution.
clemenlg
Posts: 2
Joined: Wed Nov 14, 2018 8:14 pm

Re: Vstarcam and ZM 1.30.0 in Raspbian

Post by clemenlg »

Hi,
I've 404Mb free (only used 13%):
S.ficheros Tamaño Usados Disp Uso% Montado en
tmpfs 464M 60M 404M 13% /dev/shm
You think this is the problem?
Regards
jwarfin
Posts: 41
Joined: Mon Jul 23, 2018 4:36 am

Re: Vstarcam and ZM 1.30.0 in Raspbian

Post by jwarfin »

The most likely cause is ZM cannot allocate enough shared memory.

The shared mem usage you showed is probably not applicable because the capture daemon is probably not running because it crashed.

This can give you some background info: https://wiki.zoneminder.com/Math_for_Me ... o_optimize

The above mostly pertains to an older version of ZM, but the formula for calculating basic shared memory needs is still reasonably relevant.

I did a quick calc using the few specs on your cam that you provided & I got around 316MB. That was assuming 24bit color and an image buffer of 25. If your image buffer size is greater than 25 and/or you're using 32bit color then you could be over 400MB. Anyway, 316MB is actually pretty close to the max shared mem available on your setup. Note that other stuff running on the system can consume shared mem too - just depends on how you've setup your pi.

An easy test would be to just set the monitor config for the camera to 8bit grayscale/B&W. That will use a lot less shared memory (if the monitor was previously configured for 24bit or 32bit color). If the cam then works, you know the issue was indeed not enough shared memory.

Of course, if you have your image buffer set high (> 25) then that's a factor too and you could try dropping it to 25 (or less) to test.
Locked