Blank screen, Mint8, tw68 chipset based card

Forum for questions and support relating to the 1.24.x releases only.
Locked
sierran
Posts: 3
Joined: Sat Apr 03, 2010 7:34 pm

Blank screen, Mint8, tw68 chipset based card

Post by sierran »

Hello. I have a problem in vlc, xavtv i see screen but in ZM not. In log i have

Code: Select all

Apr  3 21:32:55 sierran-desktop zmdc[1642]: INF ['zmc -d /dev/vbi0' starting at 10/04/03 21:32:55, pid = 2547]
Apr  3 21:32:55 sierran-desktop zmc_dvbi0[2547]: INF [Debug Level = 0, Debug Log = <none>]
Apr  3 21:33:52 sierran-desktop zmdc[1642]: INF [Starting pending process, zmc -d /dev/video0]
Apr  3 21:33:52 sierran-desktop zmdc[1642]: INF ['zmc -d /dev/video0' starting at 10/04/03 21:33:52, pid = 2557]
Apr  3 21:33:52 sierran-desktop zmdc[2557]: INF ['zmc -d /dev/video0' started at 10/04/03 21:33:52]
Apr  3 21:33:52 sierran-desktop zmc_dvideo0[2557]: INF [Debug Level = 0, Debug Log = <none>]
Apr  3 21:33:52 sierran-desktop zmc_dvideo0[2557]: INF [Starting Capture]
Apr  3 21:33:52 sierran-desktop zmc_dvideo0[2557]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Apr  3 21:35:35 sierran-desktop zmdc[1642]: INF [Starting pending process, zmc -d /dev/vbi0]
Apr  3 21:35:35 sierran-desktop zmdc[1642]: INF ['zmc -d /dev/vbi0' starting at 10/04/03 21:35:35, pid = 2576]
Apr  3 21:35:35 sierran-desktop zmdc[2576]: INF ['zmc -d /dev/vbi0' started at 10/04/03 21:35:35]
Apr  3 21:35:35 sierran-desktop zmc_dvbi0[2576]: INF [Debug Level = 0, Debug Log = <none>]
Apr  3 21:36:32 sierran-desktop zmdc[1642]: INF [Starting pending process, zmc -d /dev/video0]
Apr  3 21:36:32 sierran-desktop zmdc[1642]: INF ['zmc -d /dev/video0' starting at 10/04/03 21:36:32, pid = 2590]
Apr  3 21:36:32 sierran-desktop zmdc[2590]: INF ['zmc -d /dev/video0' started at 10/04/03 21:36:32]
Apr  3 21:36:32 sierran-desktop zmc_dvideo0[2590]: INF [Debug Level = 0, Debug Log = <none>]
Apr  3 21:36:32 sierran-desktop zmc_dvideo0[2590]: INF [Starting Capture]
Apr  3 21:36:32 sierran-desktop zmc_dvideo0[2590]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Card is techwell tw 6800 based. What Should i do ? I installed ZM from repo. The version is 1.24.1.

wait for responde.

Sierran
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

sierran
Posts: 3
Joined: Sat Apr 03, 2010 7:34 pm

Post by sierran »

Ok i try.
In first i have black screen and mem errors. When i change kernel.shmall i don't have memory error and i don't have black screen.. i have nothing. /dev/video0 work with orther program, and i use tw68 compiled from git.

Sorry for my bad english ;)

Now log
Apr 3 23:44:09 sierran-desktop zmc_dvideo0[2469]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:44:29 sierran-desktop zms[2488]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:44:34 sierran-desktop zms[2489]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:44:36 sierran-desktop zms[2492]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:44:49 sierran-desktop zmdc[1644]: INF [Starting pending process, zmc -d /dev/video0]
Apr 3 23:44:49 sierran-desktop zmdc[1644]: INF ['zmc -d /dev/video0' starting at 10/04/03 23:44:49, pid = 2497]
Apr 3 23:44:49 sierran-desktop zmdc[2497]: INF ['zmc -d /dev/video0' started at 10/04/03 23:44:49]
Apr 3 23:44:49 sierran-desktop zmc_dvideo0[2497]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:45:07 sierran-desktop zms[2520]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:45:10 sierran-desktop zms[2524]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:45:51 sierran-desktop zms[2535]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:45:53 sierran-desktop zms[2540]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:46:09 sierran-desktop zmdc[1644]: INF [Starting pending process, zmc -d /dev/video0]
Apr 3 23:46:09 sierran-desktop zmdc[1644]: INF ['zmc -d /dev/video0' starting at 10/04/03 23:46:09, pid = 2541]
Apr 3 23:46:09 sierran-desktop zmdc[2541]: INF ['zmc -d /dev/video0' started at 10/04/03 23:46:09]
Apr 3 23:46:09 sierran-desktop zmc_dvideo0[2541]: INF [Debug Level = 0, Debug Log = <none>]
Apr 3 23:47:18 sierran-desktop zms[2558]: INF [Debug Level = 0, Debug Log = <none>]
lspci
03:07.0 Multimedia video controller: Techwell Inc. TW6802 multimedia video card (rev 10)
03:07.1 Multimedia controller: Techwell Inc. TW6802 multimedia other device (rev 10)
sierran
Posts: 3
Joined: Sat Apr 03, 2010 7:34 pm

Post by sierran »

Ok work. in setting
kernel.shmmax = 427772160

But i have screen about ~20sec and black scren for ~10sec then screen is normal. Here log.

Code: Select all

 
Apr  4 12:39:45 sierran-desktop zmc_dvideo0[2929]: ERR [Failed to capture image from monitor 1 (0/1)]
Apr  4 12:39:45 sierran-desktop kernel: [  750.384037] tw6801[0]/0: [e3adfb40/3] timeout - dma=0x0b8b2000
Apr  4 12:39:45 sierran-desktop kernel: [  750.384047] tw6801[0]/0: [e3adfcc0/4] timeout - dma=0x11762000
Apr  4 12:39:45 sierran-desktop kernel: [  750.384054] tw6801[0]/0: [e3adf600/5] timeout - dma=0x116e8000
Apr  4 12:39:45 sierran-desktop kernel: [  750.384060] tw6801[0]/0: [e3adf3c0/0] timeout - dma=0x116b2000
Apr  4 12:39:45 sierran-desktop kernel: [  750.384067] tw6801[0]/0: [e3adf480/1] timeout - dma=0x0b956000
Apr  4 12:39:45 sierran-desktop kernel: [  750.384073] tw6801[0]/0: [e3adf180/2] timeout - dma=0x11560000
Apr  4 12:39:45 sierran-desktop zmdc[2907]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Apr  4 12:39:45 sierran-desktop zmdc[2907]: INF [Starting pending process, zmc -d /dev/video0]
Apr  4 12:39:45 sierran-desktop zmdc[2907]: INF ['zmc -d /dev/video0' starting at 10/04/04 12:39:45, pid = 2954]
Apr  4 12:39:45 sierran-desktop zmdc[2954]: INF ['zmc -d /dev/video0' started at 10/04/04 12:39:45]
Apr  4 12:39:45 sierran-desktop zmc_dvideo0[2954]: INF [Debug Level = 0, Debug Log = <none>]
Apr  4 12:39:45 sierran-desktop zms[2953]: WAR [Unable to store frame as shared memory invalid]
Apr  4 12:39:45 sierran-desktop zms[2953]: WAR [Unable to store frame as timestamp invalid]
Apr  4 12:39:45 sierran-desktop zmc_dvideo0[2954]: INF [Starting Capture]
Apr  4 12:40:13 sierran-desktop kernel: [  778.164038] tw6801[0]/0: [e45b9240/5] timeout - dma=0x0b8aa000
Apr  4 12:40:13 sierran-desktop kernel: [  778.164048] tw6801[0]/0: [e45b9a80/0] timeout - dma=0x0ba26000
Apr  4 12:40:13 sierran-desktop kernel: [  778.164055] tw6801[0]/0: [e45b9cc0/1] timeout - dma=0x2f094000
Apr  4 12:40:13 sierran-desktop kernel: [  778.164061] tw6801[0]/0: [e45b9600/2] timeout - dma=0x0b9e6000
Apr  4 12:40:13 sierran-desktop kernel: [  778.164067] tw6801[0]/0: [e45b9000/3] timeout - dma=0x0b90e000
Apr  4 12:40:13 sierran-desktop kernel: [  778.164073] tw6801[0]/0: [e45b9540/4] timeout - dma=0x0b81c000
Apr  4 12:40:13 sierran-desktop zmc_dvideo0[2954]: WAR [Capture failure, possible signal loss?: Input/output error]
Apr  4 12:40:13 sierran-desktop zmc_dvideo0[2954]: ERR [Failed to capture image from monitor 1 (0/1)]
Apr  4 12:40:13 sierran-desktop zms[2953]: WAR [Unable to store frame as shared memory invalid]
Apr  4 12:40:13 sierran-desktop zmdc[2907]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Apr  4 12:40:18 sierran-desktop zmdc[2907]: INF [Starting pending process, zmc -d /dev/video0]
Apr  4 12:40:18 sierran-desktop zmdc[2956]: INF ['zmc -d /dev/video0' started at 10/04/04 12:40:18]
Apr  4 12:40:18 sierran-desktop zmdc[2907]: INF ['zmc -d /dev/video0' starting at 10/04/04 12:40:18, pid = 2956]
Apr  4 12:40:18 sierran-desktop zmc_dvideo0[2956]: INF [Debug Level = 0, Debug Log = <none>]
Apr  4 12:40:18 sierran-desktop zms[2953]: WAR [Unable to store frame as timestamp invalid]
Apr  4 12:40:18 sierran-desktop zmc_dvideo0[2956]: INF [Starting Capture]
Apr  4 12:40:21 sierran-desktop zmc_dvideo0[2956]: WAR [Capture failure, possible signal loss?: Input/output error]
Apr  4 12:40:21 sierran-desktop zmc_dvideo0[2956]: ERR [Failed to capture image from monitor 1 (0/1)]
Apr  4 12:40:21 sierran-desktop kernel: [  785.768052] tw6801[0]/0: [e45b93c0/2] timeout - dma=0x115b8000
Apr  4 12:40:21 sierran-desktop kernel: [  785.768061] tw6801[0]/0: [e45b9000/3] timeout - dma=0x0b888000
Apr  4 12:40:21 sierran-desktop kernel: [  785.768069] tw6801[0]/0: [e45b90c0/4] timeout - dma=0x116b4000
Apr  4 12:40:21 sierran-desktop kernel: [  785.768075] tw6801[0]/0: [e45b9840/5] timeout - dma=0x117e6000
Apr  4 12:40:21 sierran-desktop kernel: [  785.768081] tw6801[0]/0: [e45b9180/0] timeout - dma=0x0ba82000
Apr  4 12:40:21 sierran-desktop kernel: [  785.768087] tw6801[0]/0: [e45b9c00/1] timeout - dma=0x0b9fa000
Apr  4 12:40:21 sierran-desktop zmdc[2907]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Apr  4 12:40:21 sierran-desktop zms[2953]: WAR [Unable to store frame as shared memory invalid]
Apr  4 12:40:31 sierran-desktop zmdc[2907]: INF [Starting pending process, zmc -d /dev/video0]
Apr  4 12:40:31 sierran-desktop zmdc[2907]: INF ['zmc -d /dev/video0' starting at 10/04/04 12:40:31, pid = 2957]
Apr  4 12:40:31 sierran-desktop zmdc[2957]: INF ['zmc -d /dev/video0' started at 10/04/04 12:40:31]
Apr  4 12:40:31 sierran-desktop zmc_dvideo0[2957]: INF [Debug Level = 0, Debug Log = <none>]
Apr  4 12:40:31 sierran-desktop zms[2953]: WAR [Unable to store frame as timestamp invalid]
Apr  4 12:40:31 sierran-desktop zmc_dvideo0[2957]: INF [Starting Capture]
Apr  4 12:40:35 sierran-desktop zmc_dvideo0[2957]: WAR [Capture failure, possible signal loss?: Input/output error]
Apr  4 12:40:35 sierran-desktop zmc_dvideo0[2957]: ERR [Failed to capture image from monitor 1 (0/1)]
Apr  4 12:40:35 sierran-desktop kernel: [  800.061053] tw6801[0]/0: [d1494f00/4] timeout - dma=0x2db26000
Apr  4 12:40:35 sierran-desktop kernel: [  800.061063] tw6801[0]/0: [d1494180/5] timeout - dma=0x0ba84000
Apr  4 12:40:35 sierran-desktop kernel: [  800.061070] tw6801[0]/0: [d1494cc0/0] timeout - dma=0x11726000
Apr  4 12:40:35 sierran-desktop kernel: [  800.061076] tw6801[0]/0: [d1494600/1] timeout - dma=0x11722000
Apr  4 12:40:35 sierran-desktop kernel: [  800.061082] tw6801[0]/0: [d1494780/2] timeout - dma=0x114fe000
Apr  4 12:40:35 sierran-desktop kernel: [  800.061088] tw6801[0]/0: [d14949c0/3] timeout - dma=0x0baaa000
Apr  4 12:40:35 sierran-desktop zms[2953]: WAR [Unable to store frame as shared memory invalid]
Apr  4 12:40:35 sierran-desktop zmdc[2907]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
How can i fix it ?

Sierran
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Try with make insmod instead of make install...
x11r6
Posts: 4
Joined: Tue Apr 20, 2010 2:46 am

zoneminder 1.24.2 on ubuntu lucid TW6802

Post by x11r6 »

Hello all I also have exprience worked with TW6802 on ubuntu. First I fail with compile with ubuntu 9.04, but when I installed new ubuntu lucid 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.
x11r6
Posts: 4
Joined: Tue Apr 20, 2010 2:46 am

aah finally problem SOLVED by myself!

Post 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
 
Locked