Hi All. Having a bit of a problem getting my Y-Cam Black YCB004 working, can't seem to find much documentation or any posts about it.
Am running ZoneMinder 1.23.3 on Kubuntu 8.10. Have x3 Panasonic BL-C10s that are working perfectly on Mocord, but aren't having any joy with the Y-Cam. The IP address is green, as is the "Mocord", which I thought meant that all was well? I just get a blank square, and no recordings.
I have the remote host name in as "admin:pass@192.168.80.XXX" and the path as "/stream.jpg", and I checked that "h_t_t_p_://admin:pass@192.168.80.XXX/stream.jpg" works in a browser (it does). Camera is currently on 640x480 (would like to use this resolution ideally), but have tried it on 320x240 (although this turns the IP red!). I have also tried it on "Monitor".
Any and all help would be very much appreciated!
Cheers,
Matt.
Y-Cam Black YCB004 no worky (IP camera)
Re: Y-Cam Black YCB004 no worky (IP camera)
Shared memory?
Run this script and change the settings to check if anything changes:
Hope it helps, credits goes to the author of the script "Pada",
PacoLM
Run this script and change the settings to check if anything changes:
Code: Select all
#!/bin/sh
# Copyright (C) 2010 Chris "Pada" Kistner
# Modified by PacoLM to check only shared memory settings
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# NOTE: -f you find errors, check that coreutils are installed, if not, run the command below
# apt-get -y install coreutils bc
echo "--- Checking memory setting..."
page_size=$(getconf PAGE_SIZE)
mem_bytes=$(awk '/MemTotal:/ { printf "%0.f",$2 * 1024}' /proc/meminfo)
mb=1048576
mem_bytes_mb=$(expr $mem_bytes / $mb)
shmmax=$(echo "$mem_bytes * 0.90" | bc | cut -f 1 -d '.')
shmmax_mb=$(expr $shmmax / $mb)
shmall=$(expr $mem_bytes / $page_size)
shmmax_cur=$(sysctl -n kernel.shmmax)
shmmax_cur_mb=$(expr $shmmax_cur / $mb)
shmall_cur=$(sysctl -n kernel.shmall)
echo "-- Total memory = $mem_bytes B = $mem_bytes_mb MB"
echo "-- Page size = $page_size B"
echo "-- Current kernel.shmmax = $shmmax_cur B = $shmmax_cur_mb MB"
echo "-- Current kernel.shmall = $shmall_cur pages"
if [ "$shmmax" -eq "$shmmax_cur" ] && [ "$shmall" -eq "$shmall_cur" ]; then
echo "-- Recommended shm values already set"
else
echo "-- Recommended: kernel.shmmax = $shmmax B = $shmmax_mb MB"
echo "-- Recommended: kernel.shmmall = $shmall pages"
fi
# Done
echo "--- Done."
PacoLM
After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Re: Y-Cam Black YCB004 no worky (IP camera)
Thank you very much indeed for the reply.
Is what shared memory? The camera? The computer in question has its own dedicated graphics card if that's what you are referring to? Sorry if that's not what you mean!
I appreciate you showing me that script; I will need to read up as to what it does before I run it (I assume that information is here somewhere, will look shortly). ZM is installed on my home automation system, so don't want anything untoward to happen!
Cheers,
Matt.
Is what shared memory? The camera? The computer in question has its own dedicated graphics card if that's what you are referring to? Sorry if that's not what you mean!
I appreciate you showing me that script; I will need to read up as to what it does before I run it (I assume that information is here somewhere, will look shortly). ZM is installed on my home automation system, so don't want anything untoward to happen!
Cheers,
Matt.
Re: Y-Cam Black YCB004 no worky (IP camera)
Ok, this is what I got:
Is this referring to swap space? Is it swap space that I have to increase?
Cheers,
Matt.
Code: Select all
--- Checking memory setting...
-- Total memory = 2121965568 B = 2023 MB
-- Page size = 4096 B
-- Current kernel.shmmax = 33554432 B = 32 MB
-- Current kernel.shmall = 2097152 pages
-- Recommended: kernel.shmmax = 1909769011 B = 1821 MB
-- Recommended: kernel.shmmall = 518058 pages
--- Done.
Cheers,
Matt.
Re: Y-Cam Black YCB004 no worky (IP camera)
Sorry for the stupid questions - I got it going with a little research, was just panicking about getting it working properly before I went away.
Had to increase the kernel.shmmax value (FAQ, of course). Thank you for the script, could not have done it without that.
Cheers,
Matt.
Had to increase the kernel.shmmax value (FAQ, of course). Thank you for the script, could not have done it without that.
Cheers,
Matt.