Page 1 of 1

Need Help with Techwell Inc. TW6802 multimedia

Posted: Tue Apr 20, 2010 3:02 am
by x11r6
Hello all, I need help to get zoneminder to work with this card: Techwell Inc. TW6802 . I succesfully compile the driver card and succes when I use xawtv it can work grab video from 4 composite videos exacly clear great, but it is failed with zoneminder 1.24.2 on ubuntu lucid.
#here my output from lspci |grep Techwell

Code: Select all

01:02.0 Multimedia video controller: Techwell Inc. TW6802 multimedia video card (rev 10)
01:02.1 Multimedia controller: Techwell Inc. TW6802 multimedia other device (rev 10)
#setting for camera :

Code: Select all

###General
Source Type : local
Function : monitor
Maximum FPS	: 30
Alarm Maximum FPS : 30	
Reference Image Blend %g : 7
###Source
Device Path	/dev/video0
Capture Method	 Video for Linux Version 2
Device Channel	4
Device Format	PAL B
Capture Palette	RGB24
Capture Width (pixels) 320
Capture Height (pixels) 240	
#and output from : zmu -q -d /dev/video0 -v

Code: Select all

Video Device: /dev/video0
General Capabilities
  Driver: tw68
  Card: GENERIC
  Bus: PCI:0000:01:02.0
  Version: 0.0.4
  Type: 0x5000011
    Supports video capture (X)
    Does not support video output
    Does not support frame buffer overlay
    Supports VBI capture
    Does not support VBI output
    Does not support sliced VBI capture
    Does not support sliced VBI output
    Does not support video output overlay
    Does not have tuner
    Does not have audio in and/or out
    Does not have radio
    Supports read/write i/o (X)
    Does not support async i/o
    Supports streaming i/o (X)
    Standards:
      NTSC
      NTSC-M
      NTSC-M-JP
      NTSC-M-KR
      NTSC-443
      PAL
      PAL-BG
      PAL-H
      PAL-I
      PAL-DK
      PAL-M
      PAL-N
      PAL-Nc
      PAL-60
      SECAM
      SECAM-B
      SECAM-G
      SECAM-H
      SECAM-DK
      SECAM-L
      SECAM-Lc
  Formats:
    15 bpp RGB, le (RGBO)
    15 bpp RGB, be (RGBQ)
    16 bpp RGB, le (RGBP)
    16 bpp RGB, be (RGBR)
    24 bpp RGB, le (BGR3)
    24 bpp RGB, be (RGB3)
    32 bpp RGB, le (BGR4)
    32 bpp RGB, be (RGB4)
    4:2:2 packed, YUYV (YUYV)
    4:2:2 packed, UYVY (UYVY)
    YU12 (YU12)
    YV12 (YV12)
Crop Capabilities
  Bounds: 720 x 240
  Default: 720 x 241
  Current: 720 x 241
Inputs: 4
  Input 0
    Name: Composite1
    Type: Camera
    Audioset: 00000001
    Standards: 0xffffff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 1
    Name: Composite2
    Type: Camera
    Audioset: 00000001
    Standards: 0xffffff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 2
    Name: Composite3
    Type: Camera
    Audioset: 00000001
    Standards: 0xffffff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 3
    Name: Composite4
    Type: Camera
    Audioset: 00000001
    Standards: 0xffffff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock not detected
#/tmp/zmdc.log

Code: Select all

04/20/2010 09:48:30.036479 zmdc[6340].INF ['zmc -d /dev/video0' starting at 10/04/20 09:48:30, pid = 6651]
04/20/2010 09:48:30.078897 zmdc[6340].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
04/20/2010 09:53:50.021183 zmdc[6340].INF [Starting pending process, zmc -d /dev/video0]
04/20/2010 09:53:50.022623 zmdc[6340].INF ['zmc -d /dev/video0' starting at 10/04/20 09:53:50, pid = 6761]
04/20/2010 09:53:50.066403 zmdc[6340].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
I Believe all is normal but still cannot get grab picture/video from zoneminder, someone Help me please.

aah finally problem SOLVED by myself!

Posted: Tue Apr 20, 2010 9:56 am
by x11r6
The problem solved after a day research & picture loaded with good quality

good reference when I reading this step by step debug

Code: Select all

http://www.funkbud.com/?q=content/zoneminder-124x-karmic-koala
 
the point what I used:
1. disable V4L_MULTI_BUFFER on option->config tab
2. set CAPTURES_PER_FRAME = 2
3. recompile driver from git

Code: Select all

  apt-get install git-core dpkg-dev build-essential automake gcc
  cd /root; git clone git://gitorious.org/tw68/tw68-v2.git
  cd tw68-v2 ; make 
  cp tw68.ko /var/lib
  chmod 755  /var/lib/tw68.ko
 
4. edit /etc/modprobe.d/bttv.conf

Code: Select all

options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0
 
5. add command on /etc/rc.local

Code: Select all

modprobe bttv
insmod /var/lib/tw68.ko