Intermintent Video outtage

Support and queries relating to all previous versions of ZoneMinder
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay so the google search is not boding well.
http://www.google.com/search?hl=en&safe ... +1131:7130

I see the card mentioned a few times but still have allot to go through.
Also I was not able to find this card in the card gallery.
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

i have been testing since i readded all my cameras and it dosent happen as bad, when it does it is always the first few images in the "stills" that are black then the rest are good. the streams are mostly solid execpt for the odd blip and dosent seems to be timed wiht the recordings
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

might this be a issue with zoneminder or the filesystem, it seems a event that had 6 black frames now only has 2 black frames I think this is a file system issue mabey mabey mysql? the plot thickens?
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

it is confirmed that the image black outs at the beginning of recorded streems ONLY occurs with modetect.

When set as mocord there is no black frames and it records perfectly.

is there some tweeking i can do with modetect to rid the black frames
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

well after a complete reinstall of ubuntu and zoneminder it is still doing the black image at the beginning of modetect again, with a new great problem.
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

i found this however I am not positivite if this will help me and exactly how to implement it. http://linux.bytesex.org/v4l2/saa7134.html
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I was looking at your server, well at least the web interface, I see that some events do fine while others suffer the effect you describe.
With out going through the logs my first guess would be to question your shared memory settings, followed by run a memtest for failing memory. So far only those two things come to mind.
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

the light buld turns on for me i just did happen to put in another gig of ram from "ebay" last week total (2 gig) i ran a memtest it looked like it pased although i didnt let it run 100% which i guess is the same as letting run for 30 seconds so i think i will have to take out that ram and see if i still get that error.

I still havent firugred out why i can stream jpegs outside of my lan but cambozola works out side of the lan just great since my reinstall of everything



my shared memory key is 0x7a6d0000 thats the default i believe

I am rerunning the memtest right now
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

Ran 3.5 hour memory test (MemTest86 CD from iso) and everythign looked great.

Anymore thoughts?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There are still three possible problems here:
First a generic driver is being used.
Second could be not enough shared memory.
Third is SELinux disabled?

Any or all of these could be contributing to the problem.
I was unable to find any conclusive settings for that card in a google search so there may not be a specific driver for that card available yet. It seems it is doing okay the way it is as it is able to capture images from all the devices.

So check and make sure you have enough shared memory configured as per the entry in the FAQ to find your requirements and set your shared memory accordingly, modect uses buffering to store images until a change in the image is detected that fits the requirement of the zone, it then pulls the buffered images out of shared memory and saves them to your event folder and captures current images to add to them.
junior79
Posts: 18
Joined: Tue Aug 05, 2008 7:41 pm

Post by junior79 »

Ok so I discovered something just now, if I use firefox to view the events the black images dont show in the stream but they are present in the stills portion of the event. I am curious if ayone else might be getting the black images at the begeinning of thier capture but not seeing it because of using straight jpeg streaming and not cambozola. It seems that cambozola dsoent like the first bit of the black images and wont stream the rest. I've also increased my shared memory to 192 megs. I am also planing to replace that camera today i dont think it is the camera as the live view always works with the odd blip.
il_ferra
Posts: 5
Joined: Sun Oct 05, 2008 2:33 pm

Post by il_ferra »

Hi
i've the same problem!!
my dvr card is a 4 channel saa7130 chip based one. It's an ether9404.
lspci say:

Code: Select all

00:03.0 0480: 1131:7130 (rev 01)
	Subsystem: 1131:0000
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort>SERR- <PERR-
	Latency: 66 (3750ns min, 9500ns max)
	Interrupt: pin A routed to IRQ 20
	Region 0: Memory at d0400c00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [40] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
of course repeated 4 times.
the system (ubuntu 8.04.1) wasn't able to recognize the card so i tried few card types. (ex. card=1 in modprobe.d)
Then the card si registered and video devices are created.
i' experiencing the same blackouts as junior79 and looking into zmdc.log a can see:

Code: Select all

11/22/08 19:50:01.471082 zmdc[4712].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
11/22/08 19:50:09.263582 zmdc[4712].INF ['zmc -d /dev/video1' starting at 08/11/22 19:50:09, pid = 4956]
11/22/08 19:51:07.563016 zmdc[4712].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
11/22/08 19:51:19.488798 zmdc[4712].INF ['zmc -d /dev/video1' starting at 08/11/22 19:51:19, pid = 4958]
11/22/08 19:52:08.101453 zmdc[4712].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
11/22/08 19:52:08.102058 zmdc[4712].INF [Starting pending process, zmc -d /dev/video0]
11/22/08 19:52:08.106466 zmdc[4712].INF ['zmc -d /dev/video0' starting at 08/11/22 19:52:08, pid = 4959]
...
i think it's a zoneminder zmc daemon problem because the card is a v4l2 card.
dmesg:

Code: Select all

[ 1469.159820] saa7130[3]: found at 0000:00:03.0, rev: 1, irq: 20, latency: 66, mmio: 0xd0400c00
[ 1469.159888] saa7130[3]: subsystem: 1131:0000, board: Sabrent SBT-TVFM (saa7130) [card=42,insmod option]
[ 1469.159919] saa7130[3]: board init: gpio is 10000
[ 1469.267790] saa7130[3]: Huh, no eeprom present (err=-5)?
[ 1469.275202] saa7130[3]: registered device video3 [v4l2]
is there a way to solve the problem?
thanks
Locked