Date: Thu, 18 Jan 2001 15:34:19 +0000 From: Wim Livens <wim@livens.net> To: freebsd-multimedia@freebsd.org Cc: wim@livens.net Subject: camserv: how to select PAL format ? Message-ID: <20010118153419.C33608@krijt.livens.net>
next in thread | raw e-mail | index | archive | help
I'm trying to get camserv working with a bt878 and a PAL camera.
The camera works fine under fxtv and vic by selecting:
input=0 (Video)
format=PAL (BDGHI)
There doesn't seem to be a way to select the format with camserv and
the default seems to be the wrong setting. I.e. I only get a noise or
a blue image.
I tried to hardcode setting the format to PAL by the patch below.
(copy paste from fxtv)
This doen't solve it however. I only get a different type of noise.
Any other ioctl's I need to do ? Other suggestions ?
Thanks,
Wim Livens.
--
video_fbsd_bttv.c.orig
*** video_fbsd_bttv.c Thu Jan 18 00:41:45 2001
--- video_fbsd_bttv.c.orig Wed Jan 17 23:01:10 2001
***************
*** 319,334 ****
METEOR_INPUT_DEV2, METEOR_INPUT_DEV3,
METEOR_INPUT_DEV_SVIDEO };
- /* dirty hack to force PAL format */
- long larg;
-
- larg = BT848_IFORM_F_PALBDGHI;
- if (ioctl( fbttv_dev->bttv_fd, METEORSFMT, &larg ) < 0 ) {
- camserv_log( MODNAME, "Can't set PAL input format");
- return -1;
- } else {
- camserv_log( MODNAME, "Forced format to PAL (=%d) (this is a hack)", larg);
- }
portnum = camconfig_query_def_int( ccfg, fbttv_dev->section_name,
FBTTVMOD_DEV_PORT, FBTTV_DEF_PORT );
if( portnum >= array_elem( portdata ) ){
--- 319,324 ----
***************
*** 336,348 ****
portnum = FBTTV_DEF_PORT;
}
actport = portdata[ portnum ];
-
- fprintf(stderr, "port set to %d\n", portnum);
-
if( ioctl( fbttv_dev->bttv_fd, METEORSINPUT, &actport ) < 0 ){
if( portnum != FBTTV_DEF_PORT ) {
camserv_log( MODNAME, "Port %d invalid -- Trying default of %d",
--- 326,332 ----
FreeBSD 4.1-RELEASE #1: Sat Jan 6 02:05:15 GMT 2001
wim@gateway:/usr/src/sys/compile/P133
bktr0: <BrookTree 878> mem 0xfffbd000-0xfffbdfff irq 10 at device 15.0 on pci0
iicbb0: <I2C generic bit-banging driver> on bti2c0
iicbus0: <Philips I2C bus> on iicbb0 master-only
smbus0: <System Management Bus> on bti2c0
bktr0: Hauppauge Model 61294 D129
Hauppauge WinCast/TV, Philips PAL I tuner, remote control.
path /usr/local/lib/libvideo_fbsd_bttv.so
port 2
#width 576
width 144
#height 384
height 96
autobright 100
#brightness 0
#chroma 180
#contrast 1000
channelset 1
channel 3
camserv v0.42 - by Jon Travis (jon@dsndata.com)
Syntax: camserv <cfg file>
Attempting to use installation default: /usr/local/share/camserv.cfg
01-18 15:20 [camconfig] Using default of "2359296" for [main]:shm_alloc
01-18 15:20 [shm] shm key is 503323375
01-18 15:20 [mainloop] Setup signals
01-18 15:20 [fbsd_bttv] [video_fbsd_bttv]:device_path unset, defaulting to /dev/bktr0
01-18 15:20 [fbsd_bttv] [video_fbsd_bttv]:tuner_path unset, defaulting to /dev/tuner0
01-18 15:20 [filter] Loading filter [time_stamp]
01-18 15:20 [filter] Loading filter [jpg_filter]
01-18 15:20 [fbsd_bttv] Forced format to PAL (=3) (this is a hack)
port set to 2
01-18 15:20 [fbsd_bttv] Camera Geometry: 144 x 96
01-18 15:20 [camconfig] Using default of "0" for [video_fbsd_bttv]:brightness
01-18 15:20 [camconfig] Using default of "100" for [video_fbsd_bttv]:chroma
01-18 15:20 [camconfig] Using default of "100" for [video_fbsd_bttv]:contrast
01-18 15:20 [fbsd_bttv] channelset set to 1
01-18 15:20 [fbsd_bttv] channel set to 3
01-18 15:21 [mainloop] Accepted new socket: 212.35.96.130
01-18 15:21 [mainloop] Error managing client! (Picture may not be taken yet)
01-18 15:22 [mainloop] Closing socket :212.35.96.130
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010118153419.C33608>
