Red square image for CCTV camera
Red square image for CCTV camera
A few months back I tried to get v1.22 working on my Ubuntu box with no luck. I have made a fresh install (of everything) and it seems to be working better but this time with no real image.
First my system:
Athlon XP 2400 cpu
1GB RAM
Ubuntu 8.04 server edition (Webmin installed and nothing else at the moment)
ZM 1.23.3 - set up using the http://www.howtoforge.com/video_surveil ... der_ubuntu instructions and tweaking them to get the latest version.
Hauppage PVR 150 with a video camera plugged into the video in socket.
Now I know that the Card / Camera work as I had it running on my desktop computer to test it using mplayer and the 'mplayer /dev/video0' command. (I have to set the correct channel first)
I have now plugged it all into my server and when I run ZM and add the monitor I select /dev/video0 but all I get is a square where the image should be with a very fine red grid on it. If I click the grid it opens a new window with a very fine green grid and the options to set the monitor levels etc. The text under source is Orange if that is any help? and green under Function.
I have tried all the different channels and PAL, AUTO etc but with no luck.
My previous problem when I last installed was that I could see nothing at all in the viewing window, just a small icon suggesting the image file was missing. So I think I am now getting somewhere but I am not sure what needs doing?
Obviously because I am using Ubuntu server, there is no GUI and I can't run mplayer or xawtv to check it still works!
Any help would be much appreciated!
First my system:
Athlon XP 2400 cpu
1GB RAM
Ubuntu 8.04 server edition (Webmin installed and nothing else at the moment)
ZM 1.23.3 - set up using the http://www.howtoforge.com/video_surveil ... der_ubuntu instructions and tweaking them to get the latest version.
Hauppage PVR 150 with a video camera plugged into the video in socket.
Now I know that the Card / Camera work as I had it running on my desktop computer to test it using mplayer and the 'mplayer /dev/video0' command. (I have to set the correct channel first)
I have now plugged it all into my server and when I run ZM and add the monitor I select /dev/video0 but all I get is a square where the image should be with a very fine red grid on it. If I click the grid it opens a new window with a very fine green grid and the options to set the monitor levels etc. The text under source is Orange if that is any help? and green under Function.
I have tried all the different channels and PAL, AUTO etc but with no luck.
My previous problem when I last installed was that I could see nothing at all in the viewing window, just a small icon suggesting the image file was missing. So I think I am now getting somewhere but I am not sure what needs doing?
Obviously because I am using Ubuntu server, there is no GUI and I can't run mplayer or xawtv to check it still works!
Any help would be much appreciated!
Ok, I have been doing some playing and messed around with the memory settings as per the wiki but still no luck. I have been looking at my logs and have noticed the following errors:
/var/log/syslog
/var/log/messages
/var/log/apache2/error.log
Being such a newbie I have no real idea what they all mean. I will do some more Googling and dig around the forums but if any one has some pointers?.....
/var/log/syslog
Code: Select all
Aug 1 16:29:42 ubuntuserver zmc_dvideo[4775]: ERR [Failed to open video device /dev/video: No such file or directory]
Aug 1 16:29:42 ubuntuserver zmdc[4628]: INF [Can't find child with pid of '4775']
Aug 1 16:29:42 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' starting at 08/08/01 16:29:42, pid = 4775]
Aug 1 16:29:42 ubuntuserver zmwatch[4656]: INF [Can't find child with pid of '4775']
Aug 1 16:29:52 ubuntuserver zmwatch[4656]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Aug 1 16:29:52 ubuntuserver zmwatch[4656]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 1 16:29:52 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' stopping at 08/08/01 16:29:52]
Aug 1 16:29:52 ubuntuserver zmwatch[4656]: INF ['zmc -d /dev/video' stopping at 08/08/01 16:29:52]
Aug 1 16:30:02 ubuntuserver zmwatch[4656]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Aug 1 16:30:02 ubuntuserver zmwatch[4656]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 1 16:30:02 ubuntuserver zmdc[4778]: INF ['zmc -d /dev/video' started at 08/08/01 16:30:02]
Aug 1 16:30:02 ubuntuserver zmc_dvideo[4778]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 16:30:02 ubuntuserver zmc_dvideo[4778]: ERR [Failed to open video device /dev/video: No such file or directory]
Aug 1 16:30:02 ubuntuserver zmdc[4628]: INF [Can't find child with pid of '4778']
Aug 1 16:30:02 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' starting at 08/08/01 16:30:02, pid = 4778]
Aug 1 16:30:02 ubuntuserver zmwatch[4656]: INF [Can't find child with pid of '4778']
Aug 1 16:30:12 ubuntuserver zmwatch[4656]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Aug 1 16:30:12 ubuntuserver zmwatch[4656]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 1 16:30:13 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' stopping at 08/08/01 16:30:13]
Aug 1 16:30:13 ubuntuserver zmwatch[4656]: INF ['zmc -d /dev/video' stopping at 08/08/01 16:30:13]
Code: Select all
Aug 1 16:32:47 ubuntuserver zmc_dvideo[4821]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 16:32:47 ubuntuserver zmdc[4628]: INF [Can't find child with pid of '4821']
Aug 1 16:32:47 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' starting at 08/08/01 16:32:47, pid = 4821]
Aug 1 16:32:47 ubuntuserver zmwatch[4656]: INF [Can't find child with pid of '4821']
Aug 1 16:32:57 ubuntuserver zmwatch[4656]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 1 16:32:58 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' stopping at 08/08/01 16:32:58]
Aug 1 16:32:58 ubuntuserver zmwatch[4656]: INF ['zmc -d /dev/video' stopping at 08/08/01 16:32:58]
Aug 1 16:33:08 ubuntuserver zmwatch[4656]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 1 16:33:08 ubuntuserver zmdc[4824]: INF ['zmc -d /dev/video' started at 08/08/01 16:33:08]
Aug 1 16:33:08 ubuntuserver zmc_dvideo[4824]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 16:33:08 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' starting at 08/08/01 16:33:08, pid = 4824]
Aug 1 16:33:08 ubuntuserver zmwatch[4656]: INF ['zmc -d /dev/video' starting at 08/08/01 16:33:08, pid = 4824]
Aug 1 16:33:08 ubuntuserver zmdc[4628]: INF [Starting pending process, zmc -d /dev/video]
Aug 1 16:33:08 ubuntuserver zmdc[4825]: INF ['zmc -d /dev/video' started at 08/08/01 16:33:08]
Aug 1 16:33:08 ubuntuserver zmc_dvideo[4825]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 16:33:08 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' starting at 08/08/01 16:33:08, pid = 4825]
Aug 1 16:33:13 ubuntuserver zmdc[4628]: INF [Starting pending process, zmc -d /dev/video]
Aug 1 16:33:13 ubuntuserver zmdc[4826]: INF ['zmc -d /dev/video' started at 08/08/01 16:33:13]
Aug 1 16:33:13 ubuntuserver zmc_dvideo[4826]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 16:33:13 ubuntuserver zmdc[4628]: INF ['zmc -d /dev/video' starting at 08/08/01 16:33:13, pid = 4826]
Code: Select all
[Fri Aug 01 16:11:17 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:11:29 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:11:33 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:11:42 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:11:48 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:11:59 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:13:56 2008] [notice] caught SIGWINCH, shutting down gracefully
[Fri Aug 01 16:15:23 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Fri Aug 01 16:23:23 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:27:01 2008] [error] [client 192.168.1.100] File does not exist: /var/www/imahes
[Fri Aug 01 16:27:01 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:27:05 2008] [error] [client 192.168.1.100] File does not exist: /var/www/images
[Fri Aug 01 16:27:17 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:27:20 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:27:25 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:28:40 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:29:05 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:29:15 2008] [error] [client 192.168.1.100] File does not exist: /var/www/10000
[Fri Aug 01 16:29:15 2008] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico
[Fri Aug 01 16:29:18 2008] [error] [client 192.168.1.100] File does not exist: /var/www/100000
Right, I think I am getting somewhere.
I have changed my source to video0 from the default video.
My /var/log/syslog says
If I run 'sudo zmc -d /dev/video' it seems to do something.
Have I somehow managed to mess up my permissions? I have chmod 666 /dev/video0 but still no change.
I have changed my source to video0 from the default video.
My /var/log/syslog says
If I run 'zmc -d /dev/video' from the command prompt I get 'Aborted'ug 1 18:06:32 ubuntuserver zmdc[4265]: WAR [Can't find process with command of 'zmc -d /dev/video0']
Aug 1 18:06:33 ubuntuserver zmdc[4265]: WAR [Can't find process with command of 'zma -m 2']
If I run 'sudo zmc -d /dev/video' it seems to do something.
Have I somehow managed to mess up my permissions? I have chmod 666 /dev/video0 but still no change.
Lee, thank you for your suggestion but I would rather not install a windows manager - it is a bit of a wate of space and resources on a server so I will only do it as a last resort.
Cordel,
This is some of my dmesg - is this the bit you were after?
Cordel,
This is some of my dmesg - is this the bit you were after?
I have to use sudo to chmod 777 /dev/video0 and if I do then sudo zmu -d /dev/video -q -v I get:[ 36.252768] ivtv0: Initializing card #0
[ 36.252782] ivtv0: Autodetected Hauppauge card (cx23416 based)
[ 36.315668] ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 21
[ 36.315699] ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
[ 36.493011] tveeprom 1-0050: Hauppauge model 26039, rev C155, serial# 7729284
[ 36.493022] tveeprom 1-0050: tuner model is Philips FQ1216ME MK3 (idx 55, type 38)
[ 36.493028] tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
[ 36.493033] tveeprom 1-0050: audio processor is CX25842 (idx 36)
[ 36.493037] tveeprom 1-0050: decoder processor is CX25842 (idx 29)
[ 36.493041] tveeprom 1-0050: has no radio, has IR receiver, has IR transmitter
[ 36.493047] ivtv0: Autodetected Hauppauge WinTV PVR-150
[ 36.493052] ivtv0: Reopen i2c bus for IR-blaster support
[ 37.298288] tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
[ 37.298341] tda9887 1-0043: tda988[5/6/7] found @ 0x43 (tuner)
[ 37.298346] tuner 1-0043: type set to tda9887
[ 37.333269] tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
[ 38.329504] NET: Registered protocol family 10
[ 38.329929] lo: Disabled Privacy Extensions
[ 38.383689] cx25840 1-0044: cx25842-23 found @ 0x88 (ivtv i2c driver #0)
[ 38.468248] wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
[ 38.477734] tuner-simple 1-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
[ 38.477743] tuner 1-0061: type set to Philips PAL/SECAM m
[ 38.478398] ivtv0: Registered device video0 for encoder MPG (4096 kB)
[ 38.478427] ivtv0: Registered device video32 for encoder YUV (2048 kB)
[ 38.478456] ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
[ 38.478484] ivtv0: Registered device video24 for encoder PCM (320 kB)
[ 38.478488] ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
[ 38.478527] ivtv: End initialization
[ 39.191353] eth0: Media Link On 100mbps full-duplex
[ 42.862040] loop: module loaded
[ 42.913257] lp0: using parport0 (interrupt-driven).
[ 43.043147] w83627hf: Found W83697HF chip at 0x290
[ 43.447663] Adding 979956k swap on /dev/sda2. Priority:-1 extents:1 across:979956k
[ 43.855800] EXT3 FS on sda1, internal journal
[ 45.179281] kjournald starting. Commit interval 5 seconds
[ 45.179572] EXT3 FS on sda3, internal journal
[ 45.179583] EXT3-fs: mounted filesystem with ordered data mode.
[ 45.230402] kjournald starting. Commit interval 5 seconds
[ 45.230677] EXT3 FS on sda4, internal journal
[ 45.230687] EXT3-fs: mounted filesystem with ordered data mode.
[ 46.346340] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 49.214747] eth0: no IPv6 routers present
[ 129.752620] ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
[ 129.951996] ivtv0: Encoder revision: 0x02060039
[ 133.650738] cx25840 1-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
Code: Select all
Video Capabilities
Name: Hauppauge WinTV PVR-150
Type: 7
Can capture
Can tune
Does teletext
Video Channels: 5
Audio Channels: 0
Maximum Width: 720
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 720
Height: 576
Picture Attributes
Palette: 0 - Unknown
Colour Depth: 0
Brightness: 32896
Hue: 32896
Colour :33026
Contrast: 33026
Whiteness: 0
Channel 0 Attributes
Name: Tuner 1
Channel: 0
Flags: 1
Channel has a tuner
Type: 1 - TV
Format: 0 - PAL
Channel 1 Attributes
Name: S-Video 1
Channel: 1
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: Composite 1
Channel: 2
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 3 Attributes
Name: S-Video 2
Channel: 3
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 4 Attributes
Name: Composite 2
Channel: 4
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Just noticed that if I run:
I get nothing...
Should these drivers be there?
From all my forum digging, I still feel that it is a permissions / user issue.
I have also tried a few more suggestions from other posts
it was root but I chmoded it to john but no difference.
Code: Select all
dmesg | grep bttv
Should these drivers be there?
From all my forum digging, I still feel that it is a permissions / user issue.
I have also tried a few more suggestions from other posts
Code: Select all
john@ubuntuserver:~$ ls /dev/vi* -lah
crw-rw-rw- 1 john video 81, 0 2008-08-03 06:58 /dev/video0
crw-rw-rw- 1 john video 81, 24 2008-08-03 06:58 /dev/video24
crw-rw-rw- 1 john video 81, 32 2008-08-03 06:58 /dev/video32
Code: Select all
john@ubuntuserver:~$ ps axo user,command | grep zm
www-data /usr/bin/perl -wT /usr/bin/zmdc.pl startup
www-data /usr/bin/perl -wT /usr/bin/zmfilter.pl
www-data /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
www-data /usr/bin/perl -wT /usr/bin/zmwatch.pl
www-data /usr/bin/perl -w /usr/bin/zmupdate.pl -c
john grep zm
Code: Select all
john@ubuntuserver:~$ ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status