Hi,
I am using i2c-991123 and bttv-v4l2-000321 to simply capture PAL
images from the composite source input using:
vctrl /dev/video0 -w 384 -h 288 -b 24 -i 1 -p
and
vcrtl /dev/video0
reports
384x288 @ 24 bpp from input 1 (composite(0))
The inputs are: 0 = Television: 1 = Composite (0): 2 = S-Video:
The video standard is PAL
and
cat /dev/video0 |rawtoppm -bgr 384 288 > image.ppm
works just fine !!!
However when I try to it set to 768x576x24 using:
vctrl /dev/video0 -w 768 -h 576 -b 24 -i 1 -p
then
vctrl /dev/video0
reports
384x288 @ 24 bpp from input 1 (composite(0))
The inputs are: 0 = Television: 1 = Composite (0): 2 = S-Video:
The video standard is PAL
It appears that it doesn't accept the image size I set and of course my
corresponding cat command ends up with a garbled image.
Has the error in the attached /var/log/messages go anything to do with this ?
Is there something I'm missing or is v4l2 vctrl and videodev unable to do
768x576x24 on a HauppaugeTV-GO ?
Am I better off with V4L and not V4L2 and borrowing a capture application ?
Any suggestions ?
Best Regards
Neville
Other relevant details begin here.........
-----------------------------------------------------------------------------
Card type is: HauppaugeTV GO (model 708)
My box has RedHat 6.2 Kernel 2.2.14-5.0
I load everything with "Justin Schoeman's" script ?
|#!/bin/sh
|
|if test "$UID" = "0"; then
| # running as root anyway, don't need sudo
| INSMOD="/sbin/insmod"
| RMMOD="/sbin/rmmod"
| MODPROBE="/sbin/modprobe"
|else
| INSMOD="sudo /sbin/insmod"
| RMMOD="sudo /sbin/rmmod"
| MODPROBE="sudo /sbin/modprobe"
|fi
|
|# handy functions for rmmod/insmod
|function xrmmod () {
| grep -qe "^$1" /proc/modules || return
| echo rmmod $1
| $RMMOD $1 || exit 1
|}
|function xinsmod () {
| echo insmod $*
| $INSMOD $* || exit 1
|}
|function xmodprobe () {
| echo modprobe $*
| $MODPROBE $* || exit 1
|}
|
|# prepare for crashing the box -- flush dirty buffers
|sync; sleep 1; sync
|
|# By default this doesn't load i2c modules.
|# This also lists the audio modules that (might) work.
|
|# kill old modules ...
|xrmmod msp3400
|xrmmod tea6300
|xrmmod tda8425
|xrmmod tuner
|xrmmod bttv2
|xrmmod v4l2-cc
|xrmmod videodev
|xmodprobe -r i2c-dev
|xmodprobe -r i2c-algo-bit
|xmodprobe -r i2c-core
|
|# ... and load the new ones
|xmodprobe i2c-core i2c_debug=0
|xmodprobe i2c-algo-bit # bit_test=1 bit_scan=0
|xmodprobe i2c-dev # this is usually not needed
|xinsmod v4l2/videodev.o
|xinsmod v4l2/v4l2-cc.o
|xinsmod btv/bttv2.o card=10 # readahead=1 card=1 pll=0
|xinsmod misc/tuner.o ignore=-1,0x69 afc=1 # type=5
|xinsmod audio/msp3400.o # debug=1
|#xinsmod audio/tda8425.o debug=1
|#xinsmod audio/tea6300.o debug=1
|
Output of lsmod:
Module Size Used by
msp3400 10248 0 (unused)
tuner 3408 0
bttv2 61920 0
v4l2-cc 10172 0 [msp3400 bttv2]
videodev 16068 2 [bttv2 v4l2-cc]
i2c-dev 2616 0 (unused)
i2c-algo-bit 6888 1 [bttv2]
i2c-core 9756 0 [msp3400 tuner bttv2 i2c-dev i2c-algo-bit]
lockd 30344 1 (autoclean)
sunrpc 52132 1 (autoclean) [lockd]
rtl8139 11748 1 (autoclean)
cmpci 19420 0
soundcore 2628 4 [cmpci]
/var/log/messages:
Jul 20 23:52:37 stealth kernel: i2c-core.o: i2c core module
Jul 20 23:52:37 stealth kernel: i2c-algo-bit.o: i2c bit algorithm module
Jul 20 23:52:37 stealth kernel: i2c-dev.o: i2c /dev entries driver module
Jul 20 23:52:38 stealth kernel: Video for Linux Two: V0.20 alpha. Major device:
81
Jul 20 23:52:38 stealth kernel: bttv_v4l2: Found Bt848 compatible decoder 0.
Jul 20 23:52:38 stealth kernel: bttv_v4l2: Brooktree Bt878 (rev 2), irq: 11
Jul 20 23:52:38 stealth kernel: i2c-dev.o: Registered 'bt848 #0' as minor 0
Jul 20 23:52:38 stealth kernel: bttv_cards: Using card type: Hauppauge new
(Bt878)
Jul 20 23:52:38 stealth kernel: Hauppauge eeprom: tuner=Philips FI1216 MK2 (5)
Jul 20 23:52:38 stealth kernel: bttv_v4l2: hactive 0x00a0, vdelay 0x0020, hscale
0x4ca7, hdelay 0x0020, vscale 0x1d34, vactive 0x0240, crop 0x0020
Jul 20 23:52:38 stealth kernel: V4L2: Registered "BTTV2 capture driver (0)" as
char device 81, 0
Jul 20 23:52:38 stealth kernel: V4L2: Registered "BTTV2 videodata driver (0)" as
char device 81, 224
Jul 20 23:52:38 stealth kernel: tuner: chip found @ 0x61
Jul 20 23:52:38 stealth kernel: tune daemon started
Jul 20 23:52:38 stealth kernel: tuner: afc thread started
Jul 20 23:53:03 stealth kernel: bttv_v4l2: hactive 0x0180, vdelay 0x0020, hscale
0x168e, hdelay 0x004c, vscale 0x0000, vactive 0x0240, crop 0x0021
Jul 20 23:53:03 stealth kernel: bttv_v4l2: irq loop!
Jul 20 23:53:13 stealth kernel: bttv_v4l2: hactive 0x0180, vdelay 0x0020, hscale
0x168e, hdelay 0x004c, vscale 0x0000, vactive 0x0240, crop 0x0021
Jul 20 23:53:16 stealth kernel: bttv_v4l2: risc_irq not responding -> doing it
the hard way.
Jul 20 23:53:32 stealth kernel: bttv_v4l2: hactive 0x0180, vdelay 0x0020, hscale
0x168e, hdelay 0x004c, vscale 0x0000, vactive 0x0240, crop 0x0021
Jul 20 23:53:33 stealth kernel: bttv_v4l2: risc_irq not responding -> doing it
the hard way.
--
Neville Scott
Hewlett Packard
50 McDougall Street
Milton, QLD, 4064
Phone: (07) 3858 2246 (direct)
Phone: (07) 3858 2222 (switch)
Fax: (07) 3369 6280
Mobile: 0407 675 818
TelNet: 858-2246
Email: [EMAIL PROTECTED]
OpenMail: SCOTT,NEVILLE /HP-Australia,om4
--
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.