/dev/video0 works /dev/video1 doesn't
/dev/video0 works /dev/video1 doesn't
Hello, I wonder if anyone has seen this before? I am running zone minder on FC4 with a KMC-8800 capture card. The capture card has 8 bt878 chips on it and appears as 8 separate devices /dev/video0 through to /dev/video7.
I have tried two 'Monitors' in Zone Minder and only the one on /dev/video0 ever works the other always remains red. Running 'xawtv -device /dev/video?' on the ZM machine all video inputs work fine.
Is there anything I have missed with ZM or need to do? Apart from the other channels not working ZM is running the one input like a dream
Thanks
Pete
I have tried two 'Monitors' in Zone Minder and only the one on /dev/video0 ever works the other always remains red. Running 'xawtv -device /dev/video?' on the ZM machine all video inputs work fine.
Is there anything I have missed with ZM or need to do? Apart from the other channels not working ZM is running the one input like a dream
Thanks
Pete
Each electronic component is made with a small amount of smoke inside - the art is not to let it out...
Video problems
First we will need to know much more about your setup and settings to enable us to help you.
Please run the following comands and post the results:
dmesg |grep bttv
zmu -d /dev/video0 -q -v
cat /etc/modprobe.conf
Regards,
Corey
Please run the following comands and post the results:
dmesg |grep bttv
zmu -d /dev/video0 -q -v
cat /etc/modprobe.conf
Regards,
Corey
3939663646337
It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I looked at the permissions on the device files and they looked OK. I just restarted ZM and there were a load of errors with - for the first few lines and continues for another 37Kb of text.
My dmesg | grep bttv is
zmu -d /dev/video0 -q -v is
and cat /etc/modprobe.conf is
Thanks again for your help
Regards
Pete
Code: Select all
*** glibc detected *** /usr/local/bin/zmc: malloc(): memory corruption: 0x0e7a9430 ***
======= Backtrace: =========
/lib/libc.so.6[0x46b0cb]
/lib/libc.so.6(malloc+0x69)[0x46c555]
/usr/lib/libstdc++.so.6(_Znwj+0x26)[0x72abf6]
/usr/lib/libstdc++.so.6(_Znaj+0x1d)[0x72ad0d]
/usr/local/bin/zmc[0x804df46]
/usr/local/bin/zmc[0x8056e4c]
/usr/local/bin/zmc[0x80575c1]
/usr/local/bin/zmc[0x80648a7]
/usr/local/bin/zmc[0x804ba0b]
/lib/libc.so.6(__libc_start_main+0xb3)[0x41fdfb]
/usr/local/bin/zmc(__gxx_personality_v0+0xd1)[0x804b151]
My dmesg | grep bttv is
Code: Select all
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:02:08.0, irq: 10, latency: 32, mmio: 0xdb000000
bttv0: using: IVC-200 [card=102,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=-1
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 17) at 0000:02:09.0, irq: 5, latency: 32, mmio: 0xdb002000
bttv1: using: IVC-200 [card=102,insmod option]
bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv1: using tuner=-1
bttv1: i2c: checking for MSP34xx @ 0x80... not found
bttv1: i2c: checking for TDA9875 @ 0xb0... not found
bttv1: i2c: checking for TDA7432 @ 0x8a... not found
bttv1: i2c: checking for TDA9887 @ 0x86... not found
bttv1: registered device video1
bttv1: registered device vbi1
bttv1: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (2).
bttv2: Bt878 (rev 17) at 0000:02:0a.0, irq: 12, latency: 32, mmio: 0xdb004000
bttv2: using: IVC-200 [card=102,insmod option]
bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv2: using tuner=-1
bttv2: i2c: checking for MSP34xx @ 0x80... not found
bttv2: i2c: checking for TDA9875 @ 0xb0... not found
bttv2: i2c: checking for TDA7432 @ 0x8a... not found
bttv2: i2c: checking for TDA9887 @ 0x86... not found
bttv2: registered device video2
bttv2: registered device vbi2
bttv2: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (3).
bttv3: Bt878 (rev 17) at 0000:02:0b.0, irq: 11, latency: 32, mmio: 0xdb006000
bttv3: using: IVC-200 [card=102,insmod option]
bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv3: using tuner=-1
bttv3: i2c: checking for MSP34xx @ 0x80... not found
bttv3: i2c: checking for TDA9875 @ 0xb0... not found
bttv3: i2c: checking for TDA7432 @ 0x8a... not found
bttv3: i2c: checking for TDA9887 @ 0x86... not found
bttv3: registered device video3
bttv3: registered device vbi3
bttv3: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (4).
bttv4: Bt878 (rev 17) at 0000:02:0c.0, irq: 10, latency: 32, mmio: 0xdb008000
bttv4: using: IVC-200 [card=102,insmod option]
bttv4: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv4: using tuner=-1
bttv4: i2c: checking for MSP34xx @ 0x80... not found
bttv4: i2c: checking for TDA9875 @ 0xb0... not found
bttv4: i2c: checking for TDA7432 @ 0x8a... not found
bttv4: i2c: checking for TDA9887 @ 0x86... not found
bttv4: registered device video4
bttv4: registered device vbi4
bttv4: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (5).
bttv5: Bt878 (rev 17) at 0000:02:0d.0, irq: 5, latency: 32, mmio: 0xdb00a000
bttv5: using: IVC-200 [card=102,insmod option]
bttv5: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv5: using tuner=-1
bttv5: i2c: checking for MSP34xx @ 0x80... not found
bttv5: i2c: checking for TDA9875 @ 0xb0... not found
bttv5: i2c: checking for TDA7432 @ 0x8a... not found
bttv5: i2c: checking for TDA9887 @ 0x86... not found
bttv5: registered device video5
bttv5: registered device vbi5
bttv5: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (6).
bttv6: Bt878 (rev 17) at 0000:02:0e.0, irq: 12, latency: 32, mmio: 0xdb00c000
bttv6: using: IVC-200 [card=102,insmod option]
bttv6: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv6: using tuner=-1
bttv6: i2c: checking for MSP34xx @ 0x80... not found
bttv6: i2c: checking for TDA9875 @ 0xb0... not found
bttv6: i2c: checking for TDA7432 @ 0x8a... not found
bttv6: i2c: checking for TDA9887 @ 0x86... not found
bttv6: registered device video6
bttv6: registered device vbi6
bttv6: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (7).
bttv7: Bt878 (rev 17) at 0000:02:0f.0, irq: 11, latency: 32, mmio: 0xdb00e000
bttv7: using: IVC-200 [card=102,insmod option]
bttv7: gpio: en=00000000, out=00000000 in=00fffff1 [init]
bttv7: using tuner=-1
bttv7: i2c: checking for MSP34xx @ 0x80... not found
bttv7: i2c: checking for TDA9875 @ 0xb0... not found
bttv7: i2c: checking for TDA7432 @ 0x8a... not found
bttv7: i2c: checking for TDA9887 @ 0x86... not found
bttv7: registered device video7
bttv7: registered device vbi7
bttv7: PLL: 28636363 => 35468950 .. ok
Code: Select all
Video Capabilities
Name: BT878 video (IVC-200)
Type: 171
Can capture
Can tune
Overlay onto frame buffer
Can clip
Scalable
Video Channels: 1
Audio Channels: 0
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 384
Height: 288
Picture Attributes
Palette: 5 - 32bit RGB
Colour Depth: 32
Brightness: 40000
Hue: 32768
Colour :32768
Contrast: 40000
Whiteness: 0
Channel 0 Attributes
Name: Composite0
Channel: 0
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL
Code: Select all
alias eth0 via-rhine
alias snd-card-0 snd-via82xx
options snd-card-0 index=0
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-via82xx { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-via82xx
alias usb-controller uhci-hcd
options bttv card=102,102,102,102,102,102,102,102
alias char-major-81 bttv
Regards
Pete
Each electronic component is made with a small amount of smoke inside - the art is not to let it out...
Hi Pete,
The card type you have selected is incorrect. I'm not sure though of the correct settings for that paticular card as I do not have one of those yet. I do have the one below it (Kodicom 4400r) and you have to set the second chip as the controler (looks like card=133,132,133,133) so I imagine that this card would be not much different.
It's also possible that there is no card type set in the current kernels provided by many distros. The current unstable kernel 2.6.13 has had alot added to it and when it releases as 2.6.14 you will see the various distro pick it up.
I know I have seen some discusions here on the board regarding that card so you might want to check those out.
I'll try to do some research and see what I can find out in the mean time.
Regards,
Corey
The card type you have selected is incorrect. I'm not sure though of the correct settings for that paticular card as I do not have one of those yet. I do have the one below it (Kodicom 4400r) and you have to set the second chip as the controler (looks like card=133,132,133,133) so I imagine that this card would be not much different.
It's also possible that there is no card type set in the current kernels provided by many distros. The current unstable kernel 2.6.13 has had alot added to it and when it releases as 2.6.14 you will see the various distro pick it up.
I know I have seen some discusions here on the board regarding that card so you might want to check those out.
I'll try to do some research and see what I can find out in the mean time.
Regards,
Corey
I sent a query to the v4l forum becasue the card was not being detected correctly and it was suggested that I used the card=102,102,102,102,102,102,102,102 after that xawtv worked fine on all channels. If you look at the w4l wiki http://linuxtv.org/v4lwiki/index.php/Kodicom_4400R it says that the KMC-4400R is very different to the KMC-8800 and the drivers can not be used.
Am I not right in thinking that if xawtv can pick up all the channels correctly then ZM should?
Regards
Pete
Am I not right in thinking that if xawtv can pick up all the channels correctly then ZM should?
Regards
Pete
Each electronic component is made with a small amount of smoke inside - the art is not to let it out...
If you can get xawtv to work then yes ZM should be able to work as well.
There is a way to query xawtv to see what the inputs are but it's been a long time since i used it and do not remember the proper syntax. I no longer have anything with xawtv installed either but you should be able to find something in xawtv docs. It's something like:
xawtv -hwscan
I would think that it should stick with /dev/video0 (0), /dev/video1 (0),
/dev/video2 (0), etc...
Regards,
Corey
There is a way to query xawtv to see what the inputs are but it's been a long time since i used it and do not remember the proper syntax. I no longer have anything with xawtv installed either but you should be able to find something in xawtv docs. It's something like:
xawtv -hwscan
I would think that it should stick with /dev/video0 (0), /dev/video1 (0),
/dev/video2 (0), etc...
Regards,
Corey
It is xawtv -hwscan and the output is
Seems like xawtv thinks there are only four devices. That's not a problem at this stage as I only have three cameras that I want to monitor with ZM.
I've just noticed that every now and then (it seems to be random) I get some debug information in the console window that I restarted ZM in. It says the same thing that I posted below that there is a memory corruption which I think is being flagged/caused by a function in glibc from zmc.
Incidentally if I just try video1 or video2 on their own in ZM it still doesn't work. It seems that ZM is only working with the base video0. Is how I am doing the multiple channels the normal way? Is there a scan function in ZM that will tell me what ZoneMinder thinks is available?
Regards
Pete
Code: Select all
[root@betelgeuse pete]# xawtv -hwscan
This is xawtv-3.95, running on Linux/i686 (2.6.11-1.1369_FC4)
looking for available devices
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture
/dev/video1: OK [ -device /dev/video1 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture
/dev/video2: OK [ -device /dev/video2 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture
/dev/video3: OK [ -device /dev/video3 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture
I've just noticed that every now and then (it seems to be random) I get some debug information in the console window that I restarted ZM in. It says the same thing that I posted below that there is a memory corruption which I think is being flagged/caused by a function in glibc from zmc.
Incidentally if I just try video1 or video2 on their own in ZM it still doesn't work. It seems that ZM is only working with the base video0. Is how I am doing the multiple channels the normal way? Is there a scan function in ZM that will tell me what ZoneMinder thinks is available?
Regards
Pete
Each electronic component is made with a small amount of smoke inside - the art is not to let it out...
That error you posted is most likely the result of not completing all the basic fields when creating a monitor. Someone and my self had noted this earlier in another post and you should delete those monitors and recreate them. Make sure you fill out all the information under the source tab when you create any monitors. The next version will do a sanity check and error out if it's not right, but for now you just have to make sure it's all there the first time.
Try that and see if it clears it all up or just stops those errors.
Corey
Try that and see if it clears it all up or just stops those errors.
Corey
Just tried deleting the monitor several times (you just mark it with a tick in the box and click DELETE?) and this is the result from the httpd error log
I'm logged on as admin and I think it has enough permissions as zm did the adding of the user. I've just looked in the mysql database for zm and admin has Edit privileges for Events, Control, Monitors and System so should be OK?
Regards
Pete[/code]
I don't think it helps as there are no errors reported for the delete monitor action.[Sun Jan 29 04:02:44 2006] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 29 04:02:44 2006] [notice] Digest: done
[Sun Jan 29 04:02:44 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Jan 29 04:02:44 2006] [notice] LDAP: SSL support unavailable
[Sun Jan 29 04:02:45 2006] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Sun Jan 29 04:02:49 2006] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations
[Sun Jan 29 08:00:23 2006] [error] [client 192.168.0.63] File does not exist: /var/www/html/favicon.ico
[Sun Jan 29 08:00:25 2006] [error] [client 192.168.0.63] File does not exist: /var/www/html/favicon.ico
[Sun Jan 29 08:04:33 2006] [notice] caught SIGTERM, shutting down
[Sun Jan 29 08:07:50 2006] [notice] core dump file size limit raised to 4294967295 bytes
[Sun Jan 29 08:07:51 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jan 29 08:07:54 2006] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 29 08:07:54 2006] [notice] Digest: done
[Sun Jan 29 08:07:54 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Jan 29 08:07:54 2006] [notice] LDAP: SSL support unavailable
[Sun Jan 29 08:07:55 2006] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Sun Jan 29 08:07:57 2006] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations
[Mon Jan 30 21:43:53 2006] [error] [client 192.168.0.63] File does not exist: /var/www/html/favicon.ico
[Mon Jan 30 21:43:55 2006] [error] [client 192.168.0.63] File does not exist: /var/www/html/favicon.ico
[Mon Jan 30 21:54:09 2006] [error] (70007)The timeout specified has expired: core_output_filter: Error reading from bucket.
[Tue Jan 31 21:41:12 2006] [error] [client 192.168.0.63] File does not exist: /var/www/html/favicon.ico
[Tue Jan 31 21:41:14 2006] [error] [client 192.168.0.63] File does not exist: /var/www/html/favicon.ico
I'm logged on as admin and I think it has enough permissions as zm did the adding of the user. I've just looked in the mysql database for zm and admin has Edit privileges for Events, Control, Monitors and System so should be OK?
Regards
Pete[/code]
Each electronic component is made with a small amount of smoke inside - the art is not to let it out...
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
This is a genuine bug in 1.22.0! You can either apply the patch that someone else posted for this problem, or just go into the database and do awyrmberg wrote:I have tried to delete the monitor but it wont go. Can I go in to mysql database and do it from there or will that really mess things up?
Code: Select all
delete from Monitors where Id = x
Phil
To to make sure we are on the same page so bare with me. I have a query that you could use but you would not want to post the results.
The are several user bases used,
#There is the one though PAM that you use to log into your machine (root for example) which I'm sure we are not talking about.
#There are the database users that can have various permissions set (the default admin for this is also root, but is not really tied to the PAM root user). This is the one I'm concerned about.
You should have created a user like so:
mysql mysql
grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
#Then there is the users within ZM that are in a database that can have permissions set that control only what happens in the web pages (Of course the default admin is admin).
The other possibility is the newer version of PHP. Although I don't recall having an issue when I was using FC4 to sort out some scripts, I also didn't do a whole lot with the web pages. I think Phil already worked out the things for PHP5 in 1.22.0 but in previous versions you would need to set the zend engine to work with zend 1 code.
Corey
The are several user bases used,
#There is the one though PAM that you use to log into your machine (root for example) which I'm sure we are not talking about.
#There are the database users that can have various permissions set (the default admin for this is also root, but is not really tied to the PAM root user). This is the one I'm concerned about.
You should have created a user like so:
mysql mysql
grant select,insert,update,delete on <database name>.* to '<database user>'@localhost identified by '<database password>';
quit
mysqladmin reload
#Then there is the users within ZM that are in a database that can have permissions set that control only what happens in the web pages (Of course the default admin is admin).
The other possibility is the newer version of PHP. Although I don't recall having an issue when I was using FC4 to sort out some scripts, I also didn't do a whole lot with the web pages. I think Phil already worked out the things for PHP5 in 1.22.0 but in previous versions you would need to set the zend engine to work with zend 1 code.
Corey
Yes that worked! I went in to mysql and deleted that monitor and created it again and it came up fine in ZM.
That is really fantastic, thanks to all your help.
If I can be of any help at any time please let me know.
Thanks again
Pete
That is really fantastic, thanks to all your help.
If I can be of any help at any time please let me know.
Thanks again
Pete
Each electronic component is made with a small amount of smoke inside - the art is not to let it out...