View unanswered posts | View active topics It is currently Fri Aug 01, 2014 4:44 am



Reply to topic  [ 14 posts ] 
help: no image displayed 
Author Message

Joined: Sat Sep 10, 2005 4:55 pm
Posts: 13
Location: China and Singapore
Post help: no image displayed
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.


Sat Apr 15, 2006 4:46 pm
Profile
User avatar

Joined: Sun Aug 24, 2003 11:26 pm
Posts: 68
Location: Germany
Post 
i think you forgot the beginning "/" in "/dev/video0"

_________________
Code:
$> man woman
$> Segmentation fault (core dumped)


Sat Apr 15, 2006 11:03 pm
Profile

Joined: Sat Sep 10, 2005 4:55 pm
Posts: 13
Location: China and Singapore
Post 
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]


Sun Apr 16, 2006 6:44 am
Profile
User avatar

Joined: Fri Mar 05, 2004 5:47 pm
Posts: 5218
Location: /USA/Washington/Seattle
Post 
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


Mon Apr 17, 2006 5:28 am
Profile WWW

Joined: Sat Sep 10, 2005 4:55 pm
Posts: 13
Location: China and Singapore
Post 
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]


Tue Apr 18, 2006 4:52 am
Profile
User avatar

Joined: Fri Mar 05, 2004 5:47 pm
Posts: 5218
Location: /USA/Washington/Seattle
Post 
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


Tue Apr 18, 2006 6:38 pm
Profile WWW

Joined: Sat Sep 10, 2005 4:55 pm
Posts: 13
Location: China and Singapore
Post 
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]


Wed Apr 26, 2006 10:07 am
Profile
Site Admin
User avatar

Joined: Wed Jul 09, 2003 3:07 pm
Posts: 5221
Location: Bristol, UK
Post 
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


Wed Apr 26, 2006 12:01 pm
Profile ICQ YIM WWW

Joined: Sun Feb 17, 2008 5:18 pm
Posts: 12
Post WinTV USB Pro
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:
"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:
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:
  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:
[   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:
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


Tue May 20, 2008 11:23 pm
Profile
User avatar

Joined: Fri Mar 05, 2004 5:47 pm
Posts: 5218
Location: /USA/Washington/Seattle
Post 
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


Wed May 21, 2008 8:09 am
Profile WWW

Joined: Sun Feb 17, 2008 5:18 pm
Posts: 12
Post 
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...?


Wed May 21, 2008 3:18 pm
Profile

Joined: Fri Sep 28, 2012 6:23 pm
Posts: 3
Post Re:
Site 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.

_________________
Many thanks - James


Last edited by mynew1 on Tue Nov 13, 2012 10:14 pm, edited 1 time in total.



Fri Sep 28, 2012 6:28 pm
Profile

Joined: Sun Feb 17, 2008 5:18 pm
Posts: 12
Post Re: help: no image displayed
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!


Fri Sep 28, 2012 6:52 pm
Profile

Joined: Thu Dec 20, 2012 10:38 am
Posts: 2
Post Re: help: no image displayed
thanks


Thu Dec 20, 2012 10:51 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group