Broken image no matter what...

Forum for questions and support relating to the 1.24.x releases only.
Locked
luksimir
Posts: 2
Joined: Fri Aug 20, 2010 3:31 pm

Broken image no matter what...

Post by luksimir »

Greetings Everybody.

Please shoot me, if I am asking something, that has already been answered, but in the last week or so, i have cruised allover google and this particular forum. There have been answers regarding my problem, but none of them worked.

No matter what i do i get a broken image on my monitor (see attachment). I have tried with installing zm with enabled mmap, also i have increased the value of shared memory, but still no success.

Has anyone stumbled upon this situation? I use ubuntu-10.04.1-server-amd64, zoneminder 1.24.2 and am connecting an USB webcam.

Any help would be greatly appreciated, even if someone just points me to right direction.

Best regards,
Luka



Image
luksimir
Posts: 2
Joined: Fri Aug 20, 2010 3:31 pm

Post by luksimir »

Hello again.

I forgot to mention, that camera works normally wit xawtv...

BR,
Luka
chriswhat21
Posts: 1
Joined: Mon Aug 23, 2010 6:59 pm

Post by chriswhat21 »

I have 2 webcams (old Intel Easy webcam, and a $13 philips from BigLots) that are usb and were doing the same thing. I was about to give up when I found http://www.zoneminder.com/wiki/index.php/Uvc. I didn't actually end up using the uvc-streamer, but I installed webcam-server from the repos and followed these instructions http://ubuntuforums.org/showthread.php? ... id=1046558. I use this as my "/etc/init.d/webcam-server"

Code: Select all

#!/bin/sh

SERVER_BIN=webcam-server
LOCK_FILE=/var/lock/$SERVER_BIN
RTRN=0
OPTIONS0='-v -g 320x240 -p 8090 -d /dev/video0'
OPTIONS1='-v -g 320x240 -p 8091 -d /dev/video1'
OPTIONS2='-v -g 320x240 -p 8092 -d /dev/video2'

start() {

[ -f $LOCK_FILE ] && echo "$SERVER_BIN already started"
[ -f $LOCK_FILE ] && return

echo -n "Starting $SERVER_BIN: "
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

nohup $SERVER_BIN $OPTIONS0 > /dev/null 2>/dev/null &
nohup $SERVER_BIN $OPTIONS1 > /dev/null 2>/dev/null &
nohup $SERVER_BIN $OPTIONS2 > /dev/null 2>/dev/null &

RTRN=$?
[ $RTRN -eq 0 ] && echo Started! || echo FAIL
[ $RTRN -eq 0 ] && touch $LOCK_FILE


}

stop() {
[ -f $LOCK_FILE ] || echo "$SERVER_BIN is not running"
[ -f $LOCK_FILE ] || return
echo -n "Stopping $SERVER_BIN: "
pkill -f "$SERVER_BIN $OPTIONS0"
pkill -f "$SERVER_BIN $OPTIONS1"
pkill -f "$SERVER_BIN $OPTIONS2"
RTRN=$?
rm -f $LOCK_FILE
[ $RTRN -eq 0 ] && echo Stopped! || echo FAIL
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
RTRN=1
esac
exit $RTRN
video0 & video1 are my webcams and video 2 is my tv tuner so I can see my DirecTv box with no sound. Just create on "OPTIONS#" or remove them to match your setup. Make sure you add or remove the OPTIONS# lines from the start() and stop().
Locked