Palette: 5 - 32bit RGB *SOLVED*
Posted: Sun Feb 01, 2009 1:46 am
So I have successfully tested an old Hauppauge WinTV card I had laying around in xawtv using the composite input. This said, I wanted to get a camera set up on it but it seems I am having difficulties getting zoneminder to use the correct color palette. For every palette at 320x240, I only get a black box with 0 (zero) fps.
When looking at the output of zmu it shows a 32bit RGB palette, which doesn't seem to be an option for ZoneMinder.
I attempted to manually change the value in the DB for the pallet to "5" but no joy.
This is the current settings for the device.
Does anyone know if there something I can do to wrap the video device, or create a loopback device with a userspace daemon to resample the video in a palette usable by zoneminder?
UPDATE:
This is a v4l2 issue which appears to have been addressed in the 1.24.0 rc-1 2737 version. I apologise for not checking the code for this before making my post -- but hopefully this information will be helpful to someone else as well. =)
When looking at the output of zmu it shows a 32bit RGB palette, which doesn't seem to be an option for ZoneMinder.
Code: Select all
zmu -q -v -d /dev/video0
Video Capabilities
Name: BT878 video (Hauppauge (bt878))
Type: 47
Can capture
Can tune
Does teletext
Overlay onto frame buffer
Can clip
Video Channels: 4
Audio Channels: 0
Maximum Width: 768
Maximum Height: 480
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 5 - 32bit RGB
Colour Depth: 32
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 1
Channel has a tuner
Type: 1 - TV
Format: 1 - NTSC
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 0
Type: 2 - Camera
Format: 1 - NTSC
Channel 2 Attributes
Name: S-Video
Channel: 2
Flags: 0
Type: 2 - Camera
Format: 1 - NTSC
Channel 3 Attributes
Name: Composite3
Channel: 3
Flags: 0
Type: 2 - Camera
Format: 1 - NTSC
This is the current settings for the device.
Code: Select all
mysql> select `Name`, `Type`, `Function`, `Enabled`, `Device`, `Channel`, `Format`, `Width`, `Height`, `Palette`, `ImageBufferCount`, `WarmupCount`, `StreamReplayBuffer` from `Monitors` where `Name` = 'New';
+------+-------+----------+---------+-------------+---------+--------+-------+--------+---------+------------------+-------------+--------------------+
| Name | Type | Function | Enabled | Device | Channel | Format | Width | Height | Palette | ImageBufferCount | WarmupCount | StreamReplayBuffer |
+------+-------+----------+---------+-------------+---------+--------+-------+--------+---------+------------------+-------------+--------------------+
| New | Local | Monitor | 1 | /dev/video0 | 1 | 1 | 320 | 240 | 6 | 10 | 10 | 100 |
+------+-------+----------+---------+-------------+---------+--------+-------+--------+---------+------------------+-------------+--------------------+
1 row in set (0.00 sec)
UPDATE:
This is a v4l2 issue which appears to have been addressed in the 1.24.0 rc-1 2737 version. I apologise for not checking the code for this before making my post -- but hopefully this information will be helpful to someone else as well. =)