Problem with bttv driver in Ubuntu?
Posted: Fri Apr 10, 2009 12:34 am
G'day all from Ozzieland.
I've just been rebuilding a ZoneMinder machine - Used the Ubuntu build DVD to install 8.10 and apt-get to install all the bits to make ZM work. So far, that's not been the issue.... I think...
I'm getting a strange error though. I can see the bttv card when I ls the device its supposed to be registered at. No problem there. I can also see the video output from the card when I use VLC, by pointing it to the device - I get a camera image and all is "good" with the hardware... I think....
However, in ZM, if I configure the cameras and monitors - pointing to /dev/video0 - I get NOTHING... Nada, zip, ziltch... Just a black box where the test image of my naked PC should be.
The logs are as follows...
fordcp@zone-minder:~$ ls -l /dev/video0
crw-rw----+ 1 root video 81, 0 2009-04-09 16:27 /dev/video0
fordcp@zone-minder:~$ tail /var/log/syslog
Apr 9 17:17:27 zone-minder zmwatch[5223]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
Apr 9 17:17:27 zone-minder zmwatch[5223]: INF [Restarting capture daemon for Camera-4, shared memory not valid]
Apr 9 17:17:27 zone-minder zmdc[5175]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Apr 9 17:17:27 zone-minder zmdc[8857]: INF ['zmc -d /dev/video0' started at 09/04/09 17:17:27]
Apr 9 17:17:27 zone-minder zmc_dvideo0[8857]: INF [Debug Level = 0, Debug Log = <none>]
Apr 9 17:17:27 zone-minder zmc_dvideo0[8857]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.08857]
Apr 9 17:17:27 zone-minder zmc_dvideo0[8857]: ERR [Failed to open video device /dev/video0: Permission denied]
Apr 9 17:17:27 zone-minder zmdc[5175]: INF ['zmc -d /dev/video0' starting at 09/04/09 17:17:27, pid = 8857]
Apr 9 17:17:27 zone-minder zmwatch[5223]: INF ['zmc -d /dev/video0' starting at 09/04/09 17:17:27, pid = 8857]
Apr 9 17:17:27 zone-minder zmdc[5175]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
fordcp@zone-minder:~$ more /tmp/zm_debug.log.09762
04/09/09 17:31:52.942742 zmc_dvideo0[9762].INF-zm_debug.c/305 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.09762]
04/09/09 17:31:52.943329 zmc_dvideo0[9762].DB1-zm_monitor.cpp/1579 [Got 4 monitors]
04/09/09 17:31:52.943443 zmc_dvideo0[9762].ERR-zm_local_camera.cpp/80 [Failed to open video device /dev/video0: Permission denied]
also - I've tried changing the driver permissions - Still the same output.
if I run zmfix - I get the following...
root@zone-minder:/home/fordcp# zmu -d /dev/video0 -q -v
Video Capabilities
Name: BT878 video ( *** UNKNOWN/GENER
Type: 47
Can capture
Can tune
Does teletext
Overlay onto frame buffer
Can clip
Video Channels: 4
Audio Channels: 0
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 10 - YUV420
Colour Depth: 8
Brightness: 30000
Hue: 30000
Colour :30000
Contrast: 30000
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 1
Channel has a tuner
Type: 1 - TV
Format: 0 - PAL
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: S-Video
Channel: 2
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 3 Attributes
Name: Composite3
Channel: 3
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
The whole thing involves permissions or a driver SNAFU? Anyone got a lead on this or have seen it before - so as to put me straight?
If you can - Thanks a Bazillion in advance.
I've just been rebuilding a ZoneMinder machine - Used the Ubuntu build DVD to install 8.10 and apt-get to install all the bits to make ZM work. So far, that's not been the issue.... I think...
I'm getting a strange error though. I can see the bttv card when I ls the device its supposed to be registered at. No problem there. I can also see the video output from the card when I use VLC, by pointing it to the device - I get a camera image and all is "good" with the hardware... I think....
However, in ZM, if I configure the cameras and monitors - pointing to /dev/video0 - I get NOTHING... Nada, zip, ziltch... Just a black box where the test image of my naked PC should be.
The logs are as follows...
fordcp@zone-minder:~$ ls -l /dev/video0
crw-rw----+ 1 root video 81, 0 2009-04-09 16:27 /dev/video0
fordcp@zone-minder:~$ tail /var/log/syslog
Apr 9 17:17:27 zone-minder zmwatch[5223]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
Apr 9 17:17:27 zone-minder zmwatch[5223]: INF [Restarting capture daemon for Camera-4, shared memory not valid]
Apr 9 17:17:27 zone-minder zmdc[5175]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Apr 9 17:17:27 zone-minder zmdc[8857]: INF ['zmc -d /dev/video0' started at 09/04/09 17:17:27]
Apr 9 17:17:27 zone-minder zmc_dvideo0[8857]: INF [Debug Level = 0, Debug Log = <none>]
Apr 9 17:17:27 zone-minder zmc_dvideo0[8857]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.08857]
Apr 9 17:17:27 zone-minder zmc_dvideo0[8857]: ERR [Failed to open video device /dev/video0: Permission denied]
Apr 9 17:17:27 zone-minder zmdc[5175]: INF ['zmc -d /dev/video0' starting at 09/04/09 17:17:27, pid = 8857]
Apr 9 17:17:27 zone-minder zmwatch[5223]: INF ['zmc -d /dev/video0' starting at 09/04/09 17:17:27, pid = 8857]
Apr 9 17:17:27 zone-minder zmdc[5175]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
fordcp@zone-minder:~$ more /tmp/zm_debug.log.09762
04/09/09 17:31:52.942742 zmc_dvideo0[9762].INF-zm_debug.c/305 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.09762]
04/09/09 17:31:52.943329 zmc_dvideo0[9762].DB1-zm_monitor.cpp/1579 [Got 4 monitors]
04/09/09 17:31:52.943443 zmc_dvideo0[9762].ERR-zm_local_camera.cpp/80 [Failed to open video device /dev/video0: Permission denied]
also - I've tried changing the driver permissions - Still the same output.
if I run zmfix - I get the following...
root@zone-minder:/home/fordcp# zmu -d /dev/video0 -q -v
Video Capabilities
Name: BT878 video ( *** UNKNOWN/GENER
Type: 47
Can capture
Can tune
Does teletext
Overlay onto frame buffer
Can clip
Video Channels: 4
Audio Channels: 0
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 10 - YUV420
Colour Depth: 8
Brightness: 30000
Hue: 30000
Colour :30000
Contrast: 30000
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 1
Channel has a tuner
Type: 1 - TV
Format: 0 - PAL
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: S-Video
Channel: 2
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 3 Attributes
Name: Composite3
Channel: 3
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
The whole thing involves permissions or a driver SNAFU? Anyone got a lead on this or have seen it before - so as to put me straight?
If you can - Thanks a Bazillion in advance.