linux noob needs help!!

Support and queries relating to all previous versions of ZoneMinder
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

linux noob needs help!!

Post by rDr4g0n »

ok guys, im setting up a zoneminder system for a friend, and i think im gonna need some help :)

ive ordered 3 topica TP-3000DS cameras from bluecherry as well as a PV-155P 16 port capture card. The guy who im doing this already had 7 X10 analogue cameras that he wants me to use with the system (the X10 company is horrible btw). I also have 2 trendnet IP cams. ordered a Dell pc with ubuntu preinstalled on it. ( Inspiron Desktop 530 N, dual core proc, 2 gigs ram ).

i managed to get zm installed with the help of the walkthrough from http://www.howtoforge.com/video_surveil ... der_ubuntu .

so heres where im at: ive got the zm interface up, the IP cams i have running as well. minor problem with that is that i cant do 640x480. If i set the cam to that res and then set ZM to that res, it simply doesnt work. I have 1 of the analogue cams set up on video0 channel 0 (even though the manual says channel 1, its actually 0). additionally i cannot get the analogue cams working at 640x480. they work fine at 320x240.

i guess i should clarify in case it needs saying. the capture card has 2 pigtails, each with 2 sets of 4 bnc connectors. there are 4 green, numbered vid1 - vid4, then 4 blue numbered vid1-vid4. the second pigtail is the exact same. accoring to the "manual" that came with the card, green vid1 - vid4 is channels 1 - 4, but ive found them to actually be 0 - 3. blue vid 1 - vid 4 are channels 4 - 7, and the second pigtail is the same way. basically all 16 inputs are separate channels...

i have 3 other cams on the desk here, and if i plug them into channel 0, each work just fine. when i make a new monitor and set it as say, channel 1, it either gives me a blue screen for teh cam image, or causes the other video0 camera(s) to stop functioning alltogether. Also, under circumstances ive yet to determine, the stream for the cam will flip through all 3 attached video0 cams really fast...

the problems seem to only affect the analogue cams. the ip cam is pretty much solid (minus the little resolution problem, but thats no biggie at the moment). i didnt install anything to get the capture card going, it worked just fine right away (by just fine i mean i could see an image on one of the cams lol)

overall its really weird, and since im such a linux noob i really dunno where to start troubleshooting. I have very little experience with knowing where stuff is in the linux filesystem or how to get relevant data, but i learn fast, so help me please! just be sure to include relevant links or instructions!!

so this is what i know, im using zm v1.22.3 and ubuntu 7.10

thanks a ton in advanced :D
________
Nevada marijuana dispensaries
Last edited by rDr4g0n on Fri Feb 11, 2011 11:53 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Check your shared memory setting as discribed in the wiki FAQ. Sounds like that might be your issue but make sure you have thosee errors in your logs before changing the settings.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

the command listed in the faq is cat /proc/sys/kernel/shmall and it yielded the result 2097152... so i think 2gigs is enough right?

the error im getting over and over in zmdc.log is

Code: Select all

01/13/08 17:04:58.224277 zmdc[5390].INF ['zmc -d /dev/video0' starting at 08/01/13 17:04:58, pid = 8314]
01/13/08 17:04:58.357194 zmdc[5390].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
ive found threads in the forum that mention this, but i really cant understand what the recommendations are or mean, and how to apply them.

also, i found some more specific info. i currently have 2 analogue cams connected to the capture card. cam1 works just fine at video0 channel 0. cam 2 is at video0 channel 1 but displays a bluescreen. i know that camera and cable work because if i plug it into channel 0, the picture is fine. also, if i add a third cam (next in sequence video0 channel2) all three cams turn red and their pages show a broken image.

also, no matter how much figeting with the analogue cams, the IP cam works fine...

heres some stuff from dmesg... does this look correct?

Code: Select all

[   31.191396] Linux video capture interface: v2.00
[   31.344684] bttv: driver version 0.9.17 loaded
[   31.344688] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   31.345044] bttv: Bt8xx card found (0).
[   31.345068] ACPI: PCI Interrupt 0000:03:08.0[A] -> GSI 16 (level, low) -> IRQ 16
[   31.345082] bttv0: Bt878 (rev 17) at 0000:03:08.0, irq: 16, latency: 16, mmio: 0xfddff000
[   31.345092] bttv0: detected: Provideo PV150A-1 [card=98], PCI subsystem ID is aa00:1460
[   31.345095] bttv0: using: ProVideo PV150 [card=98,autodetected]
[   31.345120] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   31.345621] bttv0: using tuner=-1
[   31.345623] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[   31.347497] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[   31.348153] bttv0: i2c: checking for TDA9887 @ 0x86... not found
[   31.348903] bttv0: registered device video0
[   31.348937] bttv0: registered device vbi0
[   31.348966] bttv0: PLL: 28636363 => 35468950 .. ok
[   31.379044] bttv: Bt8xx card found (1).
[   31.379074] ACPI: PCI Interrupt 0000:03:09.0[A] -> GSI 17 (level, low) -> IRQ 22
[   31.379088] bttv1: Bt878 (rev 17) at 0000:03:09.0, irq: 22, latency: 16, mmio: 0xfddfd000
[   31.379100] bttv1: detected: Provideo PV150A-2 [card=98], PCI subsystem ID is aa01:1461
[   31.379104] bttv1: using: ProVideo PV150 [card=98,autodetected]
[   31.379132] bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   31.379674] bttv1: using tuner=-1
[   31.379677] bttv1: i2c: checking for TDA9875 @ 0xb0... not found
[   31.381113] bttv1: i2c: checking for TDA7432 @ 0x8a... not found
[   31.381731] bttv1: i2c: checking for TDA9887 @ 0x86... not found
[   31.382518] bttv1: registered device video1
[   31.382645] bttv1: registered device vbi1
[   31.382668] bttv1: PLL: 28636363 => 35468950 .. ok
[   31.410915] bttv: Bt8xx card found (2).
[   31.410940] ACPI: PCI Interrupt 0000:03:0a.0[A] -> GSI 18 (level, low) -> IRQ 18
[   31.410955] bttv2: Bt878 (rev 17) at 0000:03:0a.0, irq: 18, latency: 16, mmio: 0xfddfb000
[   31.410968] bttv2: detected: Provideo PV150A-3 [card=98], PCI subsystem ID is aa02:1462
[   31.410971] bttv2: using: ProVideo PV150 [card=98,autodetected]
[   31.410996] bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   31.411518] bttv2: using tuner=-1
[   31.411520] bttv2: i2c: checking for TDA9875 @ 0xb0... not found
[   31.412154] bttv2: i2c: checking for TDA7432 @ 0x8a... not found
[   31.412770] bttv2: i2c: checking for TDA9887 @ 0x86... not found
[   31.413536] bttv2: registered device video2
[   31.413672] bttv2: registered device vbi2
[   31.413694] bttv2: PLL: 28636363 => 35468950 .. ok
[   31.442897] bttv: Bt8xx card found (3).
[   31.442922] ACPI: PCI Interrupt 0000:03:0b.0[A] -> GSI 19 (level, low) -> IRQ 20
[   31.442935] bttv3: Bt878 (rev 17) at 0000:03:0b.0, irq: 20, latency: 16, mmio: 0xfddf9000
[   31.442951] bttv3: detected: Provideo PV150A-4 [card=98], PCI subsystem ID is aa03:1463
[   31.442953] bttv3: using: ProVideo PV150 [card=98,autodetected]
[   31.442980] bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   31.443366] bttv3: using tuner=-1
[   31.443369] bttv3: i2c: checking for TDA9875 @ 0xb0... not found
[   31.444128] bttv3: i2c: checking for TDA7432 @ 0x8a... not found
[   31.444743] bttv3: i2c: checking for TDA9887 @ 0x86... not found
[   31.445397] bttv3: registered device video3
[   31.445428] bttv3: registered device vbi3
[   31.445450] bttv3: PLL: 28636363 => 35468950 .. ok
the above seems weird to me... this card is supposed to have all 16 channels in video0... but there is 4 different video thingies being registered... can someone englighten me a bit? i really have very little idea whats going on, but id really like to learn!
________
Suzuki Ls650 Savage History
________
Buy mflb
Last edited by rDr4g0n on Mon Feb 14, 2011 4:38 pm, edited 2 times in total.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

the above seems weird to me... this card is supposed to have all 16 channels in video0... but there is 4 different video thingies being registered... can someone englighten me a bit? i really have very little idea whats going on, but id really like to learn!
You have a capture card that has 4 chips so you will have 4 video devices (/dev/video0 /dev/video1 /dev/video2 /dev/video3) and each chip can support 4 cams..that provides for the 16 inputs.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

linuxsense wrote:
the above seems weird to me... this card is supposed to have all 16 channels in video0... but there is 4 different video thingies being registered... can someone englighten me a bit? i really have very little idea whats going on, but id really like to learn!
You have a capture card that has 4 chips so you will have 4 video devices (/dev/video0 /dev/video1 /dev/video2 /dev/video3) and each chip can support 4 cams..that provides for the 16 inputs.
thats what i thought, but why does the manual say otherwise?
________
Yamaha r5
________
Michigan Medical Marijuana Dispensary
Last edited by rDr4g0n on Mon Feb 14, 2011 4:38 pm, edited 2 times in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

dmesg looks good. For more detailed information you will probably need to raise your debug level to 3 to start with and enable debug in the options console under the debug tab.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

k ive raised the level and will restart zm in just a min. i found another weird bit of info that might be useful. before, the second camera was only a blue screen. now it flashes between the correct image and blue screen. not only that, but the stamp in the corner flashes between the correct cam name and the name of the other analogue cam!

for some reason its trying to show both cams at the same time?

restarted zm and now its just blue screen, no funky flashing.
________
Medical Marijuana States
________
Tv Gossip
Last edited by rDr4g0n on Mon Feb 14, 2011 4:38 pm, edited 2 times in total.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

rDr4g0n wrote:
linuxsense wrote:
the above seems weird to me... this card is supposed to have all 16 channels in video0... but there is 4 different video thingies being registered... can someone englighten me a bit? i really have very little idea whats going on, but id really like to learn!
You have a capture card that has 4 chips so you will have 4 video devices (/dev/video0 /dev/video1 /dev/video2 /dev/video3) and each chip can support 4 cams..that provides for the 16 inputs.
thats what i thought, but why does the manual say otherwise?
It says it has 4 capture chips? Guess its just wrong if that is what it says.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

linuxsense wrote:
rDr4g0n wrote:
linuxsense wrote: You have a capture card that has 4 chips so you will have 4 video devices (/dev/video0 /dev/video1 /dev/video2 /dev/video3) and each chip can support 4 cams..that provides for the 16 inputs.
thats what i thought, but why does the manual say otherwise?
It says it has 4 capture chips? Guess its just wrong if that is what it says.
based on the horrible engrish of the manual, i wouldnt put it past them lol.

also found some more interesting info in smwatch.log

Code: Select all

01/13/08 18:05:44.281208 zmwatch[5654].INF [Restarting capture daemon for 1b1, time since last capture 6 seconds (1200269144-1200269138)]
01/13/08 18:05:44.466480 zmwatch[5654].INF ['zmc -d /dev/video0' starting at 08/01/13 18:05:44, pid = 8377]
01/13/08 18:05:44.467266 zmwatch[5654].INF [Restarting capture daemon for 1b2, shared memory not valid]
01/13/08 18:05:44.791800 zmwatch[5654].INF ['zmc -d /dev/video1' stopping at 08/01/13 18:05:44]
________
WEBSITE HOST
________
Teen Vids
Last edited by rDr4g0n on Mon Feb 14, 2011 4:39 pm, edited 2 times in total.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

rDr4g0n wrote:k ive raised the level and will restart zm in just a min. i found another weird bit of info that might be useful. before, the second camera was only a blue screen. now it flashes between the correct image and blue screen. not only that, but the stamp in the corner flashes between the correct cam name and the name of the other analogue cam!

for some reason its trying to show both cams at the same time?

restarted zm and now its just blue screen, no funky flashing.
Cards that support multiple cams per chip can show some funky output if you have been adjusting a lot of settings since your last reboot. Reboot the box and see if that clears it up. Also..you may have odd issues like that if you attempt to run the cams on a single chip at different resolutions...not 100% sure about that card but that is the case with some others I have used.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

01/13/08 18:05:44.467266 zmwatch[5654].INF [Restarting capture daemon for 1b2, shared memory not valid]
You need to follow Cordel's advice and check your shared memory settings as shown in the wiki. Set it, restart the system, make sure you are running your cams at the same resolution for each chip..and you should be good. Or at least a lot closer. But 1st things 1st...get your shared memory set correctly.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

linuxsense wrote:
01/13/08 18:05:44.467266 zmwatch[5654].INF [Restarting capture daemon for 1b2, shared memory not valid]
You need to follow Cordel's advice and check your shared memory settings as shown in the wiki. Set it, restart the system, make sure you are running your cams at the same resolution for each chip..and you should be good. Or at least a lot closer. But 1st things 1st...get your shared memory set correctly.
i posted in my second post what i thought was the shared mem info. from what i understood in the wiki, i need to do this the cat /proc/sys/kernel/shmall to check the shared mem and the result it yields is 2097152. is 2 gigs enough?
________
Ultimate fighter
________
Honda c engine history
Last edited by rDr4g0n on Mon Feb 14, 2011 4:39 pm, edited 2 times in total.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

rDr4g0n wrote: i posted in my second post what i thought was the shared mem info. from what i understood in the wiki, i need to do this the cat /proc/sys/kernel/shmall to check the shared mem and the result it yields is 2097152. is 2 gigs enough?
That is not 2GB of shared memory.

Follow the instructions in the wiki to set it to 134217728 as a good starting point. Be sure to set the changes in sysctl.conf so it will stick on a reboot.

http://www.zoneminder.com/wiki/index.ph ... gs_mean.3F
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

linuxsense wrote:
rDr4g0n wrote: i posted in my second post what i thought was the shared mem info. from what i understood in the wiki, i need to do this the cat /proc/sys/kernel/shmall to check the shared mem and the result it yields is 2097152. is 2 gigs enough?
That is not 2GB of shared memory.

Follow the instructions in the wiki to set it to 134217728 as a good starting point. Be sure to set the changes in sysctl.conf so it will stick on a reboot.

http://www.zoneminder.com/wiki/index.ph ... gs_mean.3F
ahh i hadnt noticed we were talkin bits instead of bytes... anyway, i made teh change via the sysctl.conf file since the command line options said i dont have access (even when using sudo) and i rebooted. Now both analogue camera inputs are blue screens lol. Im getting the same errors as mentioned above.

i wanna seriously thank you guys for the help so far. i love a good community. ive been leanring c++ and i hope to get good with linux and contribute to the community as well. this project is a great place to start learning so thanks a bunch.
________
FREE DRUPAL THEMES
________
Free Joomla Themes
Last edited by rDr4g0n on Mon Feb 14, 2011 4:39 pm, edited 2 times in total.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post by rDr4g0n »

i came home today and checked out the PC taht is running linux. it was at the command line and there were a bunch of errors that said something along the lines of "out of memory error: ending process (apache2) or child"

also i started x, checked the system viewer (since i dunno the command otherwise) and the used pagefile is 5.9/5.9 gigs. the ram usage was at 1.9 out of 2 gigs. the cpu usage was around 20%.

also, the cameras still only display blue screens... i still have the same errors taht i have mentioned above.

Code: Select all

01/13/08 17:04:58.224277 zmdc[5390].INF ['zmc -d /dev/video0' starting at 08/01/13 17:04:58, pid = 8314] 
01/13/08 17:04:58.357194 zmdc[5390].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
and here are some more errors i dug outta syslog.

Code: Select all

Jan 15 19:26:06 dell-desktop zmc_dvideo0[6555]: INF [Got signal (Terminated), exiting]
Jan 15 19:26:06 dell-desktop zmc_dvideo0[6555]: ERR [Sync failure for frame 7 buffer 7(1): Interrupted system call]
Jan 15 19:26:06 dell-desktop zmdc[5389]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255] 

Jan 15 19:26:32 dell-desktop zmc_m4[6878]: ERR [Select error: Interrupted system call]
Jan 15 19:26:32 dell-desktop zmdc[5389]: ERR ['zmc -m 4' exited abnormally, exit status 255] 

Jan 15 19:27:50 dell-desktop zmfix[7269]: INF [Resetting permissions on /dev/video1 to 20666]
Jan 15 19:27:50 dell-desktop zmfix[7269]: ERR [Can't chmod /dev/video1 to 20666: Operation not permitted]
and another error i get when deleting cameras...

Code: Select all

Warning: unlink(events/1b1) [function.unlink]: No such file or directory in /usr/share/zoneminder/zm_actions.php on line 1392

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/zm_actions.php:1392) in /usr/share/zoneminder/zm_funcs.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/zm_actions.php:1392) in /usr/share/zoneminder/zm_funcs.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/zm_actions.php:1392) in /usr/share/zoneminder/zm_funcs.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/zm_actions.php:1392) in /usr/share/zoneminder/zm_funcs.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/zoneminder/zm_actions.php:1392) in /usr/share/zoneminder/zm_funcs.php on line 105
________
Yamaha sw396
________
Lincoln Capri
Last edited by rDr4g0n on Mon Feb 14, 2011 4:39 pm, edited 2 times in total.
Locked