help: no image displayed

Support and queries relating to all previous versions of ZoneMinder
Locked
tomlj
Posts: 13
Joined: Sat Sep 10, 2005 3:55 pm
Location: China and Singapore

help: no image displayed

Post by tomlj »

I used the following command to build zm1.22.0 on my fedora core 3 machine with a logitech usb webcam.
./configure -with-webdir=/var/www/html/zm -with-cgidir=/var/www/cgi-bin

The zm console can start but there is no image displayed.

The following error logs are found at \var\log\message:

Apr 14 22:52:58 localhost zmwatch[3841]: INF [Restarting capture daemon for cam1, shared memory not valid]
Apr 14 22:52:59 localhost zmdc[4813]: INF ['zmc -d dev/video0' started at 06/04/14 22:52:59]
Apr 14 22:52:59 localhost zmdc[3796]: INF ['zmc -d dev/video0' starting at 06/04/14 22:52:59, pid = 4813]
Apr 14 22:52:59 localhost zmc_dvideo0[4813]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 22:52:59 localhost zmc_dvideo0[4813]: ERR [Failed to open video device dev/video0: No such file or directory]
Apr 14 22:52:59 localhost zmdc[3796]: ERR ['zmc -d dev/video0' crashed, exit status 255]
Apr 14 22:52:59 localhost zmwatch[3841]: INF ['zmc -d dev/video0' started at 06/04/14 22:52:59]

I also tried liveCD, it works fine with my logitech usb webcam.
Any ideas about solving this problem?
Thanks in advance.
User avatar
acrid
Posts: 68
Joined: Sun Aug 24, 2003 10:26 pm
Location: Germany

Post by acrid »

i think you forgot the beginning "/" in "/dev/video0"

Code: Select all

$> man woman
$> Segmentation fault (core dumped)
tomlj
Posts: 13
Joined: Sat Sep 10, 2005 3:55 pm
Location: China and Singapore

Post by tomlj »

Thanks for your reply.
I modified the camera setting to /dev/video0, but there is still no image. Any ohter suggestions?

Here is the error log: /var/log/messages:

Apr 16 13:40:03 localhost zmwatch[3763]: INF [Restarting capture daemon for cam1, shared memory not valid]
Apr 16 13:40:03 localhost zmdc[4346]: INF ['zmc -d /dev/video0' started at 06/04/16 13:40:03]
Apr 16 13:40:03 localhost zmdc[3726]: INF ['zmc -d /dev/video0' starting at 06/04/16 13:40:03, pid = 4346]
Apr 16 13:40:03 localhost zmc_dvideo0[4346]: INF [Debug Level = 0, Debug Log = <none>]
Apr 16 13:40:03 localhost zmc_dvideo0[4346]: ERR [Failed to open video device /dev/video0: No such file or directory]
Apr 16 13:40:03 localhost zmdc[3726]: ERR ['zmc -d /dev/video0' crashed, exit status 255]
Apr 16 13:40:03 localhost zmwatch[3763]: INF ['zmc -d /dev/video0' started at 06/04/16 13:40:03]
Apr 16 13:40:13 localhost zmwatch[3763]: INF [Restarting capture daemon for cam1, shared memory not valid]
Apr 16 13:40:14 localhost zmdc[4352]: INF ['zmc -d /dev/video0' started at 06/04/16 13:40:14]
Apr 16 13:40:14 localhost zmc_dvideo0[4352]: INF [Debug Level = 0, Debug Log = <none>]
Apr 16 13:40:14 localhost zmdc[3726]: INF ['zmc -d /dev/video0' starting at 06/04/16 13:40:14, pid = 4352]
Apr 16 13:40:14 localhost zmc_dvideo0[4352]: ERR [Failed to open video device /dev/video0: No such file or directory]
Apr 16 13:40:14 localhost zmdc[3726]: ERR ['zmc -d /dev/video0' crashed, exit status 255]
Apr 16 13:40:14 localhost zmwatch[3763]: INF ['zmc -d /dev/video0' started at 06/04/16 13:40:14]
Apr 16 13:40:24 localhost zmwatch[3763]: INF [Restarting capture daemon for cam1, shared memory not valid]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

tomlj wrote:Apr 16 13:40:03 localhost zmc_dvideo0[4346]: ERR [Failed to open video device /dev/video0: No such file or directory]
check you dmsg log and make sure the bttv drivers are loading.
look into your messages log as well for any relavent errors.

Regards,
Corey
tomlj
Posts: 13
Joined: Sat Sep 10, 2005 3:55 pm
Location: China and Singapore

Post by tomlj »

Thanks for your kind reply.
I downloaded and installed spac5xx linux webcam driver. This can be shown at /var/log/dmesg
Linux video capture interface: v1.00
/home/jli/zmsurveillance/spca5xx-20060402/drivers/usb/spca5xx.c: USB SPCA5xx camera found. Type QC Express (unknown CCD)
/home/jli/zmsurveillance/spca5xx-20060402/drivers/usb/spca5xx.c: [spca5xx_probe:8301] Camera type GBGR
usbcore: registered new driver spca5xx
/home/jli/zmsurveillance/spca5xx-20060402/drivers/usb/spca5xx.c: spca5xx driver 00.57.11 registered

However, after installing usb webcam driver, there is still no image. The /var/log/messages is attached as following.
Any other suggestions?
Thanks.




Apr 18 11:47:41 minint-7wfdns zmwatch[3889]: INF [Restarting capture daemon for cam1, shared memory not valid]
Apr 18 11:47:42 minint-7wfdns zmdc[3850]: INF ['zmc -d /dev/video0' starting at 06/04/18 11:47:42, pid = 4250]
Apr 18 11:47:42 minint-7wfdns zmdc[4250]: INF ['zmc -d /dev/video0' started at 06/04/18 11:47:42]
Apr 18 11:47:42 minint-7wfdns zmc_dvideo0[4250]: INF [Debug Level = 0, Debug Log = <none>]
Apr 18 11:47:42 minint-7wfdns zmwatch[3889]: INF ['zmc -d /dev/video0' starting at 06/04/18 11:47:42, pid = 4250]
Apr 18 11:47:42 minint-7wfdns zmc_dvideo0[4250]: ERR [Failed to set picture attributes: Invalid argument]
Apr 18 11:47:42 minint-7wfdns zmdc[3850]: ERR ['zmc -d /dev/video0' crashed, exit status 255]
Apr 18 11:47:48 minint-7wfdns zmu[4252]: ERR [Shared memory not initialised by capture daemon]
Apr 18 11:47:49 minint-7wfdns zms[4258]: ERR [Shared memory not initialised by capture daemon]
Apr 18 11:47:51 minint-7wfdns zmu[4260]: ERR [Shared memory not initialised by capture daemon]
Apr 18 11:47:51 minint-7wfdns zms[4266]: ERR [Shared memory not initialised by capture daemon]
Apr 18 11:47:52 minint-7wfdns zmwatch[3889]: INF [Restarting capture daemon for cam1, shared memory not valid]
Apr 18 11:47:52 minint-7wfdns zmdc[3850]: INF ['zmc -d /dev/video0' starting at 06/04/18 11:47:52, pid = 4270]
Apr 18 11:47:52 minint-7wfdns zmdc[4270]: INF ['zmc -d /dev/video0' started at 06/04/18 11:47:52]
Apr 18 11:47:52 minint-7wfdns zmc_dvideo0[4270]: INF [Debug Level = 0, Debug Log = <none>]
Apr 18 11:47:52 minint-7wfdns zmwatch[3889]: INF ['zmc -d /dev/video0' started at 06/04/18 11:47:52]
Apr 18 11:47:53 minint-7wfdns zmc_dvideo0[4270]: ERR [Failed to set picture attributes: Invalid argument]
Apr 18 11:47:53 minint-7wfdns zmdc[3850]: ERR ['zmc -d /dev/video0' crashed, exit status 255]
Apr 18 11:48:02 minint-7wfdns zmwatch[3889]: INF [Restarting capture daemon for cam1, shared memory not valid]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

tomlj wrote:Apr 18 11:47:42 minint-7wfdns zmc_dvideo0[4250]: ERR [Failed to set picture attributes: Invalid argument]
This usualy means that you have set one of the following incorrectly,
color pallet, video hieght, or video width. Try starting with 320x240 (assuming ntsc) and try different pallets.

Regards,
Corey
tomlj
Posts: 13
Joined: Sat Sep 10, 2005 3:55 pm
Location: China and Singapore

Post by tomlj »

I set the camera parameters accordiing to the output of zmu -d /dev/video0 -q -v
/dev/video0
Device channel 0
Format 0=PAL
RGB24
176
144

[root@minint-7wfdns ~]# zmu -d /dev/video0 -q -v
Video Capabilities
Name: QC Express
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 288
Minimum Width: 176
Minimum Height: 144
Window Attributes
X Offset: 0
Y Offset: 0
Width: 176
Height: 144
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: TV8532
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL



But there is still no image. Also tried 320*240, 320*280 as well as other capture palettes. All all are no luck.
I followed some posts at the forum and set
echo 134217728 > /proc/sys/kernel/shmall
echo 134217728 > /proc/sys/kernel/shmmax
But these setting doesn't change my situation.

The error log is attached at the following. Any more suggestions? Thanks in advance for any replies.


Error log from /var/log/messages:

Apr 26 16:52:26 minint-7wfdns zmc_d0[3944]: INF [Debug Level = 0, Debug Log = <none>]
Apr 26 16:52:26 minint-7wfdns zmc_d0[3944]: WAR [Attempt to fetch boolean value for ZM_MPEG_REPLAY_FORMAT, actual type is string]
Apr 26 16:52:26 minint-7wfdns zmc_d0[3944]: ERR [Failed to set picture attributes: Invalid argument]
Apr 26 16:52:26 minint-7wfdns zmc_d0[3944]: WAR [Attempt to fetch boolean value for ZM_WEB_TITLE_PREFIX, actual type is string]
Apr 26 16:52:45 minint-7wfdns zmu[3956]: WAR [Attempt to fetch boolean value for ZM_MPEG_REPLAY_FORMAT, actual type is string]
Apr 26 16:52:45 minint-7wfdns zmu[3956]: WAR [Attempt to fetch boolean value for ZM_EMAIL_ADDRESS, actual type is string]
Apr 26 16:52:45 minint-7wfdns zmu[3956]: WAR [Attempt to fetch integer value for ZM_WEB_RESIZE_CONSOLE, actual type is boolean]
Apr 26 16:52:45 minint-7wfdns zmu[3956]: ERR [Shared memory not initialised by capture daemon]
Apr 26 16:52:45 minint-7wfdns zms[3960]: ERR [Shared memory not initialised by capture daemon]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

1) Do you have STRICT_VIDEO_CONFIG set to off? If not then I would do so.

2) The config errors you are getting there implies that your db config is for a different version than your binaries. Is this possible?
Phil
keynet
Posts: 12
Joined: Sun Feb 17, 2008 4:18 pm

WinTV USB Pro

Post by keynet »

Hi,

Having had some success with a Winfast DTV 1000 capture card, I want to swap to a WinTV USB capture for a couple of reasons. The WinTV device works well with both xawtv and kdetv (using the S-video input).
But I can't make it work with ZM at all, on any setting. I keep getting

Code: Select all

"ERR [Failed to setup memory: Invalid argument]"
ZM works with the 2 Winfast cards in the same machine, (but their analogue quality is poor), KdeTV/xawtv work with all 3, seems hard to believe much is wrong. I have lots of RAM (2G) and about 1G shared, so seems unlikely to be the problem.
I use /dev/video0 (2) set to 320 x 240 and greyscale. ZM shows the video device as orange.

ZMU reports:

Code: Select all

Video Capabilities
  Name: Hauppauge WinTV USB Pro (PAL I,
  Type: 3
    Can capture
    Can tune
  Video Channels: 3
  Audio Channels: 0
  Maximum Width: 320
  Maximum Height: 240
  Minimum Width: 48
  Minimum Height: 32
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 320
  Height: 240
Picture Attributes
  Palette: 1 - Linear greyscale
  Colour Depth: 8
  Brightness: 32896
  Hue: 32896
  Colour :33026
  Contrast: 33026
  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: Composite Video Input
  Channel: 1
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
Channel 2 Attributes
  Name: S-Video Input
  Channel: 2
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
xawtv describes it as follows

Code: Select all

  USBVision 0.9.9 / Hauppauge WinTV USB Pro (PAL I, @ 1-2
...
v4l2: new capture params (320x240, YUYV, 153600 byte)
setformat: 16 bit YUV 4:2:2 (packed, YUYV) (320x240): ok
v4l2: buf 0: video-cap 0x0+153600, used 0
v4l2: buf 1: video-cap 0x26000+153600, used 0
dmesg says

Code: Select all

[   41.645932] usb 1-2: new full speed USB device using uhci_hcd and address 3
[   42.142072] usb 1-2: new device found, idVendor=0573, idProduct=4d29
[   42.150083] usb 1-2: new device strings: Mfr=1, Product=0, SerialNumber=0
[   42.158056] usb 1-2: Manufacturer: NT
[   42.166534] usb 1-2: configuration #1 chosen from 4 choices
[   42.485444] usb-storage: device scan complete
[   45.465972] usbvision_probe: Hauppauge WinTV USB Pro (PAL I,D/K) found
[   45.516524] USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
[   45.595037] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
[   45.616848] usbcore: registered new interface driver usbvision
[   45.688432] USBVision USB Video Device Driver for Linux : 0.9.9
And each time zmc tries to init the driver syslog reports

Code: Select all

May 20 22:41:04 ha-server zmc_dvideo0[5954]: INF [Debug Level = 0, Debug Log = <none>]
May 20 22:41:04 ha-server kernel: [ 5731.730954] saa7115 3-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)
May 20 22:41:05 ha-server kernel: [ 5732.863922] tuner 3-0061: chip found @ 0xc2 (usbvision #0)
May 20 22:41:05 ha-server kernel: [ 5732.863977] tuner 3-0061: type set to 37 (LG PAL (newer TAPC series))
May 20 22:41:05 ha-server kernel: [ 5732.863985] tuner 3-0061: type set to 37 (LG PAL (newer TAPC series))
May 20 22:41:07 ha-server zmc_dvideo0[5954]: ERR [Failed to setup memory: Invalid argument]
I have not so far succeeded in increasing the zmc debug level. Don't know if that would help - advice please?

Can anyone suggest a solution?

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

First problem I see is that it using V4L2, ZM does not work yet with V4L2 and needs the V4L compatability layer at least or the V4L driver. Also be aware that the V4L compatability layer has known issues.
You might try an older kernel like 2.6.23 or 2.6.24
keynet
Posts: 12
Joined: Sun Feb 17, 2008 4:18 pm

Post by keynet »

Thanks, yes I noted that too. But the two Winfast cards also report V4L2 when they boot, and the WinTV reports supporting V4L and V4L2. So I'm a bit lost. I'm using Kernel 2.6.23.1-244 (Standard on SuSe 10.3 at the mo, I think). Perhaps the compatibility layer isn't working...?
mynew1
Posts: 3
Joined: Fri Sep 28, 2012 5:23 pm

Re:

Post by mynew1 »

[color=#33669A]Site[/color] wrote:I hope someone can help. Yes I noted that too. But the two Winfast cards also report V4L2 when they boot, and the WinTV reports supporting V4L and V4L2. So I'm a bit lost. I'm using Kernel 2.6.23.1-244 (Standard on SuSe 10.3 at the mo, I think). Perhaps the compatibility layer isn't working...?
Hi Keynet,

Did you figure out the problem? I am also having the same problem, no image displayed. I tried pretty much everything mentioned in this thread, still no luck. Just wondering if you found a solution. Thanks.
Last edited by mynew1 on Tue Nov 13, 2012 9:14 pm, edited 1 time in total.
Many thanks - James
keynet
Posts: 12
Joined: Sun Feb 17, 2008 4:18 pm

Re: help: no image displayed

Post by keynet »

No sorry, I gave up on that one a long time ago!
The WinTV USB is now gathering dust in the loft. It's only 320 x 240 res. best case I think, so not worth investing too much time in.

FYI I have tried other USB sources and not had much luck even though I'm on a much newer kernel now (3.04). Cheap ebay no-brand turned out not to have the claimed Philips chip in it, so was returned, I also tried a Dazzle DVC90 which is very touchy on setup (only worked with YUYV colour setting as I recall), but wasn't reliable - EM28xx driver appeared to die with nothing logged after 3-4 days use.

I'm now exclusively using PCI BT878 based cards which *are* 100% reliable.
BTW that includes an old PCI WinTV card with single S-video/composite input

HTH!
davide.pascolini
Posts: 2
Joined: Thu Dec 20, 2012 9:38 am

Re: help: no image displayed

Post by davide.pascolini »

thanks
Locked