[SOLVED] Newbie Help: Ubuntu 8.04

Support and queries relating to all previous versions of ZoneMinder
Locked
the_crowbar
Posts: 22
Joined: Fri May 11, 2007 7:13 pm

[SOLVED] Newbie Help: Ubuntu 8.04

Post by the_crowbar »

Hi all,

I am trying to get ZM 1.22.3 setup under Ubuntu 8.04 x86_64. I have a PV-155 card that the bttv driver autodetects. It has four chips and inputs 0-3 on each /dev/video[0-3] device.

If I setup the first four monitors (dev/video0, 0-3) I can get them all up. As soon as I add the next monitor for /dev/video1,0 they all turn red.

In my /tmp/zmdc.log I see several error entries. Here are soem examples:

Code: Select all

root@sol:/tmp# tail /tmp/zmdc.log 
04/21/08 10:47:27.274802 zmdc[5616].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
04/21/08 10:47:37.645753 zmdc[5616].INF ['zmc -d /dev/video1' starting at 08/04/21 10:47:37, pid = 10014]
04/21/08 10:47:37.776384 zmdc[5616].INF ['zmc -d /dev/video1' stopping at 08/04/21 10:47:37]
04/21/08 10:47:37.827810 zmdc[5616].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
04/21/08 10:50:17.029823 zmdc[5616].INF [Starting pending process, zmc -d /dev/video1]
04/21/08 10:50:17.033602 zmdc[5616].INF ['zmc -d /dev/video1' starting at 08/04/21 10:50:17, pid = 10150]
04/21/08 10:50:17.278508 zmdc[5616].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
04/21/08 10:50:27.981194 zmdc[5616].INF ['zmc -d /dev/video1' starting at 08/04/21 10:50:27, pid = 10152]
04/21/08 10:50:28.112173 zmdc[5616].INF ['zmc -d /dev/video1' stopping at 08/04/21 10:50:28]
04/21/08 10:50:28.164488 zmdc[5616].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
Can someone tell me where to look next?

I have already changed the permissions on /dev/video* to 666.

Thanks,
James
Last edited by the_crowbar on Mon Apr 21, 2008 7:56 pm, edited 1 time in total.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

I would normally tell you to look with xawtv. However, with Hardy I can't get xawtv to work with any capture cards THAT WORK IN ZONEMINDER! Yes, this was the cause of some frustration on my weekend. That said, it sounds like it is not autodetecting correctly. I have had to put 98 in the options file. See this. https://secure.bluecherry.net/support/i ... id=4&nav=0
the_crowbar
Posts: 22
Joined: Fri May 11, 2007 7:13 pm

Still no go.

Post by the_crowbar »

Thanks Lee for the response, but that did not fix the problem.
I removed the bt878 and bttv modules. Modified the /etc/modprobe.d/options file and then insmod the bttv and bt878 modules.

After checking dmesg output I see that the card is detected as a PV-150A-4 card=98 from module option. (I think it was already detected as such, but I know it is now.)

I changed the permissions on /dev/video* to 666 so that is not a problem.

When I start zoneminder this is the /tmp/zdmc.log output:

Code: Select all

04/21/2008 13:26:15.382005 zmdc[18216].INF [Server starting at 08/04/21 13:26:15]
04/21/2008 13:26:18.518709 zmdc[18216].INF ['zmc -d /dev/video0' starting at 08/04/21 13:26:18, pid = 18238]
04/21/2008 13:26:18.651449 zmdc[18216].INF ['zmc -d /dev/video0' already running at 08/04/21 13:26:18, pid = 18238]
04/21/2008 13:26:18.779999 zmdc[18216].INF ['zmc -d /dev/video0' already running at 08/04/21 13:26:18, pid = 18238]
04/21/2008 13:26:18.793971 zmdc[18216].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:26:18.794249 zmdc[18216].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:26:18.798329 zmdc[18216].INF ['zmc -d /dev/video0' starting at 08/04/21 13:26:18, pid = 18242]
04/21/2008 13:26:18.915145 zmdc[18216].INF ['zmfilter.pl' starting at 08/04/21 13:26:18, pid = 18243]
04/21/2008 13:26:19.048335 zmdc[18216].INF ['zmaudit.pl -c' starting at 08/04/21 13:26:19, pid = 18245]
04/21/2008 13:26:19.060856 zmdc[18216].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:26:19.181564 zmdc[18216].INF ['zmwatch.pl' starting at 08/04/21 13:26:19, pid = 18247]
04/21/2008 13:26:24.077809 zmdc[18216].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:26:24.081830 zmdc[18216].INF ['zmc -d /dev/video0' starting at 08/04/21 13:26:24, pid = 18258]
04/21/2008 13:26:24.332643 zmdc[18216].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:26:34.029780 zmdc[18216].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:26:34.033763 zmdc[18216].INF ['zmc -d /dev/video0' starting at 08/04/21 13:26:34, pid = 18259]
04/21/2008 13:26:34.292205 zmdc[18216].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:26:49.425624 zmdc[18216].INF ['zmc -d /dev/video0' starting at 08/04/21 13:26:49, pid = 18296]
04/21/2008 13:26:49.553950 zmdc[18216].INF ['zmc -d /dev/video0' stopping at 08/04/21 13:26:49]
04/21/2008 13:26:49.583664 zmdc[18216].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
This system has 3GB of shared memory configured so that should not be the problem.

Any other ideas?

Thanks,
James
the_crowbar
Posts: 22
Joined: Fri May 11, 2007 7:13 pm

Post by the_crowbar »

Because the BlueCherry.net page listed card=77 as an option I tried it as well. When I restarted ZM the monitor came up and I was able to view a feed from one of the cameras.

As soon as I tried to add the next monitor they all turned red and the log showed this:

Code: Select all

04/21/2008 13:38:07.472000 zmdc[19001].INF [Server starting at 08/04/21 13:38:07]
04/21/2008 13:38:10.608869 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:38:10, pid = 19023]
04/21/2008 13:38:10.740701 zmdc[19001].INF ['zmc -d /dev/video0' already running at 08/04/21 13:38:10, pid = 19023]
04/21/2008 13:38:10.869273 zmdc[19001].INF ['zmc -d /dev/video0' already running at 08/04/21 13:38:10, pid = 19023]
04/21/2008 13:38:11.002180 zmdc[19001].INF ['zmfilter.pl' starting at 08/04/21 13:38:11, pid = 19027]
04/21/2008 13:38:11.136876 zmdc[19001].INF ['zmaudit.pl -c' starting at 08/04/21 13:38:11, pid = 19029]
04/21/2008 13:38:11.273114 zmdc[19001].INF ['zmwatch.pl' starting at 08/04/21 13:38:11, pid = 19031]
04/21/2008 13:38:48.933802 zmdc[19001].INF ['zmc -d /dev/video0' stopping at 08/04/21 13:38:48]
04/21/2008 13:38:49.009715 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:38:49.137182 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:38:49, pid = 19085]
04/21/2008 13:38:49.262488 zmdc[19001].WAR [Can't find process with command of 'zma -m 4']
04/21/2008 13:38:49.501771 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:38:49.502226 zmdc[19001].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:38:49.506459 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:38:49, pid = 19092]
04/21/2008 13:38:49.869335 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:38:54.065834 zmdc[19001].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:38:54.069945 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:38:54, pid = 19108]
04/21/2008 13:38:54.406586 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:39:01.520562 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:39:01, pid = 19110]
04/21/2008 13:39:01.651214 zmdc[19001].INF ['zmc -d /dev/video0' stopping at 08/04/21 13:39:01]
04/21/2008 13:39:01.686629 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:39:17.284437 zmdc[19001].WAR [Can't find process with command of 'zmc -d /dev/video1']
04/21/2008 13:39:17.407862 zmdc[19001].WAR [Can't find process with command of 'zma -m 10']
04/21/2008 13:39:21.021815 zmdc[19001].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:39:21.025946 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:39:21, pid = 19155]
04/21/2008 13:39:21.367015 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:39:31.819244 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:39:31, pid = 19167]
04/21/2008 13:39:31.950256 zmdc[19001].INF ['zmc -d /dev/video0' stopping at 08/04/21 13:39:31]
04/21/2008 13:39:31.983821 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:40:51.081825 zmdc[19001].INF [Starting pending process, zmc -d /dev/video0]
04/21/2008 13:40:51.086022 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:40:51, pid = 19226]
04/21/2008 13:40:51.423287 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
04/21/2008 13:41:02.122596 zmdc[19001].INF ['zmc -d /dev/video0' starting at 08/04/21 13:41:02, pid = 19237]
04/21/2008 13:41:02.248679 zmdc[19001].INF ['zmc -d /dev/video0' stopping at 08/04/21 13:41:02]
04/21/2008 13:41:02.270032 zmdc[19001].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Any ideas?
the_crowbar
Posts: 22
Joined: Fri May 11, 2007 7:13 pm

Post by the_crowbar »

I turned debug logging level 5 on. In the log I noticed that I was trying to connect to input 4 on /dev/video0. When I changed that to input 3 it started working.

I have a new problem when I try to add monitors past 8 so I need to play with some settings and then post again if I can not figure it out.
Locked