I get a 20 sec lag on an rtsp stream from aircam dome
Posted: Wed Jan 23, 2013 7:20 pm
I have ZM with 5 cameras, 4 are mjpeg in 640x320 (wansview and foscam). I get lag of maybe 1-2 seconds in live view at most.
Then, I have a single 720p camera, an aircam dome, and get its video like so (from the source tab):
rtsp://aircam1:554/live/ch00_0
24 bit colour
1280
720
do not preverve aspect ratio
orientation: normal
ZM works ok with it, well kind of, there is this bug: http://www.zoneminder.com/forums/viewto ... 67&p=78931
but overall video works.
But, when I look in live view, I get a 1-2sec delay at most, so the 20sec delay isn't coming from the camera.
For my own sanity, I tried using the camera at 640x368 instead of 1280x720, and it made no difference in the delay, so the problem looks like it's not linked the resolution.
I see this in my logs in case it helps:
Jan 23 11:17:17 gargamel zms[27657]: WAR [Unable to store frame as shared memory invalid]
Jan 23 11:17:17 gargamel zmc_m2[27947]: ERR [Got unexpected memory map file size 138241272, expected 35329272]
Jan 23 11:17:18 gargamel zmc_m2[27947]: INF [Starting Capture]
Jan 23 11:17:18 gargamel zmc_m2[27947]: INF [Priming capture from rtsp://aircam1:554/live/ch01_0]
Jan 23 11:17:18 gargamel zms[27657]: WAR [Unable to store frame as timestamp invalid]
Jan 23 11:17:18 gargamel zma_m2[25156]: INF [Got signal 1 (Hangup), reloading]
I've already raised my shared memory as per the FAQ:
gargamel:~# grep . /proc/sys/kernel/shm???
/proc/sys/kernel/shmall:234217728
/proc/sys/kernel/shmmax:234217728
/proc/sys/kernel/shmmni:4096
Any idea what else I might be missing or what's causing the huge delay?
Thanks,
Marc
Then, I have a single 720p camera, an aircam dome, and get its video like so (from the source tab):
rtsp://aircam1:554/live/ch00_0
24 bit colour
1280
720
do not preverve aspect ratio
orientation: normal
ZM works ok with it, well kind of, there is this bug: http://www.zoneminder.com/forums/viewto ... 67&p=78931
but overall video works.
But, when I look in live view, I get a 1-2sec delay at most, so the 20sec delay isn't coming from the camera.
For my own sanity, I tried using the camera at 640x368 instead of 1280x720, and it made no difference in the delay, so the problem looks like it's not linked the resolution.
I see this in my logs in case it helps:
Jan 23 11:17:17 gargamel zms[27657]: WAR [Unable to store frame as shared memory invalid]
Jan 23 11:17:17 gargamel zmc_m2[27947]: ERR [Got unexpected memory map file size 138241272, expected 35329272]
Jan 23 11:17:18 gargamel zmc_m2[27947]: INF [Starting Capture]
Jan 23 11:17:18 gargamel zmc_m2[27947]: INF [Priming capture from rtsp://aircam1:554/live/ch01_0]
Jan 23 11:17:18 gargamel zms[27657]: WAR [Unable to store frame as timestamp invalid]
Jan 23 11:17:18 gargamel zma_m2[25156]: INF [Got signal 1 (Hangup), reloading]
I've already raised my shared memory as per the FAQ:
gargamel:~# grep . /proc/sys/kernel/shm???
/proc/sys/kernel/shmall:234217728
/proc/sys/kernel/shmmax:234217728
/proc/sys/kernel/shmmni:4096
Any idea what else I might be missing or what's causing the huge delay?
Thanks,
Marc