Page 1 of 1

8 way bttv, linux, no images. memory not valid

Posted: Tue Jun 20, 2006 3:35 am
by stealth
I have this bttv 8 chan/8 chip card
http://www.jasonh.vispa.com/Card_Front.jpg
I bought it off ebay so I am not sure of the model name, except it uses bttv 102

So it works in tvtime! so bttv and the card is setup ..But i get just the broken image square in zm.. heres my logs:

First I tried with gentoo and just ACCEPT_KEYWORDS="~x86" emerge zoneminder
I am using ZM 1.22.0 here since that is what is in portage

Code: Select all

$ tail /tmp/zm*.log       
==> /tmp/zmaudit.log <==
06/19/06 21:47:45.646244 zmaudit[26612].DBG [Found database monitor '2']
06/19/06 21:47:45.646881 zmaudit[26612].DBG [Got 0 events]
06/19/06 22:25:22.298128 zmaudit[11124].DBG [Found database monitor '1']
06/19/06 22:25:22.306682 zmaudit[11124].DBG [Got 0 events]
06/19/06 22:25:22.306969 zmaudit[11124].DBG [Found database monitor '2']
06/19/06 22:25:22.307588 zmaudit[11124].DBG [Got 0 events]
06/19/06 22:40:22.383989 zmaudit[11124].DBG [Found database monitor '1']
06/19/06 22:40:22.385269 zmaudit[11124].DBG [Got 0 events]
06/19/06 22:40:22.385550 zmaudit[11124].DBG [Found database monitor '2']
06/19/06 22:40:22.397339 zmaudit[11124].DBG [Got 0 events]

==> /tmp/zmdc.log <==
06/19/06 22:45:54.571763 zmdc[11086].ERR ['zmc -d /dev/video1' crashed, exit sta
tus 255]
06/19/06 22:45:54.934967 zmdc[12759].INF ['zmc -d /dev/video0' started at 06/06/
19 22:45:54]
06/19/06 22:45:54.942356 zmdc[11086].INF ['zmc -d /dev/video0' starting at 06/06
/19 22:45:54, pid = 12759]
06/19/06 22:45:54.987759 zmdc[11086].ERR ['zmc -d /dev/video0' crashed, exit sta
tus 255]
06/19/06 22:46:01.086389 zmdc[11086].INF [Starting pending process, zmupdate.pl 
-c]
06/19/06 22:46:01.089747 zmdc[12761].INF ['zmupdate.pl -c' started at 06/06/19 2
2:46:01]
06/19/06 22:46:01.090837 zmdc[11086].INF ['zmupdate.pl -c' starting at 06/06/19 
22:46:01, pid = 12761]
Bareword "ZM_PATH_BUILD" not allowed while "strict subs" in use at /usr/bin/zmup
date.pl line 311.
BEGIN not safe after errors--compilation aborted at /usr/bin/zmupdate.pl line 51
3.
06/19/06 22:46:01.607126 zmdc[11086].ERR ['zmupdate.pl -c' crashed, exit status 
9]

==> /tmp/zmfilter.log <==
06/18/06 12:30:37.237981 zmfilter[9374].INF [Scanning for events]
06/18/06 12:43:38.226188 zmfilter[11067].INF [Scanning for events]
06/19/06 20:18:48.119006 zmfilter[20621].INF [Scanning for events]
06/19/06 20:40:33.311003 zmfilter[21658].INF [Scanning for events]
06/19/06 21:32:44.986207 zmfilter[26607].INF [Scanning for events]
06/19/06 22:25:21.867259 zmfilter[11119].INF [Scanning for events]

==> /tmp/zmpkg.log <==
06/19/06 20:18:42.687636 zmpkg[20579].INF [Command: start]
06/19/06 20:36:46.143869 zmpkg[21398].INF [Command: stop]
06/19/06 20:40:27.498047 zmpkg[21612].INF [Command: start]
06/19/06 21:32:20.412358 zmpkg[26520].INF [Command: stop]
06/19/06 21:32:39.014107 zmpkg[26562].INF [Command: start]
06/19/06 22:15:59.210985 zmpkg[9536].INF [Command: start]
06/19/06 22:15:59.515457 zmpkg[9536].ERR [Unable to find valid 'su' syntax]
06/19/06 22:23:18.115296 zmpkg[9589].INF [Command: start]
06/19/06 22:23:18.436651 zmpkg[9589].ERR [Unable to find valid 'su' syntax]
06/19/06 22:25:15.671046 zmpkg[11074].INF [Command: start]

==> /tmp/zmwatch.log <==
06/19/06 22:45:33.243525 zmwatch[11129].INF ['zmc -d /dev/video0' started at 06/
06/19 22:45:33] at /usr/bin/zmwatch.pl line 118
06/19/06 22:45:43.250753 zmwatch[11129].INF [Restarting capture daemon for Drive
way, shared memory not valid]
06/19/06 22:45:43.673169 zmwatch[11129].INF ['zmc -d /dev/video1' started at 06/
06/19 22:45:43] at /usr/bin/zmwatch.pl line 118
06/19/06 22:45:43.675632 zmwatch[11129].INF [Restarting capture daemon for video
0, shared memory not valid]
06/19/06 22:45:44.150170 zmwatch[11129].INF ['zmc -d /dev/video0' started at 06/
06/19 22:45:44] at /usr/bin/zmwatch.pl line 118
06/19/06 22:45:54.155615 zmwatch[11129].INF [Restarting capture daemon for Drive
way, shared memory not valid]
06/19/06 22:45:54.580313 zmwatch[11129].INF ['zmc -d /dev/video1' starting at 06
/06/19 22:45:54, pid = 12755] at /usr/bin/zmwatch.pl line 118
06/19/06 22:45:54.582832 zmwatch[11129].INF [Restarting capture daemon for video
0, shared memory not valid]
06/19/06 22:45:54.996271 zmwatch[11129].INF ['zmc -d /dev/video0' started at 06/
06/19 22:45:54] at /usr/bin/zmwatch.pl line 118
06/19/06 22:46:05.000329 zmwatch[11129].INF [Restarting capture daemon for Drive
way, shared memory not valid]

now i tried to get 1.22.2 from source and do it myself

Code: Select all

~/ZoneMinder-1.22.2/
./configure --with-webdir=/var/www/localhost/htdocs/zoneminder/ --with-cgidir=/var/www/localhost/cgi-bin/ --with-webuser=apache --with-webdir=/var/www/localhost/htdocs/ --with-webgroup=apache --with-ffmpeg=/usr/local/ --with-mysql  --with-extralibs

make.. make install

logs from manual 1.22.2 install:

Code: Select all


$ tail /tmp/zm*.log       
==> /tmp/zmaudit.log <==
06/19/06 22:55:22.464423 zmaudit[11124].DBG [Found database monitor '2']
06/19/06 22:55:22.465016 zmaudit[11124].DBG [Got 0 events]
06/19/06 23:10:22.470332 zmaudit[11124].DBG [Found database monitor '1']
06/19/06 23:10:22.471092 zmaudit[11124].DBG [Got 0 events]
06/19/06 23:10:22.471338 zmaudit[11124].DBG [Found database monitor '2']
06/19/06 23:10:22.471931 zmaudit[11124].DBG [Got 0 events]
06/19/06 23:25:22.478660 zmaudit[11124].DBG [Found database monitor '1']
06/19/06 23:25:22.479594 zmaudit[11124].DBG [Got 0 events]
06/19/06 23:25:22.479847 zmaudit[11124].DBG [Found database monitor '2']
06/19/06 23:25:22.480439 zmaudit[11124].DBG [Got 0 events]

==> /tmp/zmdc.log <==
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8.8/ZoneMin
Debug.pm line 283.
Use of uninitialized value in sprintf at /usr/lib/perl5/5.8.8/i686-linux/Sys/Sy
.pm line 680.
Can't exec "/usr/bin/zmdc.pl": No such file or directory at /usr/bin/zmwatch.pl
e 118.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5
/ZoneMinder/Debug.pm line 278.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8.8/ZoneMin
Debug.pm line 283.
Use of uninitialized value in sprintf at /usr/lib/perl5/5.8.8/i686-linux/Sys/Sy
.pm line 680.
Can't exec "/usr/bin/zmdc.pl": No such file or directory at /usr/bin/zmwatch.pl
e 118.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5
/ZoneMinder/Debug.pm line 278.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8.8/ZoneMin
Debug.pm line 283.
Use of uninitialized value in sprintf at /usr/lib/perl5/5.8.8/i686-linux/Sys/Sy
.pm line 680.

==> /tmp/zmfilter.log <==
06/18/06 12:30:37.237981 zmfilter[9374].INF [Scanning for events]
06/18/06 12:43:38.226188 zmfilter[11067].INF [Scanning for events]
06/19/06 20:18:48.119006 zmfilter[20621].INF [Scanning for events]
06/19/06 20:40:33.311003 zmfilter[21658].INF [Scanning for events]
06/19/06 21:32:44.986207 zmfilter[26607].INF [Scanning for events]
06/19/06 22:25:21.867259 zmfilter[11119].INF [Scanning for events]

==> /tmp/zmpkg.log <==
06/19/06 20:18:42.687636 zmpkg[20579].INF [Command: start]
06/19/06 20:36:46.143869 zmpkg[21398].INF [Command: stop]
06/19/06 20:40:27.498047 zmpkg[21612].INF [Command: start]
06/19/06 21:32:20.412358 zmpkg[26520].INF [Command: stop]
06/19/06 21:32:39.014107 zmpkg[26562].INF [Command: start]
06/19/06 22:15:59.210985 zmpkg[9536].INF [Command: start]
06/19/06 22:15:59.515457 zmpkg[9536].ERR [Unable to find valid 'su' syntax]
06/19/06 22:23:18.115296 zmpkg[9589].INF [Command: start]
06/19/06 22:23:18.436651 zmpkg[9589].ERR [Unable to find valid 'su' syntax]
06/19/06 22:25:15.671046 zmpkg[11074].INF [Command: start]

==> /tmp/zmwatch.log <==
06/19/06 23:28:21.040613 zmwatch[11129].INF [Restarting capture daemon for vide
shared memory not valid]
06/19/06 23:28:21.043320 zmwatch[11129].INF []
06/19/06 23:28:31.047512 zmwatch[11129].INF [Restarting capture daemon for Driv
, shared memory not valid]
06/19/06 23:28:31.050296 zmwatch[11129].INF []
06/19/06 23:28:31.051982 zmwatch[11129].INF [Restarting capture daemon for vide
shared memory not valid]
06/19/06 23:28:31.055553 zmwatch[11129].INF []
06/19/06 23:28:41.059932 zmwatch[11129].INF [Restarting capture daemon for Driv
, shared memory not valid]
06/19/06 23:28:41.063605 zmwatch[11129].INF []
06/19/06 23:28:41.064945 zmwatch[11129].INF [Restarting capture daemon for vide
shared memory not valid]
06/19/06 23:28:41.068329 zmwatch[11129].INF []
I am using kernel 2.6.16.19 on a pentium III 1ghz with 512mb pc133 ram,

the memory errors are interesting .. I believe i has SHM enabled..

Code: Select all

$ cat /proc/sys/kernel/shmall
2097152

$ cat /proc/sys/kernel/shmmax 
33554432

For the manual install I had to cp -a web/* /var/ww/localhost/htdocs/zoneminder/, and also edit the mysql_pconnect line to the mysql user/pass since zm dosent seemt to read /etc/zm.conf anymore.. but of course.. no steaming/stills from the cam in zm :([/code]

thanks

Posted: Tue Jun 20, 2006 7:43 am
by cordel
Might I suggest either using Fedora or Mandriva till you get used to linux or see if you might be able to find a howto for Debian to build from source. I see alot of things you have miss configured and to go through them would put me just short of making a howto.
I have never worked with portages either so would be no help there.
There are two custom distros you could use both available via the downloads page, The liveCD based on Mandriva and one on FC3 and soon to be one based on FC5 that will get you going right strait.

Regards,
Corey