View unanswered posts | View active topics It is currently Sun May 19, 2013 4:18 pm



Reply to topic  [ 5 posts ] 
Y-Cam Black YCB004 no worky (IP camera) 
Author Message

Joined: Thu Apr 28, 2011 11:29 am
Posts: 5
Post Y-Cam Black YCB004 no worky (IP camera)
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.


Thu Apr 28, 2011 12:06 pm
Profile

Joined: Wed Dec 02, 2009 10:55 pm
Posts: 551
Location: Spain
Post Re: Y-Cam Black YCB004 no worky (IP camera)
Shared memory?

Run this script and change the settings to check if anything changes:

Code:
#!/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."


Hope it helps, credits goes to the author of the script "Pada",

PacoLM

_________________
miniITX system + 4 IPCams + 1 Webcam (ZM1.25)


Thu Apr 28, 2011 1:18 pm
Profile

Joined: Thu Apr 28, 2011 11:29 am
Posts: 5
Post 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.


Sun May 01, 2011 4:45 pm
Profile

Joined: Thu Apr 28, 2011 11:29 am
Posts: 5
Post Re: Y-Cam Black YCB004 no worky (IP camera)
Ok, this is what I got:

Code:
--- 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.


Is this referring to swap space? Is it swap space that I have to increase?

Cheers,
Matt.


Sun May 01, 2011 5:04 pm
Profile

Joined: Thu Apr 28, 2011 11:29 am
Posts: 5
Post 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.


Wed May 04, 2011 10:30 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group