pico2000 on Ubuntu server.

Forum for questions and support relating to the 1.25.x releases only.
Locked
Jackster
Posts: 8
Joined: Tue Dec 18, 2012 8:06 pm

pico2000 on Ubuntu server.

Post by Jackster »

Hi all.

Trying to get this pico2000 card working.

Checked a few topics but not much help.

System, AMD 1.6GHz, 1GB RAM, 200GB Disk
OS, Ubuntu Server 12.04 LTS

Single pico2000 card.

1 input from camera.

Code: Select all

root@cctv:/home/cctv# find /dev -name video*
/dev/video0
root@cctv:/home/cctv# lspci -v | grep Multimedia
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS7012 AC                                   '97 Sound Controller (rev a0)
00:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (                                   rev 11)
00:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11                                   )
root@cctv:/home/cctv# lspci -s 01:06 -v
root@cctv:/home/cctv# lspci -s 00:08 -v
00:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at e7005000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2
        Kernel driver in use: bttv
        Kernel modules: bttv

00:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 255
        Memory at e7006000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

root@cctv:/home/cctv# zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
  Driver: bttv
  Card: BT878 video (GrandTec Multi Cap
  Bus: PCI:0000:00:08.0
  Version: 3.2.24
  Type: 0x5000015
    Supports video capture (X)
    Does not support video output
    Supports 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
      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:
    8 bpp, gray (GREY)
    8 bpp, dithered color (HI24)
    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)
    32 bpp RGB, le (BGR4)
    32 bpp RGB, be (RGB4)
    4:2:2, packed, YUYV (YUYV)
    4:2:2, packed, YUYV (YUYV)
    4:2:2, packed, UYVY (UYVY)
    4:2:2, planar, Y-Cb-Cr (422P)
    4:2:0, planar, Y-Cb-Cr (YU12)
    4:2:0, planar, Y-Cr-Cb (YV12)
    4:1:1, planar, Y-Cb-Cr (411P)
    4:1:0, planar, Y-Cb-Cr (YUV9)
    4:1:0, planar, Y-Cr-Cb (YVU9)
Crop Capabilities
  Bounds: 1063 x 608
  Default: 924 x 576
  Current: 924 x 576
Inputs: 4
  Input 0
    Name: Composite0
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal not detected  (X)
    Colour Signal detected
    Horizontal Lock not detected
  Input 1
    Name: Composite1
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 2
    Name: Composite2
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 3
    Name: Composite3
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
root@cctv:/home/cctv#

Code: Select all

root@cctv:/home/cctv# dmesg | grep bttv
[    9.107722] bttv: driver version 0.9.19 loaded
[    9.107725] bttv: using 8 buffers with 2080k (520 pages) each for capture
[b][    9.113688] bttv: Bt8xx card found (0)[/b]
[    9.113705] bttv 0000:00:08.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    9.113715] bttv: 0: Bt878 (rev 17) at 0000:00:08.0, irq: 16, latency: 32, mmio: 0xe7005000
[    9.113909] bttv: 0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.114014] bttv: 0: tuner absent
[    9.114089] bttv: 0: registered device video0
[    9.114275] bttv: 0: registered device vbi0
[    9.114292] bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[    9.144190] bttv: PLL set ok
root@cctv:/home/cctv#
"[ 9.113688] bttv: Bt8xx card found (0)"
I take it that that means the card is not being detected or something?

IDK. My first go with this. Anyone had any luck with this card?
I am looking at going with another card when I have the money.

Thanks
Jackster
Posts: 8
Joined: Tue Dec 18, 2012 8:06 pm

Re: pico2000 on Ubuntu server.

Post by Jackster »

Going Capture method version 2 works.
PAL with channel 1.
Capture Palette is half work half don't.
Pixels it is at a horrid 320x240
So need to get that up more.

Viewing the stream off tablet shows 11-15FPS at night. Not tested day yet.
Jackster
Posts: 8
Joined: Tue Dec 18, 2012 8:06 pm

Re: pico2000 on Ubuntu server.

Post by Jackster »

Playing in the settings on the web panel I have it at 20-24FPS MPEG.

Hope to be able to embed that on my web site.
Jackster
Posts: 8
Joined: Tue Dec 18, 2012 8:06 pm

Re: pico2000 on Ubuntu server.

Post by Jackster »

Oh kickass!!!

768x576 works fine. It is 10FPS on average so 3x the size 2x slower but much better if you add it up.


The web page is not showing the MPEG, Only shows JPEG but is slow refreshing.

Fine on tablet via the 3rd party app.
Jackster
Posts: 8
Joined: Tue Dec 18, 2012 8:06 pm

Re: pico2000 on Ubuntu server.

Post by Jackster »

Added this to the Wiki. Some one make it readable please :P

http://www.zoneminder.com/wiki/index.ph ... ration_2.0

IDK how to do images but I can do tables! :)
bardoczs
Posts: 2
Joined: Tue Jan 08, 2013 11:09 pm

Re: pico2000 on Ubuntu server.

Post by bardoczs »

You can get 50 fps with pico 2000 w single camera! add to insmod option gbuffers=32, and set V4L_CAPTURE_FIELDS to 7 in zm config panel. Anyway, if you add a second camera, framerate will drop to around 6 fps :(
mp2281
Posts: 1
Joined: Fri Feb 15, 2013 7:46 pm

Re: pico2000 on Ubuntu server.

Post by mp2281 »

Jackster how did you get your card working. I'm having the same issue as the your first post?

root@ubuntubox:/home/marc# dmesg |grep bttv
[ 11.190950] bttv: driver version 0.9.19 loaded
[ 11.190953] bttv: using 32 buffers with 2080k (520 pages) each for capture
[ 11.190989] bttv: Bt8xx card found (0)
[ 11.191012] bttv: 0: Bt878 (rev 17) at 0000:05:01.0, irq: 19, latency: 32, mmio: 0xca100000
[ 11.193649] bttv: 0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 11.193740] bttv: 0: tuner absent
[ 11.193741] bttv: 0: the autoload option is obsolete
[ 11.193743] bttv: 0: use option msp3400, tda7432 or tvaudio to override which audio module should be used
[ 11.193786] bttv: 0: registered device video0
[ 11.193814] bttv: 0: registered device vbi0
[ 11.193850] bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[ 11.224830] bttv: PLL set ok
Locked