BT878 Black and White Static, Help with Settings

Forum for questions and support relating to the 1.30.x releases only.
Locked
cpaplaczyk
Posts: 5
Joined: Sun May 13, 2018 8:08 am

BT878 Black and White Static, Help with Settings

Post by cpaplaczyk »

Hello,
I have researched this issue extensively and have yet to get anything better than a blue monitor or a fuzzy (black and white) non image screen. I do know that the camera is working since it was previously connected to a standard CCTV DVR. I am looking to move to ZM due to the limited ability of the DVR. Any help would greatly be appreciated.

Version: ZoneMinder v1.30.4
I installed ZM from, https://wiki.zoneminder.com/Ubuntu_Serv ... ell_script

Installed with the script labeled: Script for Ubuntu 18.04 - will install Apache, Mariadb, PHP and Zoneminder 1.30.4

Log Erros:
2018-05-13 14:43:11.052979 zms 1501 ERR Unable to validate swap image path, disabling buffered playback zm_monitor.cpp 4025
2018-05-13 14:43:10.983193 zms 1501 ERR Can't stat '/tmp/zm': No such file or directory zm_monitor.cpp 3493

The previous DVR system was made by Zosi so the cameras are by that company.

I have tried /dev/video0 through 3 and all possible channels. Channel 0 gives me a blue screen and channel 3 along with a few others give me fuzzy (black and white) non image screen.

I have tried setting the bttv.conf to options bttv gbuffers=16 card=77,77,77,77 as others have stated as well as the ZoneMinder wiki says. I still get a blue screen.

Output of: v4l-info /dev/video0

### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "bttv"
card : "BT878 video (GrandTec Multi Cap"
bus_info : "PCI:0000:05:0c.0"
version : 4.15.17
capabilities : 0x85200015 [VIDEO_CAPTURE,VIDEO_OVERLAY,VBI_CAPTURE,?,READWRITE,STREAMING,(null)]

standards
VIDIOC_ENUMSTD(0)
index : 0
id : 0xb000 [NTSC_M,NTSC_M_JP,NTSC_M_KR]
name : "NTSC"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(1)
index : 1
id : 0x1000 [NTSC_M]
name : "NTSC-M"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(2)
index : 2
id : 0x2000 [NTSC_M_JP]
name : "NTSC-M-JP"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(3)
index : 3
id : 0x8000 [NTSC_M_KR]
name : "NTSC-M-KR"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(4)
index : 4
id : 0xff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K]
name : "PAL"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(5)
index : 5
id : 0x7 [PAL_B,PAL_B1,PAL_G]
name : "PAL-BG"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(6)
index : 6
id : 0x8 [PAL_H]
name : "PAL-H"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(7)
index : 7
id : 0x10 [PAL_I]
name : "PAL-I"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(8)
index : 8
id : 0xe0 [PAL_D,PAL_D1,PAL_K]
name : "PAL-DK"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(9)
index : 9
id : 0x100 [PAL_M]
name : "PAL-M"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(10)
index : 10
id : 0x200 [PAL_N]
name : "PAL-N"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(11)
index : 11
id : 0x400 [PAL_Nc]
name : "PAL-Nc"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(12)
index : 12
id : 0x800 [PAL_60]
name : "PAL-60"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(13)
index : 13
id : 0xff0000 [SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,SECAM_LCATSC_8_VSB]
name : "SECAM"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(14)
index : 14
id : 0x10000 [SECAM_B]
name : "SECAM-B"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(15)
index : 15
id : 0x40000 [SECAM_G]
name : "SECAM-G"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(16)
index : 16
id : 0x80000 [SECAM_H]
name : "SECAM-H"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(17)
index : 17
id : 0x320000 [SECAM_D,SECAM_K,SECAM_K1]
name : "SECAM-DK"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(18)
index : 18
id : 0x400000 [SECAM_L]
name : "SECAM-L"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(19)
index : 19
id : 0x800000 [SECAM_LCATSC_8_VSB]
name : "SECAM-Lc"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625

inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Composite0"
type : CAMERA
audioset : 0
tuner : 0
std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,NTSC_M_KR,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,SECAM_LCATSC_8_VSB]
status : 0x0 []
VIDIOC_ENUMINPUT(1)
index : 1
name : "Composite1"
type : CAMERA
audioset : 0
tuner : 0
std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,NTSC_M_KR,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,SECAM_LCATSC_8_VSB]
status : 0x0 []
VIDIOC_ENUMINPUT(2)
index : 2
name : "Composite2"
type : CAMERA
audioset : 0
tuner : 0
std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,NTSC_M_KR,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,SECAM_LCATSC_8_VSB]
status : 0x0 []
VIDIOC_ENUMINPUT(3)
index : 3
name : "Composite3"
type : CAMERA
audioset : 0
tuner : 0
std : 0xffbfff [PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_M,PAL_N,PAL_Nc,PAL_60,NTSC_M,NTSC_M_JP,NTSC_M_KR,SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L,SECAM_LCATSC_8_VSB]
status : 0x0 []

video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 0
description : "8-bit Greyscale"
pixelformat : 0x59455247 [GREY]
VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
index : 1
type : VIDEO_CAPTURE
flags : 0
description : "8-bit Dithered RGB (BTTV)"
pixelformat : 0x34324948 [HI24]
VIDIOC_ENUM_FMT(2,VIDEO_CAPTURE)
index : 2
type : VIDEO_CAPTURE
flags : 0
description : "16-bit A/XRGB 1-5-5-5"
pixelformat : 0x4f424752 [RGBO]
VIDIOC_ENUM_FMT(3,VIDEO_CAPTURE)
index : 3
type : VIDEO_CAPTURE
flags : 0
description : "16-bit A/XRGB 1-5-5-5 BE"
pixelformat : 0x51424752 [RGBQ]
VIDIOC_ENUM_FMT(4,VIDEO_CAPTURE)
index : 4
type : VIDEO_CAPTURE
flags : 0
description : "16-bit RGB 5-6-5"
pixelformat : 0x50424752 [RGBP]
VIDIOC_ENUM_FMT(5,VIDEO_CAPTURE)
index : 5
type : VIDEO_CAPTURE
flags : 0
description : "16-bit RGB 5-6-5 BE"
pixelformat : 0x52424752 [RGBR]
VIDIOC_ENUM_FMT(6,VIDEO_CAPTURE)
index : 6
type : VIDEO_CAPTURE
flags : 0
description : "24-bit BGR 8-8-8"
pixelformat : 0x33524742 [BGR3]
VIDIOC_ENUM_FMT(7,VIDEO_CAPTURE)
index : 7
type : VIDEO_CAPTURE
flags : 0
description : "32-bit BGRA/X 8-8-8-8"
pixelformat : 0x34524742 [BGR4]
VIDIOC_ENUM_FMT(8,VIDEO_CAPTURE)
index : 8
type : VIDEO_CAPTURE
flags : 0
description : "32-bit A/XRGB 8-8-8-8"
pixelformat : 0x34424752 [RGB4]
VIDIOC_ENUM_FMT(9,VIDEO_CAPTURE)
index : 9
type : VIDEO_CAPTURE
flags : 0
description : "YUYV 4:2:2"
pixelformat : 0x56595559 [YUYV]
VIDIOC_ENUM_FMT(10,VIDEO_CAPTURE)
index : 10
type : VIDEO_CAPTURE
flags : 0
description : "UYVY 4:2:2"
pixelformat : 0x59565955 [UYVY]
VIDIOC_ENUM_FMT(11,VIDEO_CAPTURE)
index : 11
type : VIDEO_CAPTURE
flags : 0
description : "Planar YUV 4:2:2"
pixelformat : 0x50323234 [422P]
VIDIOC_ENUM_FMT(12,VIDEO_CAPTURE)
index : 12
type : VIDEO_CAPTURE
flags : 0
description : "Planar YUV 4:2:0"
pixelformat : 0x32315559 [YU12]
VIDIOC_ENUM_FMT(13,VIDEO_CAPTURE)
index : 13
type : VIDEO_CAPTURE
flags : 0
description : "Planar YVU 4:2:0"
pixelformat : 0x32315659 [YV12]
VIDIOC_ENUM_FMT(14,VIDEO_CAPTURE)
index : 14
type : VIDEO_CAPTURE
flags : 0
description : "Planar YUV 4:1:1"
pixelformat : 0x50313134 [411P]
VIDIOC_ENUM_FMT(15,VIDEO_CAPTURE)
index : 15
type : VIDEO_CAPTURE
flags : 0
description : "Planar YUV 4:1:0"
pixelformat : 0x39565559 [YUV9]
VIDIOC_ENUM_FMT(16,VIDEO_CAPTURE)
index : 16
type : VIDEO_CAPTURE
flags : 0
description : "Planar YVU 4:1:0"
pixelformat : 0x39555659 [YVU9]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x34524742 [BGR4]
fmt.pix.field : INTERLACED
fmt.pix.bytesperline : 1280
fmt.pix.sizeimage : 307200
fmt.pix.colorspace : SMPTE170M
fmt.pix.priv : 4276996862

video overlay
VIDIOC_ENUM_FMT(0,VIDEO_OVERLAY)
index : 0
type : VIDEO_OVERLAY
flags : 0
description : "8-bit Greyscale"
pixelformat : 0x59455247 [GREY]
VIDIOC_ENUM_FMT(1,VIDEO_OVERLAY)
index : 1
type : VIDEO_OVERLAY
flags : 0
description : "8-bit Dithered RGB (BTTV)"
pixelformat : 0x34324948 [HI24]
VIDIOC_ENUM_FMT(2,VIDEO_OVERLAY)
index : 2
type : VIDEO_OVERLAY
flags : 0
description : "16-bit A/XRGB 1-5-5-5"
pixelformat : 0x4f424752 [RGBO]
VIDIOC_ENUM_FMT(3,VIDEO_OVERLAY)
index : 3
type : VIDEO_OVERLAY
flags : 0
description : "16-bit A/XRGB 1-5-5-5 BE"
pixelformat : 0x51424752 [RGBQ]
VIDIOC_ENUM_FMT(4,VIDEO_OVERLAY)
index : 4
type : VIDEO_OVERLAY
flags : 0
description : "16-bit RGB 5-6-5"
pixelformat : 0x50424752 [RGBP]
VIDIOC_ENUM_FMT(5,VIDEO_OVERLAY)
index : 5
type : VIDEO_OVERLAY
flags : 0
description : "16-bit RGB 5-6-5 BE"
pixelformat : 0x52424752 [RGBR]
VIDIOC_ENUM_FMT(6,VIDEO_OVERLAY)
index : 6
type : VIDEO_OVERLAY
flags : 0
description : "24-bit BGR 8-8-8"
pixelformat : 0x33524742 [BGR3]
VIDIOC_ENUM_FMT(7,VIDEO_OVERLAY)
index : 7
type : VIDEO_OVERLAY
flags : 0
description : "32-bit BGRA/X 8-8-8-8"
pixelformat : 0x34524742 [BGR4]
VIDIOC_ENUM_FMT(8,VIDEO_OVERLAY)
index : 8
type : VIDEO_OVERLAY
flags : 0
description : "32-bit A/XRGB 8-8-8-8"
pixelformat : 0x34424752 [RGB4]
VIDIOC_ENUM_FMT(9,VIDEO_OVERLAY)
index : 9
type : VIDEO_OVERLAY
flags : 0
description : "YUYV 4:2:2"
pixelformat : 0x56595559 [YUYV]
VIDIOC_ENUM_FMT(10,VIDEO_OVERLAY)
index : 10
type : VIDEO_OVERLAY
flags : 0
description : "UYVY 4:2:2"
pixelformat : 0x59565955 [UYVY]
VIDIOC_G_FMT(VIDEO_OVERLAY)
type : VIDEO_OVERLAY
fmt.win.w.left : 0
fmt.win.w.top : 0
fmt.win.w.width : 320
fmt.win.w.height : 240
fmt.win.field : INTERLACED
fmt.win.chromakey : 0
fmt.win.clips : (nil)
fmt.win.clipcount : 0
fmt.win.bitmap : (nil)
VIDIOC_G_FBUF
capability : 0x4 [LIST_CLIPPING]
flags : 0x1 [PRIMARY]
base : (nil)
fmt.width : 0
fmt.height : 0
fmt.pixelformat : 0x00000000 [....]
fmt.field : ANY
fmt.bytesperline : 0
fmt.sizeimage : 0
fmt.colorspace : unknown
fmt.priv : 0

vbi capture
VIDIOC_G_FMT(VBI_CAPTURE): Invalid argument

controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "Brightness"
minimum : 0
maximum : 65280
step : 256
default_value : 32768
flags : SLIDER
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 65408
step : 128
default_value : 27648
flags : SLIDER
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "Saturation"
minimum : 0
maximum : 65408
step : 128
default_value : 32768
flags : SLIDER
VIDIOC_QUERYCTRL(BASE+3)
id : 9963779
type : INTEGER
name : "Hue"
minimum : 0
maximum : 65280
step : 256
default_value : 32768
flags : SLIDER
VIDIOC_QUERYCTRL(BASE+9)
id : 9963785
type : BOOLEAN
name : "Mute"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(BASE+29)
id : 9963805
type : BOOLEAN
name : "Chroma AGC"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(BASE+30)
id : 9963806
type : BOOLEAN
name : "Color Killer"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
id : 134217728
type : BOOLEAN
name : "Comb Filter"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
id : 134217729
type : BOOLEAN
name : "Auto Mute"
minimum : 0
maximum : 1
step : 1
default_value : 1
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
id : 134217730
type : BOOLEAN
name : "Luma Decimation Filter"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+3)
id : 134217731
type : BOOLEAN
name : "AGC Crush"
minimum : 0
maximum : 1
step : 1
default_value : 1
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+4)
id : 134217732
type : BOOLEAN
name : "VCR Hack"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+5)
id : 134217733
type : INTEGER
name : "Whitecrush Lower"
minimum : 0
maximum : 255
step : 1
default_value : 127
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+6)
id : 134217734
type : INTEGER
name : "Whitecrush Upper"
minimum : 0
maximum : 255
step : 1
default_value : 207
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+7)
id : 134217735
type : INTEGER
name : "UV Ratio"
minimum : 0
maximum : 100
step : 1
default_value : 50
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+8)
id : 134217736
type : BOOLEAN
name : "Full Luma Range"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : unknown
VIDIOC_QUERYCTRL(PRIVATE_BASE+9)
id : 134217737
type : INTEGER
name : "Coring"
minimum : 0
maximum : 3
step : 1
default_value : 0
flags : unknown


Any info would be greatly appreciated.


If your question concerns the API, make sure you have followed the documentation mentioned previously.
Last edited by cpaplaczyk on Tue May 15, 2018 12:01 am, edited 1 time in total.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: BT878 Blue Monitor, No Video

Post by bbunge »

The two "errors" you reported are not fatal and I have seen them on Ubuntu 18.04 before. They are the result of the way Bionic handles tmp files. You can change PATH_SWAP to /dev/shm

Check /dev/video* to see what values the system is assigning to your cameras. Blue screen errors are usually the result of incorrect resolution being used in Zoneminder. Also make sure the install script did the "adduser www-data video" If this user is not added local cameras will error out with bad permissions. There is also a chance that Ubuntu Bionic does not fully support the camera card.

Use 32 bit color, PAL-B, 320x240 to start
cpaplaczyk
Posts: 5
Joined: Sun May 13, 2018 8:08 am

Re: BT878 Blue Monitor, No Video

Post by cpaplaczyk »

As an update, I was able to get some sort of recognizable image. It looks like when I have the black and white fuzzy screen if I unplug and plug back in the camera sometimes I get a video that is split into three images. I can see that it is a video of the camera but it is clearly not visible enough for a usable image as it seems to be split into three images.

I can see with this the below settings:
Capture Method: Video for Linux Version 2
Channel: 2
Format: NTSC
Capture Palette: Auto
Multi Buffering: use Config Value
Captures Per frame: 2
Colorspace: 32 bit
Width:320
Height: 240
cpaplaczyk
Posts: 5
Joined: Sun May 13, 2018 8:08 am

Re: BT878 Black and White Static, Help with Settings

Post by cpaplaczyk »

I have posted screenshots below of the best settings I can get it at. It is very strange that sometimes when I unplug and plug the camera back in I get a clearer video, yet again it is fuzzy and it has three vertical sections of the image but I can determine that I am getting some sort of video feed through ZM.

As always any assistance is appreciated.
Attachments
Screenshot from 2018-05-14 17-03-53.png
Screenshot from 2018-05-14 17-03-53.png (29.2 KiB) Viewed 1782 times
Screenshot from 2018-05-14 17-04-08.png
Screenshot from 2018-05-14 17-04-08.png (15.17 KiB) Viewed 1782 times
Screenshot from 2018-05-14 17-00-13.png
Screenshot from 2018-05-14 17-00-13.png (536.83 KiB) Viewed 1782 times
cpaplaczyk
Posts: 5
Joined: Sun May 13, 2018 8:08 am

Re: BT878 Black and White Static, Help with Settings

Post by cpaplaczyk »

Last attachment.
Attachments
Screenshot from 2018-05-14 17-03-43.png
Screenshot from 2018-05-14 17-03-43.png (22.29 KiB) Viewed 1782 times
cpaplaczyk
Posts: 5
Joined: Sun May 13, 2018 8:08 am

Re: BT878 Black and White Static, Help with Settings

Post by cpaplaczyk »

As you can seen from the screen shot below this is the best I can get. At times it shows this video and others it shows the video from above. It seems like it is a settings issue but I have tried almost all combinations.

If anyone has a suggestions I would be more than happy to test them out.

Thank you again in advance.
Attachments
Screenshot from 2018-05-15 16-46-12.png
Screenshot from 2018-05-15 16-46-12.png (529.06 KiB) Viewed 1762 times
Locked