Page 1 of 1
Pico Card Image in one channel.
Posted: Sat Dec 13, 2008 3:03 pm
by effie_jayx
I have set up a linux box with ubuntu hardy and zoneminder in the repositories.
I have a pico card I am tryin to set up, I followed several tutorial
I unload the bttv module and then I load it with
Code: Select all
sudo modprobe bttv gbuffers=32 card=77 tuner=4 radio=0 coring=1 full_luma_range=1 chroma_agc=1 combfilter=1 autoload=0 triton1=0 vsfx=0
I can only see one camera in a monitor, the other as either black or blue and the last one is a broken link.
I have tried changig resolutions to 320x240 and to grayscale, but the issue remains.
here is my dmesg
Code: Select all
[ 3933.630343] bttv: driver version 0.9.17 loaded
[ 3933.630351] bttv: using 32 buffers with 2080k (520 pages) each for capture
[ 3933.630872] bttv: Bt8xx card found (0).
[ 3933.630893] bttv0: Bt878 (rev 17) at 0000:00:06.0, irq: 17, latency: 32, mmio: 0xfdfff000
[ 3933.631207] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 3933.631246] bttv0: gpio: en=00000000, out=00000000 in=004ffbff [init]
[ 3940.013167] bttv0: tuner absent
[ 3940.018456] bttv0: registered device video0
[ 3940.018794] bttv0: registered device vbi0
[ 3940.018951] bttv0: PLL: 28636363 => 35468950 .. ok
[ 4019.602513] bttv0: PLL can sleep, using XTAL (28636363).
Any suggestions?
It seems a Shared Memory Issue or device alocation?
Posted: Mon Dec 15, 2008 1:45 pm
by effie_jayx
Checking out /var/log/syslog, I find:
Code: Select all
Dec 15 08:54:17 camaras-desktop zmdc[5361]: INF ['zmc -d /dev/video' stopping at 08/12/15 08:54:17]
Dec 15 08:54:17 camaras-desktop zmwatch[5395]: INF ['zmc -d /dev/video' stopping at 08/12/15 08:54:17]
Dec 15 08:54:27 camaras-desktop zmwatch[5395]: ERR [Can't get shared memory id '7a6d2004', 4: No such file or directory]
Dec 15 08:54:27 camaras-desktop zmwatch[5395]: INF [Restarting capture daemon for Nuevo, shared memory not valid]
Dec 15 08:54:27 camaras-desktop zmdc[6249]: INF ['zmc -d /dev/video' started at 08/12/15 08:54:27]
Dec 15 08:54:27 camaras-desktop zmc_dvideo[6249]: INF [Debug Level = 0, Debug Log = <none>]
Dec 15 08:54:27 camaras-desktop zmc_dvideo[6249]: ERR [Failed to open video device /dev/video: No such file or directory]
Dec 15 08:54:27 camaras-desktop zmdc[5361]: INF [Can't find child with pid of '6249']
Dec 15 08:54:27 camaras-desktop zmdc[5361]: INF ['zmc -d /dev/video' starting at 08/12/15 08:54:27, pid = 6249]
Dec 15 08:54:27 camaras-desktop zmwatch[5395]: INF [Can't find child with pid of '6249']
Posted: Mon Dec 15, 2008 2:17 pm
by effie_jayx
All logs... it seems a shared memory issue
Code: Select all
camaras@camaras-desktop:~$ tail /tmp/zm*.log
/tmp/zmaudit.log
12/15/08 10:12:24.806583 zmdc[5362].INF ['zmc -d /dev/video' stopping at 08/12/15 10:12:24]
12/15/08 10:12:34.991794 zmdc[5362].INF [Can't find child with pid of '6781']
12/15/08 10:12:34.992395 zmdc[5362].INF ['zmc -d /dev/video' starting at 08/12/15 10:12:34, pid = 6781]
12/15/08 10:12:45.160567 zmdc[5362].INF ['zmc -d /dev/video' stopping at 08/12/15 10:12:45]
12/15/08 10:12:55.345726 zmdc[5362].INF [Can't find child with pid of '6784']
12/15/08 10:12:55.346334 zmdc[5362].INF ['zmc -d /dev/video' starting at 08/12/15 10:12:55, pid = 6784]
12/15/08 10:13:05.516739 zmdc[5362].INF ['zmc -d /dev/video' stopping at 08/12/15 10:13:05]
12/15/08 10:13:15.700945 zmdc[5362].INF [Can't find child with pid of '6787']
12/15/08 10:13:15.701552 zmdc[5362].INF ['zmc -d /dev/video' starting at 08/12/15 10:13:15, pid = 6787]
12/15/08 10:13:25.870424 zmdc[5362].INF ['zmc -d /dev/video' stopping at 08/12/15 10:13:25]
/tmp/zmfilter.log <12> /tmp/zmpkg.log <12>
/tmp/zmwatch.log
12/15/08 10:12:44.998823 zmwatch[5396].INF [Restarting capture daemon for Nuevo, shared memory not valid]
12/15/08 10:12:45.164463 zmwatch[5396].INF ['zmc -d /dev/video' stopping at 08/12/15 10:12:45]
12/15/08 10:12:55.166593 zmwatch[5396].INF [Restarting capture daemon for Nuevo, shared memory not valid]
12/15/08 10:12:55.350193 zmwatch[5396].INF [Can't find child with pid of '6784'] at /usr/bin/zmwatch.pl line 119
12/15/08 10:13:05.352724 zmwatch[5396].INF [Restarting capture daemon for Nuevo, shared memory not valid]
12/15/08 10:13:05.520869 zmwatch[5396].INF ['zmc -d /dev/video' stopping at 08/12/15 10:13:05]
12/15/08 10:13:15.522971 zmwatch[5396].INF [Restarting capture daemon for Nuevo, shared memory not valid]
12/15/08 10:13:15.705465 zmwatch[5396].INF [Can't find child with pid of '6787'] at /usr/bin/zmwatch.pl line 119
12/15/08 10:13:25.708018 zmwatch[5396].INF [Restarting capture daemon for Nuevo, shared memory not valid]
12/15/08 10:13:25.874325 zmwatch[5396].INF ['zmc -d /dev/video' stopping at 08/12/15 10:13:25]
Posted: Mon Dec 15, 2008 9:28 pm
by cordel
Dec 15 08:54:27 camaras-desktop zmc_dvideo[6249]: ERR [Failed to open video device /dev/video: No such file or directory]
All your other errors are a result of this one.
Shared memory sections are created after a valid capture and information is stored there.
If an image was not able to be captured, then nothing can be placed in shared memory.
Try using /dev/video0 instead of the symlink.
What permissions does /dev/video0 have?
Posted: Thu Dec 18, 2008 12:04 pm
by effie_jayx
Thanks I was able to fix the sahred memory issue by providing more memory by doing
Code: Select all
echo 536870912 >/proc/sys/kernel/shmall
and
Code: Select all
echo 536870912 >/proc/sys/kernel/shmmax
I also fixed the litle typo in a resource for channel 4,
now the issue remains... only one channel with video and the other three are black with red stripes.
Posted: Mon Jul 27, 2009 1:31 pm
by spychodelics
i do have a kinda similar problem here
Code: Select all
Linux video capture interface: v2.00
bttv: driver version 0.9.18 loaded
bttv: using 32 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv 0000:04:01.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
bttv0: Bt878 (rev 17) at 0000:04:01.0, irq: 22, latency: 32, mmio: 0xfaffe000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
IRQ 22/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
bttv0: tuner absent
bttv0: the autoload option is obsolete.
bttv0: use option msp3400, tda7432 or tvaudio to
bttv0: override which audio module should be used.
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
running Archlinux with zoneminder 1.24.2 and dont get the pico card running anymore. Due a broken harddisk i had to set up a new system.
1.23.2 was running fine since then.
I do have added the option bttv line as pastet in the wiki, but i cant get a picture out of my cam.
I do have a PAL 640x480 cam, but since there is changed so much, i dont know anymore what to do.
Ive tryed some different configurations with PAL "RGB,BGR" and so far, i ve added the shhmax to get some higher resolutions. But in no way i get a picture.