From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 02:09:54 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B430016A4CE for ; Sun, 21 Mar 2004 02:09:54 -0800 (PST) Received: from cydem.org (h68-149-254-167.ed.shawcable.net [68.149.254.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF99543D39 for ; Sun, 21 Mar 2004 02:09:50 -0800 (PST) (envelope-from soralx@cydem.org) Received: by cydem.org (Postfix/FreeBSD, from userid 426) id 3E2DC392A8; Sun, 21 Mar 2004 03:09:50 -0700 (MST) Received: from soralx.cydem.org (h68-149-254-171.ed.shawcable.net [68.149.254.171]) by cydem.org (Postfix/FreeBSD) with ESMTP id AB22D38C46; Sun, 21 Mar 2004 03:09:49 -0700 (MST) From: To: yann@kierun.org, freebsd-multimedia@freebsd.org Date: Sun, 21 Mar 2004 03:09:48 -0700 User-Agent: KMail/1.5 References: <20040317100204.GA95488@kierun.org> In-Reply-To: <20040317100204.GA95488@kierun.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403210309.48855.soralx@cydem.org> Subject: Re: Surround sound. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 10:09:54 -0000 > I have a Creative sound blaster card with a 4:1 surround sound system -- > also from Creative. It works fine under windows but when I try to use > it with BSD, I can only get the front two speakers to output sound. > Does anyone know how to solve this? you'll have to a hack for now to copy the main stereo output to rear speakers input by hardwiring the 2 speaker system input jacks together and with the output from the sound card Timestamp: 0x405D6917 [SorAlx] http://cydem.org.ua/ From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 06:17:04 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D36616A4CE for ; Sun, 21 Mar 2004 06:17:04 -0800 (PST) Received: from mail1.navab.net (mail1.navab.net [80.84.32.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFD0343D2F for ; Sun, 21 Mar 2004 06:17:02 -0800 (PST) (envelope-from u431839553@navab.net) Received: from navab.net (xDSL-42-42.citynetnassjo.se [80.84.42.42]) by mail1.navab.net (8.11.6/8.11.6) with ESMTP id i2LEH1B30302 for ; Sun, 21 Mar 2004 15:17:01 +0100 Message-ID: <405DA3E1.2070805@navab.net> Date: Sun, 21 Mar 2004 15:17:05 +0100 From: u431839553@navab.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040320 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <200403210528.i2L5SOv13936@jwlab.FEITH.COM> In-Reply-To: <200403210528.i2L5SOv13936@jwlab.FEITH.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 14:17:04 -0000 FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC Followed the steps, the patch rejected: iicbb.c.rej: *************** *** 340,344 **** } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); --- 361,366 ---- } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); + DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); I replaced the three DRIVER_MODULE lines in iicbb.c with the four DRIVER_MODULE lines from iicbb.c.rej, did the cxm_extract_fm stuff, rebuilt the kernel etc. When I load the modules, I get: cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: LG Innotek TPI8PSB11D tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP3415G-B8 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2040011 No decoder firmware version. When I try cat /dev/cxm0 > file.mpg I get "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video decoder isn't locked". From my Linux box: tvee: Hauppauge: model=32034, rev=B148, serial#=6914446 tvee: tuner=LG TP18PSB11D (idx=48, type=29) tvee: tuner fmt=PAL(B/G) (eeprom=0x04, v4l2=0x00000007) tvee: audio_processor=MSP3415 (type=6) >[ This is the Mar 20, 2004 snapshot of my source tree. Included are > changes to support some more ioctls and various PAL tuners. ] > >To use the Hauppauge PVR-250 / 350 on FreeBSD 4.9 / 5.2: > > 1) Use patch to apply Patch.iicbb so cxm can use the i2c bus and > avoid a crash when unloading. > > 2) Unshar the enclosed archive into /sys. > > 3) Place a current version of hcwpvrp2.sys from the > Hauppauge drivers into /sys/dev/cxm. Extract the > the firmware by: > > # cd /sys/dev/cxm > # cc -o cxm_extract_fw cxm_extract_fw.c > # ./cxm_extract_fw hcwpvrp2.sys > > 4) Rebuilt your kernel with: > > device iicbus > device iicbb > > as part of the configuration. > > 5) Install the new kernel and reboot. > > 6) Make and install the cxm driver by: > > # cd /sys/modules/cxm > # make > # cp cxm/cxm.ko cxm_iic/cxm_iic.ko /modules > # kldload cxm_iic > # kldload cxm > > At which point your console should say something like: > > cxm0: mem 0xd8000000-0xdbffffff irq 12 > at device 10 .0 on pci0 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > cxm0: Philips FI1236 MK2 tuner > cxm0: SAA7115 rev 1 video decoder > cxm0: MSP3435G-B6 audio decoder > cxm0: IR Remote > cxm0: encoder firmware version 0x2040011 > cxm0: decoder firmware version 0x2020023 > From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 10:22:56 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E46A16A4CE for ; Sun, 21 Mar 2004 10:22:56 -0800 (PST) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (does-d9b90aeb.pool.mediaWays.net [217.185.10.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30D2143D2F for ; Sun, 21 Mar 2004 10:22:52 -0800 (PST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:d9b9:aeb:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i2LIMfg01423 verified NO); Sun, 21 Mar 2004 19:22:45 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i2LIMfp01422; Sun, 21 Mar 2004 19:22:41 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sun, 21 Mar 2004 19:22:41 +0100 (CET) Message-Id: <200403211822.i2LIMfp01422@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL To: Michael Reifenberger From: Barry Bouwsma References: <20040222234549.R71343@fw.reifenberger.com> cc: freebsd-multimedia@freebsd.org Subject: Re: S/PDIF support X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 18:22:56 -0000 [ipv6-only address above] A few weeks late for this reply, but I hope it's still relevant... > is S/PDIF I/O supported under FreeBSD (-current)? I have had it working in -stable; should be no problem with -current, though I have needed to make a few source hacks... > If yes, which cards (esp. S/PDIF input)? I've had success with two particular cards, both of which should be available in .de ... The FM801-based 512i card from TerraTec has an optical s/pdif output, which Just Works in parallel with the normal line/speaker output -- provided you've hacked the chip detection to enable audio (patches for this get mentioned every few months on the lists). The card itself has no s/pdif input, while the fm801 chip should be capable of such, perhaps on a different card, probably with additional register frobbing. Playback has been very pleasing with my hardware, at the bitrates I use. This card is no longer being produced, but can probably still be found. There are apparently several cards based on the CMI8738 chip, some of which have both optical and electrical s/pdif in- and outputs -- the particular one I got was from Typhoon, and should be had for some EUR30 or so, a full 6-channel card. The support for this chip seems to be better under NetBSD than FreeBSD (more options), and FBSD s/pdif output needs to be enabled with a sysctl. I think it's either/or line or s/pdif out with FreeBSD at present. This card seems to be limited to 48 and 44,1kHz sample rate audio -- at least it doesn't play as nicely with my hardware as the FM801-based card. But my hardware is a bit suspect. I've hacked a few lines in the source in order to switch the input from analog mixer (which is rather noisy compared to other available cards) to one of the s/pdif inputs, to enable me to record. This can be done dynamically with NetBSD, while my simplistic hack gives me loadable modules with either optical or coaxial input support -- fine for me since I only need one of them. Probably someone with a bit of time and more skill can hack a sysctl akin to the spdif-output to select one of the possible inputs for recording. This card does not record 32kHz samplerate audio; only 44,1 and 48Khz based on my tests. The electrical input appears to need to be driven by a 5V signal -- one of my sources provides nothing; my other sources probably have ground loop problems that have given me distorted sound on all but one coax-in test. Optical input works great. In the absence of an s/pdif signal to record, my FreeBSD -stable reports a channel dead timeout, and seems to partially freeze the system until the recording process is killed. So there needs to be some input to the card for recording -- which recording is made at the actual sample rate of the s/pdif signal, naturally. I'm using multiple cards in one machine with some issues that I haven't bothered to track down as a problem with my hardware or with FreeBSD, but otherwise my needs are met, mostly. I have a small bit of static in my optical recordings made on the machine with two cards; I haven't noticed this slight crackling in recordings made on a different machine with a single card, but more research is necessary. With that out of the way, note that by default, FreeBSD cannot record from the s/pdif inputs. I suggest an inspection of the three NetBSD source files (pci/cmpci*) in comparison to FreeBSD's (based in part on NetBSD) as a basis for better hacks to enable recording, as well as hints as to further things this card/chip is capable of. I've seen two different makes of card with this chip and full s/pdif interconnections, as well as an identical-looking board for half the price without any s/pdif connectors and only 2 (or 4?) channel support. I suspect it should be no problem to find a suitable card. Those are the only s/pdif cards I've played with so far. Hope this late information is helpful, if only for the archives. barry bouwsma From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 14:18:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B05D16A4CE for ; Sun, 21 Mar 2004 14:18:49 -0800 (PST) Received: from teena.dahlen.ws (h96n2fls33o990.telia.com [213.67.6.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87FB043D2D for ; Sun, 21 Mar 2004 14:18:48 -0800 (PST) (envelope-from andreas@dahlen.ws) Received: from mikaela (mikaela.dahlen.ws [10.0.1.100]) by teena.dahlen.ws (8.12.9p2/8.12.8) with ESMTP id i2LMIrKL071291 for ; Sun, 21 Mar 2004 23:18:53 +0100 (CET) (envelope-from andreas@dahlen.ws) From: =?iso-8859-1?Q?Andreas_Dahl=E9n?= To: Date: Sun, 21 Mar 2004 23:17:00 +0100 Message-ID: <005401c40f92$3b0f0b20$6401000a@mikaela> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <405DA3E1.2070805@navab.net> X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.64 Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 22:18:49 -0000 Hi! I got the same problem, i.e. loading of the driver (LG Innotek tuner) works fine, but when I try to do "cat /dev/cxm0 > file.mpeg", I get the same error; "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video decoder isn't locked". I investigated it a bit further and found that it is the function "cxm_saa7115_detected_fps" in cxm_video.c that the error is raised. /Andreas -----Original Message----- From: owner-freebsd-multimedia@freebsd.org [mailto:owner-freebsd-multimedia@freebsd.org] On Behalf Of u431839553@navab.net Sent: den 21 mars 2004 15:17 To: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC Followed the steps, the patch rejected: iicbb.c.rej: *************** *** 340,344 **** } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); --- 361,366 ---- } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); + DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); I replaced the three DRIVER_MODULE lines in iicbb.c with the four DRIVER_MODULE lines from iicbb.c.rej, did the cxm_extract_fm stuff, rebuilt the kernel etc. When I load the modules, I get: cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: LG Innotek TPI8PSB11D tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP3415G-B8 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2040011 No decoder firmware version. When I try cat /dev/cxm0 > file.mpg I get "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video decoder isn't locked". From my Linux box: tvee: Hauppauge: model=32034, rev=B148, serial#=6914446 tvee: tuner=LG TP18PSB11D (idx=48, type=29) tvee: tuner fmt=PAL(B/G) (eeprom=0x04, v4l2=0x00000007) tvee: audio_processor=MSP3415 (type=6) >[ This is the Mar 20, 2004 snapshot of my source tree. Included are > changes to support some more ioctls and various PAL tuners. ] > >To use the Hauppauge PVR-250 / 350 on FreeBSD 4.9 / 5.2: > > 1) Use patch to apply Patch.iicbb so cxm can use the i2c bus and > avoid a crash when unloading. > > 2) Unshar the enclosed archive into /sys. > > 3) Place a current version of hcwpvrp2.sys from the > Hauppauge drivers into /sys/dev/cxm. Extract the > the firmware by: > > # cd /sys/dev/cxm > # cc -o cxm_extract_fw cxm_extract_fw.c > # ./cxm_extract_fw hcwpvrp2.sys > > 4) Rebuilt your kernel with: > > device iicbus > device iicbb > > as part of the configuration. > > 5) Install the new kernel and reboot. > > 6) Make and install the cxm driver by: > > # cd /sys/modules/cxm > # make > # cp cxm/cxm.ko cxm_iic/cxm_iic.ko /modules > # kldload cxm_iic > # kldload cxm > > At which point your console should say something like: > > cxm0: mem 0xd8000000-0xdbffffff irq 12 > at device 10 .0 on pci0 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > cxm0: Philips FI1236 MK2 tuner > cxm0: SAA7115 rev 1 video decoder > cxm0: MSP3435G-B6 audio decoder > cxm0: IR Remote > cxm0: encoder firmware version 0x2040011 > cxm0: decoder firmware version 0x2020023 > _______________________________________________ freebsd-multimedia@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 15:31:37 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A72E16A4CE for ; Sun, 21 Mar 2004 15:31:37 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4E8543D1D for ; Sun, 21 Mar 2004 15:31:36 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2LNVTIt006999; Sun, 21 Mar 2004 18:31:29 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2LNVRL14391; Sun, 21 Mar 2004 18:31:27 -0500 (EST) Date: Sun, 21 Mar 2004 18:31:27 -0500 (EST) From: John Wehle Message-Id: <200403212331.i2LNVRL14391@jwlab.FEITH.COM> To: multimedia@freebsd.org Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: u431839553@navab.net Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 23:31:37 -0000 > cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > iicbus0: on iicbb0 master-only > cxm0: LG Innotek TPI8PSB11D tuner > cxm0: SAA7115 rev 1 video decoder > cxm0: MSP3415G-B8 audio decoder > cxm0: IR Remote > cxm0: encoder firmware version 0x2040011 > > No decoder firmware version. The iTVC16 which is used on the PVR-250 version 2 doesn't implement a decoder which is why the decoder firmware version isn't displayed. > When I try cat /dev/cxm0 > file.mpg I get > "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video > decoder isn't locked". The driver defaults to channel 4 which is mapped to 62.25 MHz by the BG channel map used by the driver. Is something broadcast on that frequency in your area and do you have a good antenna or cable connection attached to the coax connector on the card? Enclosed is a little utility for changing channels and selecting the input. -- John ----------------8<----------------------8<---------------------------- #include #include #include #include #include #include #include /****************************************************************************/ /* setchannel.c - Set the channel of the bktr tuner card. */ /* */ /* COMPILE WITH: cc -o setchannel setchannel.c */ /****************************************************************************/ static void usage() { printf("Usage: setchannel <-a {on|off}|-c|-s|-t|-t channel|channel>\n" " -a Enable / disable AFC.\n" " -c Select composite input.\n" " -s Select svideo input.\n" " -t Select tuner.\n"); } int main( int argc, char *argv[] ) { int afc; int c; int status; int tfd; unsigned int channel; unsigned long device; afc = -1; channel = 0; device = 0; status = 0; while ((c = getopt (argc, argv, "a:cst")) != -1) switch (c) { case 'a': if (strcasecmp (optarg, "on") == 0) afc = 1; else if (strcasecmp (optarg, "off") == 0) afc = 0; else { usage (); exit (1); } break; case 'c': device = METEOR_INPUT_DEV2; break; case 's': device = METEOR_INPUT_DEV_SVIDEO; break; case 't': device = METEOR_INPUT_DEV1; break; default: usage (); exit (1); } if ( optind < argc) channel = atoi( argv[optind] ); if (afc == -1 && ! channel && ! device) { usage (); exit (1); } tfd = open( "/dev/cxm0", O_RDONLY ); if ( tfd < 0 ) { perror( "open() of /dev/cxm0 failed." ); exit(1); } if (afc != -1) if ( ioctl( tfd, TVTUNER_SETAFC, &afc ) < 0 ) { perror( "ioctl( tfd, TVTUNER_SETAFC ) failed." ); status = 1; } if (device) if ( ioctl( tfd, METEORSINPUT, &device ) < 0 ) { perror( "ioctl( tfd, METEORSINPUT ) failed." ); status = 1; } if (channel) if ( ioctl( tfd, TVTUNER_SETCHNL, &channel ) < 0 ) { perror( "ioctl( tfd, TVTUNER_SETCHNL ) failed." ); status = 1; } close ( tfd ); exit ( status ); } ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 17:09:08 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F63C16A4CE for ; Sun, 21 Mar 2004 17:09:08 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D233143D2F for ; Sun, 21 Mar 2004 17:09:07 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004032201090501300e4m00e>; Mon, 22 Mar 2004 01:09:06 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA27195; Sun, 21 Mar 2004 17:09:19 -0800 (PST) Date: Sun, 21 Mar 2004 17:09:18 -0800 (PST) From: Julian Elischer To: John Wehle In-Reply-To: <200403212331.i2LNVRL14391@jwlab.FEITH.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: multimedia@freebsd.org cc: u431839553@navab.net Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 01:09:08 -0000 If I was building a little TV recorder, and wanted to use this driver, is thre a way of telling which Hauppauge cards I can and can not buy? Looking on their web page everything seems to be called "WinTV something" and model numbers seem to not be used very much... On Sun, 21 Mar 2004, John Wehle wrote: > > cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 > > cxm_iic0: on cxm0 > > iicbb0: on cxm_iic0 > > iicbus0: on iicbb0 master-only > > cxm0: LG Innotek TPI8PSB11D tuner > > cxm0: SAA7115 rev 1 video decoder > > cxm0: MSP3415G-B8 audio decoder > > cxm0: IR Remote > > cxm0: encoder firmware version 0x2040011 > > > > No decoder firmware version. > > The iTVC16 which is used on the PVR-250 version 2 doesn't implement > a decoder which is why the decoder firmware version isn't displayed. > > > When I try cat /dev/cxm0 > file.mpg I get > > "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video > > decoder isn't locked". > > The driver defaults to channel 4 which is mapped to 62.25 MHz by the > BG channel map used by the driver. Is something broadcast on that > frequency in your area and do you have a good antenna or cable > connection attached to the coax connector on the card? > > Enclosed is a little utility for changing channels and selecting the > input. > > -- John > ----------------8<----------------------8<---------------------------- > #include > #include > #include > #include > #include > #include > #include > > /****************************************************************************/ > /* setchannel.c - Set the channel of the bktr tuner card. */ > /* */ > /* COMPILE WITH: cc -o setchannel setchannel.c */ > /****************************************************************************/ > > static void > usage() > { > printf("Usage: setchannel <-a {on|off}|-c|-s|-t|-t channel|channel>\n" > " -a Enable / disable AFC.\n" > " -c Select composite input.\n" > " -s Select svideo input.\n" > " -t Select tuner.\n"); > } > > int main( int argc, char *argv[] ) > { > int afc; > int c; > int status; > int tfd; > unsigned int channel; > unsigned long device; > > afc = -1; > channel = 0; > device = 0; > status = 0; > > while ((c = getopt (argc, argv, "a:cst")) != -1) > switch (c) { > case 'a': > if (strcasecmp (optarg, "on") == 0) > afc = 1; > else if (strcasecmp (optarg, "off") == 0) > afc = 0; > else { > usage (); > exit (1); > } > break; > > case 'c': > device = METEOR_INPUT_DEV2; > break; > > case 's': > device = METEOR_INPUT_DEV_SVIDEO; > break; > > case 't': > device = METEOR_INPUT_DEV1; > break; > > default: > usage (); > exit (1); > } > > if ( optind < argc) > channel = atoi( argv[optind] ); > > if (afc == -1 && ! channel && ! device) { > usage (); > exit (1); > } > > tfd = open( "/dev/cxm0", O_RDONLY ); > if ( tfd < 0 ) { > perror( "open() of /dev/cxm0 failed." ); > exit(1); > } > > if (afc != -1) > if ( ioctl( tfd, TVTUNER_SETAFC, &afc ) < 0 ) { > perror( "ioctl( tfd, TVTUNER_SETAFC ) failed." ); > status = 1; > } > > if (device) > if ( ioctl( tfd, METEORSINPUT, &device ) < 0 ) { > perror( "ioctl( tfd, METEORSINPUT ) failed." ); > status = 1; > } > > if (channel) > if ( ioctl( tfd, TVTUNER_SETCHNL, &channel ) < 0 ) { > perror( "ioctl( tfd, TVTUNER_SETCHNL ) failed." ); > status = 1; > } > > close ( tfd ); > exit ( status ); > } > ------------------------------------------------------------------------- > | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | > | John Wehle | Fax: 1-215-540-5495 | | > ------------------------------------------------------------------------- > > From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 02:06:37 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9204016A4CE for ; Mon, 22 Mar 2004 02:06:37 -0800 (PST) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BEA243D2F for ; Mon, 22 Mar 2004 02:06:37 -0800 (PST) (envelope-from mike@reifenberger.com) Received: from fwd08.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1B5M5n-0000je-04; Mon, 22 Mar 2004 10:51:35 +0100 Received: from fw.reifenberger.com (GoSwDQZHQeoVkNtmaqFbzmimQ0HsnnpqI-WFY80DT1qUEXfdJ9c0YL@[217.232.242.108]) by fmrl08.sul.t-online.com with esmtp id 1B5M5Z-1aehtY0; Mon, 22 Mar 2004 10:51:21 +0100 Received: from localhost (mike@localhost)i2M9oIIP045701; Mon, 22 Mar 2004 10:51:21 +0100 (CET) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Mon, 22 Mar 2004 10:50:18 +0100 (CET) From: Michael Reifenberger To: Barry Bouwsma In-Reply-To: <200403211822.i2LIMfp01422@Mail.NOSPAM.DynDNS.dK> Message-ID: <20040322102351.Q45618@fw.reifenberger.com> References: <20040222234549.R71343@fw.reifenberger.com> <200403211822.i2LIMfp01422@Mail.NOSPAM.DynDNS.dK> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Seen: false X-ID: GoSwDQZHQeoVkNtmaqFbzmimQ0HsnnpqI-WFY80DT1qUEXfdJ9c0YL@t-dialin.net cc: freebsd-multimedia@freebsd.org Subject: Re: S/PDIF support X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 10:06:37 -0000 On Sun, 21 Mar 2004, Barry Bouwsma wrote: > Date: Sun, 21 Mar 2004 19:22:41 +0100 (CET) > From: Barry Bouwsma > > To: Michael Reifenberger > Cc: freebsd-multimedia@freebsd.org > Subject: Re: S/PDIF support > Thanks for your helpful comments! Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 09:19:59 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AB1016A4CE for ; Mon, 22 Mar 2004 09:19:59 -0800 (PST) Received: from mail1.navab.net (mail1.navab.net [80.84.32.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21A8143D5A for ; Mon, 22 Mar 2004 09:19:58 -0800 (PST) (envelope-from u431839553@navab.net) Received: from navab.net (xDSL-42-42.citynetnassjo.se [80.84.42.42]) by mail1.navab.net (8.11.6/8.11.6) with ESMTP id i2MHJvB19890 for ; Mon, 22 Mar 2004 18:19:57 +0100 Message-ID: <405F2042.30005@navab.net> Date: Mon, 22 Mar 2004 18:20:02 +0100 From: u431839553@navab.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040320 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <200403212331.i2LNVRL14391@jwlab.FEITH.COM> In-Reply-To: <200403212331.i2LNVRL14391@jwlab.FEITH.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 17:19:59 -0000 >>When I try cat /dev/cxm0 > file.mpg I get >>"cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video >>decoder isn't locked". >> >> > >The driver defaults to channel 4 which is mapped to 62.25 MHz by the >BG channel map used by the driver. Is something broadcast on that >frequency in your area and do you have a good antenna or cable >connection attached to the coax connector on the card? > > No broadcast there. Only one I got is my satellite on 647 MHz (ch 43), but I use the composite input in Linux. >Enclosed is a little utility for changing channels and selecting the >input. > > I get errors when using setchannel: # setchannel -c ioctl( tfd, METEORSINPUT ) failed.: Invalid argument # dmesg cxm0: video decoder failed to lock When using the -t option: ioctl( tfd, METEORSINPUT ) failed.: Invalid argument ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument # dmesg cxm0: video decoder failed to lock cxm0: audio decoder failed to lock From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 11:35:30 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F77E16A4CE for ; Mon, 22 Mar 2004 11:35:30 -0800 (PST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5881A43D39 for ; Mon, 22 Mar 2004 11:35:29 -0800 (PST) (envelope-from christoph.schnauss@berlin.de) Received: (qmail 22650 invoked by uid 65534); 22 Mar 2004 19:35:28 -0000 Received: from pD958790F.dip.t-dialin.net (HELO pc2) (217.88.121.15) by mail.gmx.net (mp015) with SMTP; 22 Mar 2004 20:35:28 +0100 X-Authenticated: #17806964 Message-ID: <000501c41044$da070450$0200a8c0@pc2> From: =?iso-8859-1?Q?Christoph_Schnau=DF?= To: Date: Mon, 22 Mar 2004 20:35:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 19:35:30 -0000 > Enclosed is a current snapshot of my source tree which supports > the LG Innotek tuners. Thanks. Hope, it is the solution. > > he falls out to the "db>"-prompt. > This happens when cxm_attach fails or cxm_detach is called due > to a problem with iicbb. Now, with your new source, it works without any failure messages. Like the others, on the console, I can find now: cxm0: mem 0xf0000000-0xf3ffffff irq 9 at device 13.0 on pci2 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only iicsmb0: on iicbus0 smbus1: on iicsmb0 smb1: on smbus1 cxm0: LG Innotek TPI8PSB11D tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP3415G-B8 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2040011 But: this is only the driver. Just now I'll need a program like xawtv (e.g. from ports/multimedia/xawtv), which is working fine with BT8xx-Cards. Typing "xawtv -hwscan" should print a list of available devices, and it shows somewhat like: "This is xawtv-3.91, running on FreeBSD/i386 (5.2-RELEASE) looking for available devices port 53-53 type : Xvideo, image scaler name : Matrox-G Series Backend Scaler" There is no device :-( And, typing "xawtv -c /dev/cxm0", it says: "This is xawtv-3.91, running on FreeBSD/i386 (5.2-RELEASE) no video grabber device available" For the same time dmesg says too: cxm0: video decoder failed to lock cxm0: audio decoder failed to lock You asked für broadcasts. May be it helps, to have a look of the sources of xawtv, which has some lists. They are helpfull for searching channels. Christoph S. From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 16:29:53 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CD7216A4CE for ; Mon, 22 Mar 2004 16:29:53 -0800 (PST) Received: from mpls-qmqp-04.inet.qwest.net (mpls-qmqp-04.inet.qwest.net [63.231.195.115]) by mx1.FreeBSD.org (Postfix) with SMTP id 9BCDC43D41 for ; Mon, 22 Mar 2004 16:29:52 -0800 (PST) (envelope-from pete_mckenna@qwest.net) Received: (qmail 67486 invoked by uid 0); 23 Mar 2004 00:29:52 -0000 Received: from mpls-pop-08.inet.qwest.net (63.231.195.8) by mpls-qmqp-04.inet.qwest.net with QMQP; 23 Mar 2004 00:29:52 -0000 Received: from 63-231-169-227.mpls.qwest.net (HELO ?10.0.0.22?) (63.231.169.227) by mpls-pop-08.inet.qwest.net with SMTP; 23 Mar 2004 00:29:52 -0000 Date: Mon, 22 Mar 2004 18:30:02 -0600 Message-Id: <396709BE-7C61-11D8-86D0-000A9597EBA2@qwest.net> From: "Pete McKenna" To: "Andrew Milton" In-Reply-To: <20040315213313.GN797@camelot.theinternet.com.au> References: <20040315213313.GN797@camelot.theinternet.com.au> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.613) cc: freebsd-multimedia@freebsd.org Subject: Re: mplayer and lirc with X10 mp3anywhere remote X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 00:29:53 -0000 I'd be interested in this, but don't code so I can't help with that part of things. I have both the X10 and Happuage IR remotes I could test those. Pete On Mar 15, 2004, at 3:33 PM, Andrew Milton wrote: > +-------[ Pete McKenna ]---------------------- > | Does anyone have this working? > | I'm uncertain if version 0.6.6 of lirc > | supports the X10 mp3anywhere hardware. > > > | I pulled the lircd.conf for the mp3anywhere from the lirc CVS. > | Should this work with the .0.6.6 lircd? If not what drivers etc > | need to be updated and recompiled? > > lircd wants proper devices it can send ioctls to. > Most if not all of the drivers are kernel modules and aren't ported, > and the > serial ones require that there be no serial driver in the kernel (at > least > for Linux). > > I've got a userland thing lying around that can spit out lirc > compatible strings > but, it only currently works for the cheap/nasty one wire PackardBell > things > (I don't have any other remote hardware to play with). > > If there's interest I'm happy to start a project somewhere with it so > people > can add more hardware to it. I use it to control freevo, so I know it > works > on at least a basic level. > > -- > Totally Holistic Enterprises Internet| | Andrew > Milton > The Internet (Aust) Pty Ltd | M:+61 416 022 411 | > ACN: 082 081 472 ABN: 83 082 081 472 |akm@theinternet.com.au| Carpe > Daemon From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 22:14:28 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C1D716A4CE for ; Mon, 22 Mar 2004 22:14:28 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E2D143D1D for ; Mon, 22 Mar 2004 22:14:27 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2N6EOIt008330; Tue, 23 Mar 2004 01:14:24 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2N6EJG16089; Tue, 23 Mar 2004 01:14:19 -0500 (EST) Date: Tue, 23 Mar 2004 01:14:19 -0500 (EST) From: John Wehle Message-Id: <200403230614.i2N6EJG16089@jwlab.FEITH.COM> To: christoph.schnauss@berlin.de Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 06:14:28 -0000 > But: this is only the driver. Correct. > Just now I'll need a program like xawtv (e.g. from ports/multimedia/xawtv), > which is working fine with BT8xx-Cards. The BT8xx-Cards are very different devices ... they supply raw video and don't directly digitize audio. The PVR 250 / 350 cards supply MPEG audio / video. Applications for the BT8xx-Cards will not work for the PVR 250 / 350 cards. MPlayer currently works with the cxm driver as long as you have a way of setting the channel (i.e. using the setchannel utility). It should be a simple matter to create tvi_bsdcxm.c from tvi_bsdbt848.c so that mplayer can control the channels. I'm using a web based VCR application I wrote in C and PHP to record programs. It's not whizzy, however it gets the job done. If you're interested I can send you a copy. > You asked for broadcasts. May be it helps, to have a look of the sources > of xawtv, which has some lists. You can certainly try using those lists. It should be an easy change for you to make setchannel support looking up the frequency and use TVTUNER_SETFREQ in place of TVTUNER_SETCHNL. -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 22:16:00 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F4D416A4CE for ; Mon, 22 Mar 2004 22:16:00 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id DECF243D2D for ; Mon, 22 Mar 2004 22:15:59 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2N6FNIt008338; Tue, 23 Mar 2004 01:15:23 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2N6FNI16095; Tue, 23 Mar 2004 01:15:23 -0500 (EST) Date: Tue, 23 Mar 2004 01:15:23 -0500 (EST) From: John Wehle Message-Id: <200403230615.i2N6FNI16095@jwlab.FEITH.COM> To: julian@elischer.org Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 06:16:00 -0000 > If I was building a little TV recorder, and wanted to use this driver, > is thre a way of telling which Hauppauge cards I can and can not buy? In theory WinTV-PVR-250 (model # 980), WinTV-PVR-250MCE (model # 975), and WinTV-PVR-350 (model # 990). There are various flavors of the cards with various tuners ... the driver is currently being used with PVR 250 version 1 and version 2 cards as well as PVR 350 version 1 cards. The driver has support for Phillips, Temic, and LG Innotek tuners. Due to the issues with different card flavors and different tuners it's hard to tell if a specific card will work without taking it out of the box and trying it. It's likely to work, and if it doesn't then it's likely to be an easy patch to the driver to add support for the card. However, there's always the possibility of a card which is just different enough to make it a major ordeal to get running. Keep in mind that the driver only supports encoding audio with video. There's no support for the radio or the MPEG decoder present on some models. Some of that may change in the future, however no promises. -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 22 22:16:40 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1DA616A4CE for ; Mon, 22 Mar 2004 22:16:40 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B1EA43D31 for ; Mon, 22 Mar 2004 22:16:40 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2N6GdIt008343; Tue, 23 Mar 2004 01:16:39 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2N6GcF16101; Tue, 23 Mar 2004 01:16:38 -0500 (EST) Date: Tue, 23 Mar 2004 01:16:38 -0500 (EST) From: John Wehle Message-Id: <200403230616.i2N6GcF16101@jwlab.FEITH.COM> To: u431839553@navab.net Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 06:16:40 -0000 > No broadcast there. Only one I got is my satellite on 647 MHz (ch 43), > but I use the composite input in Linux. > > # setchannel -c > ioctl( tfd, METEORSINPUT ) failed.: Invalid argument > > # dmesg > cxm0: video decoder failed to lock The error message means the video decoder failed to identify a valid video signal within the allowed time. 1) Are you sure it's the composite input? So the video output from the satellite box is a RCA phono connector connected to a little adapter which plugs into the composite / svideo connector on the Hauppauge card? You might try using "setchannel -s" just to see what happens. 2) You might try changing the loop in cxm_saa7115_wait_for_lock from 10 to 20. > When using the -t option: > ioctl( tfd, METEORSINPUT ) failed.: Invalid argument > ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument > > # dmesg > cxm0: video decoder failed to lock > cxm0: audio decoder failed to lock As a dumb question ... I take it the coax connector on the Hauppauge is connected to the output of the cable box? Using -t to switch to the tuner will "fail" if the tuner isn't set to a valid channel. The input actually does switch ... the METEORSINPUT ioctl merely seems to fail because no valid video signal was detected. The TVTUNER_SETCHNL should not fail if a valid video signal is present at the chosen channel. The BG channel mapping used by the cxm driver maps channel 43 to 647.25 MHz. You mentioned 647 MHz ... did you mean 647.25 MHz? -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 23 04:09:11 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ED1116A4CE for ; Tue, 23 Mar 2004 04:09:11 -0800 (PST) Received: from teena.dahlen.ws (h96n2fls33o990.telia.com [213.67.6.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4132843D2F for ; Tue, 23 Mar 2004 04:09:10 -0800 (PST) (envelope-from andreas@dahlen.ws) Received: from mikaela (mikaela.dahlen.ws [10.0.1.100]) by teena.dahlen.ws (8.12.9p2/8.12.8) with ESMTP id i2NC9CKL056589 for ; Tue, 23 Mar 2004 13:09:12 +0100 (CET) (envelope-from andreas@dahlen.ws) From: =?iso-8859-1?Q?Andreas_Dahl=E9n?= To: Date: Tue, 23 Mar 2004 13:07:28 +0100 Message-ID: <008601c410cf$693f7e60$6401000a@mikaela> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <200403230616.i2N6GcF16101@jwlab.FEITH.COM> X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.66 Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 12:09:11 -0000 Hi! Now I got setchannel to work, the problem I had was that I tried to change to a channel that didn't broadcast. Now I can record i.e. (cat /dev/cxm0 > file.mpeg), but I still have two problems; 1. When recording no sound is recorded. I don't have a soundcard in my machine, is that required? I recorded the mpeg-file and played it on another machine. Do I need to do any ioctl calls to configure the sound? 2. Cablechannels I was looking at http://developer.apple.com/technotes/tn/tn1012.html#RTFToC4 (mentioned in cxm_tuner.c). The driver implements "B/G Off air channels" for my tuner (LG). However I'm connected to a cablenetwork and need to S-channels in "B/G Cable Channels". I tried to use channel from the "B/G Off air mapping" that matched the Mhz for the S-shannel, but it didn't work. What I'm I doing wrong? Does the bablemapping needs to be implemented in the driver somehowe? And one question; If I use setchannel to change to a channel that aren't bradcasting. Is the channel set to this new channel or is the old one used? BTW. Thanks John for your great work!!! /Andreas -----Original Message----- From: owner-freebsd-multimedia@freebsd.org [mailto:owner-freebsd-multimedia@freebsd.org] On Behalf Of John Wehle Sent: den 23 mars 2004 07:17 To: u431839553@navab.net Cc: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 > No broadcast there. Only one I got is my satellite on 647 MHz (ch 43), > but I use the composite input in Linux. > > # setchannel -c > ioctl( tfd, METEORSINPUT ) failed.: Invalid argument > > # dmesg > cxm0: video decoder failed to lock The error message means the video decoder failed to identify a valid video signal within the allowed time. 1) Are you sure it's the composite input? So the video output from the satellite box is a RCA phono connector connected to a little adapter which plugs into the composite / svideo connector on the Hauppauge card? You might try using "setchannel -s" just to see what happens. 2) You might try changing the loop in cxm_saa7115_wait_for_lock from 10 to 20. > When using the -t option: > ioctl( tfd, METEORSINPUT ) failed.: Invalid argument > ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument > > # dmesg > cxm0: video decoder failed to lock > cxm0: audio decoder failed to lock As a dumb question ... I take it the coax connector on the Hauppauge is connected to the output of the cable box? Using -t to switch to the tuner will "fail" if the tuner isn't set to a valid channel. The input actually does switch ... the METEORSINPUT ioctl merely seems to fail because no valid video signal was detected. The TVTUNER_SETCHNL should not fail if a valid video signal is present at the chosen channel. The BG channel mapping used by the cxm driver maps channel 43 to 647.25 MHz. You mentioned 647 MHz ... did you mean 647.25 MHz? -- John ------------------------------------------------------------------------ - | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------ - From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 23 07:35:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66CA916A4CE for ; Tue, 23 Mar 2004 07:35:49 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9133F43D3F for ; Tue, 23 Mar 2004 07:35:48 -0800 (PST) (envelope-from christoph.schnauss@berlin.de) Received: (qmail 13910 invoked by uid 65534); 23 Mar 2004 15:35:47 -0000 Received: from pD9E10072.dip.t-dialin.net (HELO pc2) (217.225.0.114) by mail.gmx.net (mp007) with SMTP; 23 Mar 2004 16:35:47 +0100 X-Authenticated: #17806964 Message-ID: <001701c410ec$8a858930$0200a8c0@pc2> From: =?iso-8859-1?Q?Christoph_Schnau=DF?= To: References: <200403230614.i2N6EJG16089@jwlab.FEITH.COM> Date: Tue, 23 Mar 2004 16:35:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 15:35:49 -0000 > I'm using a web based VCR application I wrote in C and PHP to record > programs. It's not whizzy, however it gets the job done. If you're > interested I can send you a copy. I'm interested, and guess, any others too ;-) Has anyone tried VLC from http://www.videolan.org ? Christoph S. From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 23 11:35:50 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73D4C16A4CE; Tue, 23 Mar 2004 11:35:50 -0800 (PST) Received: from odot.okladot.state.ok.us (odot.okladot.state.ok.us [192.149.244.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8C1443D1D; Tue, 23 Mar 2004 11:35:49 -0800 (PST) (envelope-from root@techpc04.okladot.state.ok.us) Received: from notes9c.okladot.state.ok.us (notes9a.okladot.state.ok.us [10.36.36.31])NAA73912; Tue, 23 Mar 2004 13:35:48 -0600 Received: from techpc04.okladot.state.ok.us ([199.27.9.37]) by notes9c.okladot.state.ok.us (Lotus Domino Release 5.0.12) with ESMTP id 2004032313363301:16936 ; Tue, 23 Mar 2004 13:36:33 -0600 Received: by techpc04.okladot.state.ok.us (Postfix, from userid 0) id 6E57C5C11; Tue, 23 Mar 2004 13:35:56 -0600 (CST) To: , From: "Paul Seniura" Errors-To: "Paul Seniura" Sender: "Paul Seniura" Message-Id: <20040323193556.6E57C5C11@techpc04.okladot.state.ok.us> Date: Tue, 23 Mar 2004 13:35:56 -0600 (CST) X-MIMETrack: Itemize by SMTP Server on Notes9c/ODOT(Release 5.0.12 |February 13, 2003) at 03/23/2004 01:36:33 PM,2003) at 03/23/2004 01:36:33 PM, Serialize complete at 03/23/2004 01:36:33 PM Subject: mplayer cache problems, I think it's cross-platform X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Seniura List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 19:35:50 -0000 Hi y'all, Finally getting caught up on CTM ports-cur deltas on this Puny Pentium2. ;) The recent update for mplayer is having problems. I must specify '-nocache' for anything to work. Or 'nocache=yes' in the ~/.mplayer/config file. Any cache size at all >= 4 will cause mplayer to hang with it not filling the cache (verbose showing): CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:0 Cache fill: 0.00% (0 bytes) I can hit Esc or q to get out of this hang in a 'normal' manner. A cancel will show: MPlayer interrupted by signal 2 in module: enable_cache I compiled & installed mplayer both with RTC support and without, via /etc/make.conf . No difference. The kernel & world are at the current CTM src-cur delta levels, too (including last night's buckets CST). I am using the KDE .wav files for testing. With nocache in effect, it works, both RTC and nonRTC compiled modes. The 'play' cmd from another port works fine, too. Of course the GUIs based on mplayer are all hanging at this same spot, too. I don't know if they are specifying cache size internally. I haven't seen anyone mention this problem yet here. But it seems at least another person on another platform is having similar problems: I saw a freshly-posted msg on mplayerhq's dev list: The top part of mplayer's cmd-line mode displays: MPlayer 0.92-3.3.3 (C) 2000-2003 MPlayer Team CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Family: 6, Stepping: 2) Detected cache-line size is 32 bytes CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX I'm not a member at the mplayer HQ. I'm wondering how to go about saying "me too" to their site. Assuming other FBSDers can reproduce this problem, can our maintainer report this to the mplayer HQ, please? Or should I open a FBSD PR and let it go thru channels? Thank you, -- Paul Seniura System Specialist State of Okla. D.O.T. From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 23 13:26:29 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F5FF16A4CE for ; Tue, 23 Mar 2004 13:26:29 -0800 (PST) Received: from mail1.navab.net (mail1.navab.net [80.84.32.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E45B43D45 for ; Tue, 23 Mar 2004 13:26:27 -0800 (PST) (envelope-from u431839553@navab.net) Received: from navab.net (xDSL-42-42.citynetnassjo.se [80.84.42.42]) by mail1.navab.net (8.11.6/8.11.6) with ESMTP id i2NLQQB27068 for ; Tue, 23 Mar 2004 22:26:26 +0100 Message-ID: <4060AB87.7080700@navab.net> Date: Tue, 23 Mar 2004 22:26:31 +0100 From: u431839553@navab.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040320 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <200403230616.i2N6GcF16101@jwlab.FEITH.COM> In-Reply-To: <200403230616.i2N6GcF16101@jwlab.FEITH.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 21:26:29 -0000 I got the -t option working with setchannel using channel 43. Seems to work ok watching live tv using mplayer, and recording using "cat /dev/cxm0 > file.mpeg". I get this while watching live tv: kernel: cxm0: encoder dma not enough buffer space last message repeated 34 times The -c and -s options still doesn't work. >1) Are you sure it's the composite input? So the video output from > the satellite box is a RCA phono connector connected to a little > adapter which plugs into the composite / svideo connector on the > Hauppauge card? You might try using "setchannel -s" just to see > what happens. > > Yes, it's composite input. I got a SCART output from the satellite box to composite/audio line in on the Hauppage card. I get "device not configured" using both -c and -s. >2) You might try changing the loop in cxm_saa7115_wait_for_lock from > 10 to 20. > > I changed to: for (i = 0; i < 20; i++) { in cxm_video.c (don't know if that's the right place) and did a make in /sys/modules/cxm, copied cxm/cxm.ko to the modules directory and unload/loaded the modules. Still get device not configured with -c and -s options. From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 23 23:52:15 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CC5A16A4CE for ; Tue, 23 Mar 2004 23:52:15 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D8D143D1D for ; Tue, 23 Mar 2004 23:52:15 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc11) with ESMTP id <2004032407521401100mjasoe>; Wed, 24 Mar 2004 07:52:14 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id XAA56670 for ; Tue, 23 Mar 2004 23:54:58 -0800 (PST) Date: Tue, 23 Mar 2004 23:54:57 -0800 (PST) From: Julian Elischer To: multimedia@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Maestro2 recording? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 07:52:15 -0000 Is there anyone with any interest at getting the Maestro driver to actually record input? (full specs are available but I am not a sound type) From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 24 03:17:06 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 256DE16A4CE for ; Wed, 24 Mar 2004 03:17:06 -0800 (PST) Received: from maestro.tackymt.homeip.net (YahooBB219181148140.bbtec.net [219.181.148.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 715DA43D31 for ; Wed, 24 Mar 2004 03:17:03 -0800 (PST) (envelope-from taku@cent.saitama-u.ac.jp) Received: from YahooBB219181148140.bbtec.net (localhost [IPv6:::1]) i2OBGt0M011284 for ; Wed, 24 Mar 2004 20:17:01 +0900 (JST) (envelope-from taku@cent.saitama-u.ac.jp) Date: Wed, 24 Mar 2004 20:16:54 +0900 From: Taku YAMAMOTO To: freebsd-multimedia@freebsd.org Message-Id: <20040324201655.07df6280.taku@cent.saitama-u.ac.jp> In-Reply-To: References: Organization: Advanced Computer and Communication Studies Society X-Mailer: Sylpheed version 0.9.8a-gtk2-20040109 (GTK+ 2.2.4; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Maestro2 recording? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 11:17:06 -0000 On Tue, 23 Mar 2004 23:54:57 -0800 (PST) Julian Elischer wrote: > > Is there anyone with any interest at getting the > Maestro driver to actually record input? What if I say ``I already have written the recording part up.'' :) # + MPSAFE mods as well... > (full specs are available but I am not a sound type) Interesting. I have something like ``Data Sheet'' what ESS folks call, but it lacks the information to manipulate DSP :( (but I have sample codes and Linux driver source, though.) Regards, taku -- -|-__ YAMAMOTO, Taku | __ < From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 24 06:40:21 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BA1F16A4CF; Wed, 24 Mar 2004 06:40:21 -0800 (PST) Received: from smtp-bedford.mitre.org (smtp-bedford-x.mitre.org [192.160.51.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id A239243D2D; Wed, 24 Mar 2004 06:40:20 -0800 (PST) (envelope-from jandrese@mitre.org) Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.11.6/8.11.6) with ESMTP id i2OEeKU03351; Wed, 24 Mar 2004 09:40:20 -0500 Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtp-bedford.mitre.org (8.11.6/8.11.6) with ESMTP id i2OEeJ803329; Wed, 24 Mar 2004 09:40:19 -0500 Received: from mm112324-2k.mitre.org (128.29.3.14) by mailhub2.mitre.org with SMTP id 2070078; Wed, 24 Mar 2004 09:40:17 -0500 Message-ID: <40619DCB.7050707@mitre.org> Date: Wed, 24 Mar 2004 09:40:11 -0500 From: Jason Andresen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Seniura References: <20040323193556.6E57C5C11@techpc04.okladot.state.ok.us> In-Reply-To: <20040323193556.6E57C5C11@techpc04.okladot.state.ok.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: mplayer cache problems, I think it's cross-platform X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 14:40:21 -0000 Paul Seniura wrote: > Hi y'all, > > > Finally getting caught up on CTM ports-cur deltas on > this Puny Pentium2. ;) > > The recent update for mplayer is having problems. > I must specify '-nocache' for anything to work. > Or 'nocache=yes' in the ~/.mplayer/config file. > > Any cache size at all >= 4 will cause mplayer to hang > with it not filling the cache (verbose showing): > > CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:0 > Cache fill: 0.00% (0 bytes) > > I can hit Esc or q to get out of this hang in a > 'normal' manner. > A cancel will show: > > MPlayer interrupted by signal 2 in module: enable_cache > > I compiled & installed mplayer both with RTC support > and without, via /etc/make.conf . No difference. > > The kernel & world are at the current CTM src-cur delta > levels, too (including last night's buckets CST). > > I am using the KDE .wav files for testing. With nocache > in effect, it works, both RTC and nonRTC compiled modes. > The 'play' cmd from another port works fine, too. > > Of course the GUIs based on mplayer are all hanging at > this same spot, too. I don't know if they are > specifying cache size internally. > > I haven't seen anyone mention this problem yet here. > But it seems at least another person on another platform is > having similar problems: I saw a freshly-posted msg on > mplayerhq's dev list: > > > The top part of mplayer's cmd-line mode displays: > > MPlayer 0.92-3.3.3 (C) 2000-2003 MPlayer Team > CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Family: 6, Stepping: 2) > Detected cache-line size is 32 bytes > CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 > Compiled for x86 CPU with extensions: MMX > > I'm not a member at the mplayer HQ. I'm wondering how to > go about saying "me too" to their site. Assuming other > FBSDers can reproduce this problem, can our maintainer > report this to the mplayer HQ, please? > Or should I open a FBSD PR and let it go thru channels? FYI, the cache works for me. MPlayer 0.92-3.3.3 (C) 2000-2003 MPlayer Team CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 24 10:23:23 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CC5616A4CE for ; Wed, 24 Mar 2004 10:23:23 -0800 (PST) Received: from tolvis.karlskrona.se (unknown [212.214.15.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C80843D49 for ; Wed, 24 Mar 2004 10:23:22 -0800 (PST) (envelope-from defacto@home.se) Received: from tolvis.karlskrona.se (localhost.karlskrona.se [127.0.0.1]) i2OIPxVC012427 for ; Wed, 24 Mar 2004 19:26:00 +0100 (CET) (envelope-from defacto@home.se) Received: (from jalle@localhost) by tolvis.karlskrona.se (8.12.10/8.12.10/Submit) id i2OIPxAs012426 for freebsd-multimedia@freebsd.org; Wed, 24 Mar 2004 19:25:59 +0100 (CET) (envelope-from defacto@home.se) X-Authentication-Warning: tolvis.karlskrona.se: jalle set sender to defacto@home.se using -f From: Kristofer Jarl To: freebsd-multimedia@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Telodica Message-Id: <1080152758.12369.21.camel@tolvis.karlskrona.se> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 24 Mar 2004 19:25:59 +0100 Subject: Asus v9520 video-in X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: defacto@home.se List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 18:23:23 -0000 Hi folks! I recently bought a new computer with an Asus v9520 graphics card. It works like a charm on my FreeBSD 5.2.1 installation, but I still haven't figured if there is any way of getting the video-in function to work under FreeBSD (the only OS I have installed, so I haven't tested it under Linux or Windows). It has a GeForce FX 5200 chipset in it. The only thing I've found for it is RivaTV for Linux, but there is no port for it for FreeBSD. I would like to stay with FreeBSD, since it's so much more stable than any Linux I've tried, but if my video-in doesn't work, I think I will at least have to dual-boot... Any suggestions? Live well! /Jalle From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 24 11:12:37 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22A6D16A4CF for ; Wed, 24 Mar 2004 11:12:37 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id E196E43D53 for ; Wed, 24 Mar 2004 11:12:35 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004032419123401300e2bige>; Wed, 24 Mar 2004 19:12:35 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA63566; Wed, 24 Mar 2004 11:15:50 -0800 (PST) Date: Wed, 24 Mar 2004 11:15:49 -0800 (PST) From: Julian Elischer To: Taku YAMAMOTO In-Reply-To: <20040324201655.07df6280.taku@cent.saitama-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-multimedia@freebsd.org Subject: Re: Maestro2 recording? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 19:12:37 -0000 On Wed, 24 Mar 2004, Taku YAMAMOTO wrote: > On Tue, 23 Mar 2004 23:54:57 -0800 (PST) > Julian Elischer wrote: > > > > Is there anyone with any interest at getting the > > Maestro driver to actually record input? > > What if I say ``I already have written the recording part up.'' :) > # + MPSAFE mods as well... Yehah! :-) > > > (full specs are available but I am not a sound type) > > Interesting. > I have something like ``Data Sheet'' what ESS folks call, but it lacks > the information to manipulate DSP :( (but I have sample codes and Linux > driver source, though.) I have the specsheet with all the register definitions in pdf do you have that? It is at home so I can not see if it called a "Data sheet", but it is quite large. (i.e. not 5 pages, but more like 60 or 80 pages) > > Regards, > taku > -- > -|-__ YAMAMOTO, Taku > | __ < > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > From owner-freebsd-multimedia@FreeBSD.ORG Thu Mar 25 16:33:04 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D263B16A4CE for ; Thu, 25 Mar 2004 16:33:04 -0800 (PST) Received: from bofh.spyderweb.com.au (unknown [202.6.150.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBC3743D55 for ; Thu, 25 Mar 2004 16:33:03 -0800 (PST) (envelope-from tim@spyderweb.com.au) Received: from spyderweb.com.au (localhost [127.0.0.1])i2Q0X3bD004550 for ; Fri, 26 Mar 2004 11:03:04 +1030 (CST) (envelope-from tim@spyderweb.com.au) Date: Fri, 26 Mar 2004 11:03:03 +1030 From: Tim Aslat To: freebsd-multimedia@freebsd.org Message-Id: <20040326110303.2632174f@bofh.spyderweb.com.au> In-Reply-To: <008601c410cf$693f7e60$6401000a@mikaela> References: <200403230616.i2N6GcF16101@jwlab.FEITH.COM> <008601c410cf$693f7e60$6401000a@mikaela> Organization: Spyderweb Consulting X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 00:33:05 -0000 In the immortal words of Andreas Dahl=E9n ... > 1. When recording no sound is recorded.=20 > I don't have a soundcard in my machine, is that required? I recorded > the mpeg-file and played it on another machine. Do I need to do any > ioctl calls to configure the sound? I am having a similar problem. I'm getting no audio when using the composite input on my PVR-350 card. John did a fantastic job of getting the video and tuner working, but I haven't been able to source the problem with the audio. This unit does have a sound card, however I'm trying to avoid using it due to potential syncing problems in the recording. I am using a cable which is s-video male at one end and has 2 male RCA plugs at the other. I assume this is some kind of hacked composite input, but the audio doesn't seem to work. Regards Tim --=20 Tim Aslat Spyderweb Consulting http://www.spyderweb.com.au P: +61 8 82243020 M: +61 0401088479 From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 04:47:13 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4B0E16A4CE for ; Fri, 26 Mar 2004 04:47:13 -0800 (PST) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A1A743D1D for ; Fri, 26 Mar 2004 04:47:13 -0800 (PST) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from kg-work.kg4.no (131.80-202-174.nextgentel.com [80.202.174.131]) by mail.broadpark.no (Postfix) with SMTP id 5A283A214 for ; Fri, 26 Mar 2004 13:47:13 +0100 (MET) Date: Fri, 26 Mar 2004 13:43:42 +0100 From: Torfinn Ingolfsen To: freebsd-multimedia@freebsd.org Message-Id: <20040326134342.055122ed.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20040326110303.2632174f@bofh.spyderweb.com.au> References: <200403230616.i2N6GcF16101@jwlab.FEITH.COM> <008601c410cf$693f7e60$6401000a@mikaela> <20040326110303.2632174f@bofh.spyderweb.com.au> X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd4.9) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq;m"_0v;~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 12:47:14 -0000 On Fri, 26 Mar 2004 11:03:03 +1030 Tim Aslat wrote: > I am having a similar problem. I'm getting no audio when using the > composite input on my PVR-350 card. John did a fantastic job of Just to get rid of any doubts; you are aware that composite video (cvbs) is a video-only signal? > I am using a cable which is s-video male at one end and has 2 male RCA > plugs at the other. I assume this is some kind of hacked composite > input, but the audio doesn't seem to work. You will need a separate audio cable, because this signal contains just video. -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 05:10:57 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AD1116A4CF for ; Fri, 26 Mar 2004 05:10:57 -0800 (PST) Received: from teena.dahlen.ws (h96n2fls33o990.telia.com [213.67.6.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6475243D39 for ; Fri, 26 Mar 2004 05:10:56 -0800 (PST) (envelope-from andreas@dahlen.ws) Received: from mikaela (mikaela.dahlen.ws [10.0.1.100]) by teena.dahlen.ws (8.12.9p2/8.12.8) with ESMTP id i2QDAxKL044971 for ; Fri, 26 Mar 2004 14:10:59 +0100 (CET) (envelope-from andreas@dahlen.ws) From: =?iso-8859-1?Q?Andreas_Dahl=E9n?= To: Date: Fri, 26 Mar 2004 14:10:59 +0100 Message-ID: <006001c41333$c854b170$6401000a@mikaela> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <008601c410cf$693f7e60$6401000a@mikaela> Importance: Normal X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.70 Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 13:10:57 -0000 Sorry to reply to my own mail, but I've done some furter investigations I got sound on some channels but not all, the one that I don't get sound from are using Nicam stereo. Do I need to do any special configuration to get Nicam to work? At least in Germany I read thatas an example video is sent on 112.25 Mhz, mono sound on 117.750 and stereo on 117.992. I don't know if it's the same inSweden, but could that have something to do with the problem with no-sound? /Andreas -----Original Message----- From: owner-freebsd-multimedia@freebsd.org [mailto:owner-freebsd-multimedia@freebsd.org] On Behalf Of Andreas Dahl=E9n Sent: den 23 mars 2004 13:07 To: freebsd-multimedia@freebsd.org Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 Hi! Now I got setchannel to work, the problem I had was that I tried to change to a channel that didn't broadcast. Now I can record i.e. (cat /dev/cxm0 > file.mpeg), but I still have two problems; 1. When recording no sound is recorded.=20 I don't have a soundcard in my machine, is that required? I recorded the mpeg-file and played it on another machine. Do I need to do any ioctl calls to configure the sound? 2. Cablechannels I was looking at http://developer.apple.com/technotes/tn/tn1012.html#RTFToC4 (mentioned in cxm_tuner.c). The driver implements "B/G Off air channels" for my tuner (LG). However I'm connected to a cablenetwork and need to S-channels in "B/G Cable Channels". I tried to use channel from the "B/G Off air mapping" that matched the Mhz for the S-shannel, but it didn't work. What I'm I doing wrong? Does the bablemapping needs to be implemented in the driver somehowe? And one question; If I use setchannel to change to a channel that aren't bradcasting. Is the channel set to this new channel or is the old one used? BTW. Thanks John for your great work!!!=20 /Andreas -----Original Message----- From: owner-freebsd-multimedia@freebsd.org [mailto:owner-freebsd-multimedia@freebsd.org] On Behalf Of John Wehle Sent: den 23 mars 2004 07:17 To: u431839553@navab.net Cc: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 > No broadcast there. Only one I got is my satellite on 647 MHz (ch 43), > but I use the composite input in Linux. >=20 > # setchannel -c > ioctl( tfd, METEORSINPUT ) failed.: Invalid argument >=20 > # dmesg > cxm0: video decoder failed to lock The error message means the video decoder failed to identify a valid video signal within the allowed time. 1) Are you sure it's the composite input? So the video output from the satellite box is a RCA phono connector connected to a little adapter which plugs into the composite / svideo connector on the Hauppauge card? You might try using "setchannel -s" just to see what happens. 2) You might try changing the loop in cxm_saa7115_wait_for_lock from 10 to 20. > When using the -t option: > ioctl( tfd, METEORSINPUT ) failed.: Invalid argument > ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument >=20 > # dmesg > cxm0: video decoder failed to lock > cxm0: audio decoder failed to lock As a dumb question ... I take it the coax connector on the Hauppauge is connected to the output of the cable box? Using -t to switch to the tuner will "fail" if the tuner isn't set to a valid channel. The input actually does switch ... the METEORSINPUT ioctl merely seems to fail because no valid video signal was detected. The TVTUNER_SETCHNL should not fail if a valid video signal is present at the chosen channel. The BG channel mapping used by the cxm driver maps channel 43 to 647.25 MHz. You mentioned 647 MHz ... did you mean 647.25 MHz? -- John ------------------------------------------------------------------------ - | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------ - _______________________________________________ freebsd-multimedia@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 05:42:09 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3B0A16A4CE for ; Fri, 26 Mar 2004 05:42:09 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id D697743D4C for ; Fri, 26 Mar 2004 05:42:08 -0800 (PST) (envelope-from christoph.schnauss@berlin.de) Received: (qmail 27658 invoked by uid 65534); 26 Mar 2004 13:42:07 -0000 Received: from pD9587ED0.dip.t-dialin.net (HELO pc2) (217.88.126.208) by mail.gmx.net (mp001) with SMTP; 26 Mar 2004 14:42:07 +0100 X-Authenticated: #17806964 Message-ID: <003101c41338$2e5b05b0$0200a8c0@pc2> From: =?iso-8859-1?Q?Christoph_Schnau=DF?= To: =?iso-8859-1?Q?Andreas_Dahl=E9n?= , References: <006001c41333$c854b170$6401000a@mikaela> Date: Fri, 26 Mar 2004 14:42:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 13:42:10 -0000 > At least in Germany I read thatas an example video is > sent on 112.25 Mhz, mono sound on 117.750 and > stereo on 117.992. Where did you read this? And which channel it should be? I couldn't find such one, and I'm living in germany. Christoph S. From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 05:52:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5905F16A4CE for ; Fri, 26 Mar 2004 05:52:49 -0800 (PST) Received: from web41605.mail.yahoo.com (web41605.mail.yahoo.com [66.218.93.105]) by mx1.FreeBSD.org (Postfix) with SMTP id 1F09243D3F for ; Fri, 26 Mar 2004 05:52:49 -0800 (PST) (envelope-from strbenjr@yahoo.com) Message-ID: <20040326135246.55339.qmail@web41605.mail.yahoo.com> Received: from [68.86.14.129] by web41605.mail.yahoo.com via HTTP; Fri, 26 Mar 2004 05:52:46 PST Date: Fri, 26 Mar 2004 05:52:46 -0800 (PST) From: "Ben H." To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Sound recording and producing CDs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 13:52:49 -0000 I am new at this sound stuff... Please confirm or suggest... Thanks!! I have a need to regularly record a public program and be able to produce a copy of the program in CD format. It is currently being done via tape. I wanted to setup a FreeBSD system to record sound input and have the ability to: Edit - important CDBurn - very important Teach a non-tech person to run the working system. (gui) the recorded sound in a format that can be played back on a car or home CD player. Does the following software work or...: Audio recording to HD: http://www.wakkanet.fi/~kaiv/ecasound/welcome.html CD Recording (DAO): http://cdrdao.sourceforge.net/index.html Audio & MIDI Sequ.: http://www.all-day-breakfast.com/rosegarden/index.html Thanks in advance! Ben > ---- Yahoo! Groups wrote: > > Date: 25 Mar 2004 13:35:22 -0000 > > Subject: Unable to deliver your message > > > > We are unable to deliver the message from > > to > > . > > > > The freebsd-multimedia group is for archival > > use only and does not accept direct postings. > > If you want to post to the actual email list, > > please send your message to > > > > freebsd-multimedia@egroups.com ===== Ben Hacker Jr Sr. Security Analyst 703.418.8004 2461 S. Clark Street strbenjr@yahoo.com Arlington, VA 22202 -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- http://www.hackerweb.net/bthacker ...remembering... From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 06:04:33 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA20816A4CE for ; Fri, 26 Mar 2004 06:04:33 -0800 (PST) Received: from mail011.syd.optusnet.com.au (mail011.syd.optusnet.com.au [211.29.132.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id E19C843D39 for ; Fri, 26 Mar 2004 06:04:31 -0800 (PST) (envelope-from akm@theinternet.com.au) Received: from theinternet.com.au (c211-30-103-113.carlnfd1.nsw.optusnet.com.au [211.30.103.113]) i2QDwf115859; Sat, 27 Mar 2004 00:58:41 +1100 Received: from theinternet.com.au (localhost [127.0.0.1]) by theinternet.com.au (8.12.11/8.12.11) with ESMTP id i2QDwxL1076906; Sat, 27 Mar 2004 00:58:59 +1100 (EST) (envelope-from akm@theinternet.com.au) Received: (from akm@localhost) by theinternet.com.au (8.12.11/8.12.11/Submit) id i2QDwxXe076905; Sat, 27 Mar 2004 00:58:59 +1100 (EST) (envelope-from akm) Date: Sat, 27 Mar 2004 00:58:59 +1100 From: Andrew Milton To: "Ben H." Message-ID: <20040326135859.GB4875@camelot.theinternet.com.au> Mail-Followup-To: "Ben H." , freebsd-multimedia@freebsd.org References: <20040326135246.55339.qmail@web41605.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20040326135246.55339.qmail@web41605.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: freebsd-multimedia@freebsd.org Subject: Re: Sound recording and producing CDs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 14:04:33 -0000 +-------[ Ben H. ]---------------------- | =20 | I am new at this sound stuff... [snip] | Does the following software work or...: |=20 | Audio recording to HD: | http://www.wakkanet.fi/~kaiv/ecasound/welcome.html=20 This is in the FreeBSD ports tree; /usr/ports/audio/ecasound/ | CD Recording (DAO): =20 | http://cdrdao.sourceforge.net/index.html=20 burncd is a standard tool on 4.x and 5.x series FreeBSD. man burncd for more info. |=20 | Audio & MIDI Sequ.: =20 | http://www.all-day-breakfast.com/rosegarden/index.html=20 This is in the FreeBSD ports tree; /usr/ports/audio/rosegarden. For more information about installing ports have a look at;=07 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html --=20 Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | M:+61 416 022 411 | ACN: 082 081 472 ABN: 83 082 081 472 |akm@theinternet.com.au| Carpe Daemon From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 11:18:39 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99B7E16A4CE for ; Fri, 26 Mar 2004 11:18:39 -0800 (PST) Received: from web41601.mail.yahoo.com (web41601.mail.yahoo.com [66.218.93.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 50CA643D41 for ; Fri, 26 Mar 2004 11:18:39 -0800 (PST) (envelope-from strbenjr@yahoo.com) Message-ID: <20040326191818.46487.qmail@web41601.mail.yahoo.com> Received: from [208.19.133.132] by web41601.mail.yahoo.com via HTTP; Fri, 26 Mar 2004 11:18:18 PST Date: Fri, 26 Mar 2004 11:18:18 -0800 (PST) From: "Ben H." To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Sound recording and producing CDs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 19:18:39 -0000 Thanks for the reply! I understand that these are in the ports tree and how to install them. That was how I found them. My real question is are they the best tools available for the job or should I consider different ports? I would be OK if you asked me to build a FreeBSD firewall or a web server... But... a sound recording box... I need some Multimedia Expert opinions before I get started... (down the wrong road) Ben +-------[ Ben H. ]---------------------- | | I am new at this sound stuff... [snip] | Does the following software work or...: | | Audio recording to HD: | http://www.wakkanet.fi/~kaiv/ecasound/welcome.html This is in the FreeBSD ports tree; /usr/ports/audio/ecasound/ | CD Recording (DAO): | http://cdrdao.sourceforge.net/index.html burncd is a standard tool on 4.x and 5.x series FreeBSD. man burncd for more info. | | Audio & MIDI Sequ.: | http://www.all-day-breakfast.com/rosegarden/index.html This is in the FreeBSD ports tree; /usr/ports/audio/rosegarden. For more information about installing ports have a look at; http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html ===== Ben Hacker Jr Sr. Security Analyst 703.418.8004 2461 S. Clark Street strbenjr@yahoo.com Arlington, VA 22202 -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- -=*=- http://www.hackerweb.net/bthacker ...remembering... From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 14:30:51 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DF7416A4CF for ; Fri, 26 Mar 2004 14:30:51 -0800 (PST) Received: from mail.metawire.org (metawire.org [24.73.230.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0865B43D31 for ; Fri, 26 Mar 2004 14:30:44 -0800 (PST) (envelope-from wek48@metawire.org) Received: by mail.metawire.org (Postfix, from userid 3078) id CBF973BBF94; Fri, 26 Mar 2004 17:30:55 -0500 (EST) Date: Fri, 26 Mar 2004 17:30:55 -0500 From: William Kirkland To: freebsd-multimedia@freebsd.org Message-ID: <20040326223055.GA22580@openwire> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: bktr0: Pinnacle PCTV Rave, MT2032 tuner. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 22:30:51 -0000 Hi, I have installed a Pinnacle, PCTV Rave ... but am unable to change the channel. After applying the patch, I was able to detect the tuner, but then had no signal, either audio or video. I did use the `setenv hw.bt848.tuner=x`, cycling through the 13 different tuners, with no success (both pre and post patch). Does anyone know who might be working on this? or where I might obtain some doucmentation as to how to build/modify a driver? If I missed some configuration issue, PLEASE let me know that too. wek@ash: $ fxtv -debug startup Fxtv v1.03 DETECTED CAPTURE CARD(S) [DRIVER PROBES]: bktr_mem: memory holder loaded Pentium Pro MTRR support enabled bktr0: mem 0xdc100000-0xdc100fff irq 10 at device 0.0 on pci1 bktr0: Warning - card vendor 0x11bd (model 0x0012) unknown. bktr0: Pinnacle/Miro TV, tuner. pci1: at device 0.1 (no driver attached) SYSCTL MIB VALUES: kern.version: FreeBSD 5.2.1-RC #0: Tue Mar 23 06:18:56 GMT 2004 root@ash.wek4.com:/usr/obj/usr/src/sys/wek-040323 hw.bt848.card: 1 hw.bt848.tuner: -1 hw.bt848.reverse_mute: -1 hw.bt848.format: -1 hw.bt848.slow_msp_audio: -1 TUNER SIGNATURE (0x01 - 0xff): 00 00 00 00 00 00 00 00 08 00 01 00 00 00 00 00 TUNER I2C DEVICES FOUND AT: 0x86, 0xa0 CAPTURE CARD EEPROM CONTENTS: Read 256 EEPROM bytes (0x00 - 0xff) f0 00 00 00 3b ff ff ff ff ff ff ff ff ff ff ff f0 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 45 6d 70 54 79 56 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 30 30 30 33 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 30 30 30 30 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 32 30 33 35 36 30 36 36 39 35 33 34 34 32 31 38 34 32 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 12 11 bd SUPPORTED FREQUENCY SETS: 1 nabcst 2 cableirc 3 cablehrc 4 weurope 5 jpnbcst 6 jpncable 7 xussr 8 australia 9 france Supported RGB Capture Pixel Formats: bpp Bpp RGB Masks Swap --- --- ---------------------------- ---- 15 2 00007c00, 000003e0, 0000001f NB 16 2 0000f800, 000007e0, 0000001f NB 24 3 00ff0000, 0000ff00, 000000ff B 24 4 00ff0000, 0000ff00, 000000ff NBWb Supported YUV Capture Pixel Formats: YUVSize HSamp VSamp Pack CompOrder T->B L->R YTrans ------- ----- ----- ------ --------- ---- ---- ------ 8,8,8 1,2,2 1,1,1 PLANAR YUV Y Y N 8,8,8 1,2,2 1,1,1 PACKED YUYV Y Y N 8,8,8 1,2,2 1,2,2 PLANAR YUV Y Y N XSERVER: 'The XFree86 Project, Inc' v40300000, Protocol Verson 11.0 Screen Res = 1024x768, DefDepth = 24; NumScreens = 1 Bitmap Unit/BitOrder/Pad = 32/LSBFirst/32, Image ByteOrder = LSBFirst Xlib: extension "XFree86-DGA" missing on display ":0.0". XF86DGA{QueryVersion,QueryDirectVideo}() failed Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 4 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No Chosen Visual is 24-bpp TrueColor XF86VidModeQueryVersion() succeeded - version = 2.02 wek@ash: $ fxtv -debug startup Fxtv v1.03 DETECTED CAPTURE CARD(S) [DRIVER PROBES]: bktr_mem: memory holder loaded Pentium Pro MTRR support enabled bktr0: mem 0xdc100000-0xdc100fff irq 10 at device 0.0 on pci1 bktr0: tuner @ 0xc0 bktr0: MT2032: Companycode=3cbf Part=00 Revision=00 bktr0: Pinnacle PCTV Rave, MT2032 tuner. SYSCTL MIB VALUES: kern.version: FreeBSD 5.2.1-RC #0: Thu Mar 25 00:03:42 PST 2004 root@ash.wek4.com:/usr/obj/usr/src/sys/wek-040325 hw.bt848.card: 1 hw.bt848.tuner: 13 hw.bt848.reverse_mute: -1 hw.bt848.format: -1 hw.bt848.slow_msp_audio: -1 TUNER SIGNATURE (0x01 - 0xff): 00 00 00 00 00 00 00 00 08 00 01 00 00 00 00 00 TUNER I2C DEVICES FOUND AT: 0x86, 0xa0 CAPTURE CARD EEPROM CONTENTS: Read 256 EEPROM bytes (0x00 - 0xff) f0 00 00 00 3b ff ff ff ff ff ff ff ff ff ff ff f0 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 45 6d 70 54 79 56 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 30 30 30 33 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 30 30 30 30 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 32 30 33 35 36 30 36 36 39 35 33 34 34 32 31 38 34 32 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 12 11 bd SUPPORTED FREQUENCY SETS: 1 nabcst 2 cableirc 3 cablehrc 4 weurope 5 jpnbcst 6 jpncable 7 xussr 8 australia 9 france Supported RGB Capture Pixel Formats: bpp Bpp RGB Masks Swap --- --- ---------------------------- ---- 15 2 00007c00, 000003e0, 0000001f NB 16 2 0000f800, 000007e0, 0000001f NB 24 3 00ff0000, 0000ff00, 000000ff B 24 4 00ff0000, 0000ff00, 000000ff NBWb Supported YUV Capture Pixel Formats: YUVSize HSamp VSamp Pack CompOrder T->B L->R YTrans ------- ----- ----- ------ --------- ---- ---- ------ 8,8,8 1,2,2 1,1,1 PLANAR YUV Y Y N 8,8,8 1,2,2 1,1,1 PACKED YUYV Y Y N 8,8,8 1,2,2 1,2,2 PLANAR YUV Y Y N XSERVER: 'The XFree86 Project, Inc' v40300000, Protocol Verson 11.0 Screen Res = 1024x768, DefDepth = 24; NumScreens = 1 Bitmap Unit/BitOrder/Pad = 32/LSBFirst/32, Image ByteOrder = LSBFirst XF86DGA{QueryVersion,QueryDirectVideo}() failed Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 4 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No Chosen Visual is 24-bpp TrueColor XF86VidModeQueryVersion() succeeded - version = 2.02 wek@ash: $ ls -l bktr-pctv-rave.diff -rw-r--r-- 1 wek wheel 13764 Mar 24 23:54 bktr-pctv-rave.diff wek@ash: $ md5 bktr-pctv-rave.diff MD5 (bktr-pctv-rave.diff) = 382f98eb137af9728fe53646f12e8063 wek@ash: $ cat bktr-pctv-rave.diff diff -c .org/bktr_card.c ./bktr_card.c *** .org/bktr_card.c Sat Feb 8 03:04:57 2003 --- ./bktr_card.c Fri Nov 7 00:30:20 2003 *************** *** 355,360 **** --- 355,372 ---- { 0x10000, 0, 0x10000, 0, 1 }, /* audio MUX values */ 0x10f00 }, /* GPIO mask */ + { CARD_PINNACLE_PCTV_RAVE, /* the card id */ + "Pinnacle PCTV Rave", /* the 'name' */ + NULL, /* the tuner */ + 0, /* the tuner i2c address */ + 0, /* dbx unknown */ + 0, + 0, + 0, /* EEProm unknown */ + 0, /* size unknown */ + { 0x02, 0x01, 0x00, 0x0a, 1 }, /* audio MUX values */ + 0x03000F }, /* GPIO mask */ + }; struct bt848_card_sig bt848_card_signature[1]= { *************** *** 554,559 **** --- 566,572 ---- #define PCI_VENDOR_FLYVIDEO_2 0x1852 #define PCI_VENDOR_PINNACLE_ALT 0xBD11 #define PCI_VENDOR_IODATA 0x10fc + #define PCI_VENDOR_PINNACLE_NEW 0x11BD #define MODEL_IODATA_GV_BCTV3_PCI 0x4020 *************** *** 696,701 **** --- 709,729 ---- bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); goto checkTuner; } + + if (subsystem_vendor_id == PCI_VENDOR_PINNACLE_NEW) { + bktr->card = cards[ (card = CARD_PINNACLE_PCTV_RAVE) ]; + bktr->card.eepromAddr = eeprom_i2c_address; + bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); + + TDA9887_init(bktr, 0); + + /* look for a tuner */ + tuner_i2c_address = locate_tuner_address( bktr ); + printf( "%s: tuner @ %#x\n", bktr_name(bktr), tuner_i2c_address ); + select_tuner( bktr, TUNER_MT2032 ); + + goto checkDBX; + } /* Vendor is unknown. We will use the standard probe code */ /* which may not give best results */ diff -c .org/bktr_card.h ./bktr_card.h *** .org/bktr_card.h Sat Feb 8 03:04:57 2003 --- ./bktr_card.h Thu Aug 28 23:36:45 2003 *************** *** 77,83 **** #define CARD_LEADTEK 15 #define CARD_TERRATVPLUS 16 #define CARD_IO_BCTV3 17 ! #define Bt848_MAX_CARD 18 #define CARD_IO_GV CARD_IO_BCTV2 --- 77,84 ---- #define CARD_LEADTEK 15 #define CARD_TERRATVPLUS 16 #define CARD_IO_BCTV3 17 ! #define CARD_PINNACLE_PCTV_RAVE 18 ! #define Bt848_MAX_CARD 19 #define CARD_IO_GV CARD_IO_BCTV2 diff -c .org/bktr_tuner.c ./bktr_tuner.c *** .org/bktr_tuner.c Thu Oct 26 18:38:46 2000 --- ./bktr_tuner.c Fri Aug 29 00:16:29 2003 *************** *** 137,142 **** --- 137,146 ---- #define TSBH1_FCONTROL 0xce + static void mt2032_set_tv_freq(bktr_ptr_t bktr, unsigned int freq); + static int mt2032_init(bktr_ptr_t bktr); + + static const struct TUNER tuners[] = { /* XXX FIXME: fill in the band-switch crosspoints */ /* NO_TUNER */ *************** *** 277,283 **** TSBH1_FCONTROL, 0x00 }, { 0x00, 0x00 }, /* band-switch crosspoints */ ! { 0x01, 0x02, 0x08, 0x00 } } /* the band-switch values */ }; --- 281,297 ---- TSBH1_FCONTROL, 0x00 }, { 0x00, 0x00 }, /* band-switch crosspoints */ ! { 0x01, 0x02, 0x08, 0x00 } }, /* the band-switch values */ ! ! /* MT2032 Microtune */ ! { "MT2032", /* the 'name' */ ! TTYPE_PAL, /* input type */ ! { TSA552x_SCONTROL, /* control byte for Tuner PLL */ ! TSA552x_SCONTROL, ! TSA552x_SCONTROL, ! 0x00 }, ! { 0x00, 0x00 }, /* band-switch crosspoints */ ! { 0xa0, 0x90, 0x30, 0x00 } }, /* the band-switch values */ }; *************** *** 711,716 **** --- 725,733 ---- } else { bktr->card.tuner = NULL; } + if (tuner_type == TUNER_MT2032) { + mt2032_init(bktr); + } } /* *************** *** 788,793 **** --- 805,814 ---- if ( tuner == NULL ) return( -1 ); + if (tuner == &tuners[TUNER_MT2032]) { + mt2032_set_tv_freq(bktr, frequency); + return 0; + } if (type == TV_FREQUENCY) { /* * select the band based on frequency *************** *** 975,980 **** --- 996,1003 ---- * Get the Tuner status and signal strength */ int get_tuner_status( bktr_ptr_t bktr ) { + if (bktr->card.tuner == &tuners[TUNER_MT2032]) + return 0; return i2cRead( bktr, bktr->card.tuner_pllAddr + 1 ); } *************** *** 1013,1016 **** --- 1036,1409 ---- chnlset->max_channel=freqTable[chnlset->index].ptr[0]; return( 0 ); + } + + + + + #define TDA9887_ADDR 0x86 + + int + TDA9887_init(bktr_ptr_t bktr, int output2_enable) + { + u_char addr = TDA9887_ADDR; + #if 0 + char buf[8]; + + /* NOTE: these are PAL values */ + buf[0] = 0; /* sub address */ + buf[1] = 0x50; /* output port1 inactive */ + buf[2] = 0x6e; /* tuner takeover point / de-emphasis */ + buf[3] = 0x09; /* fVIF = 38.9 MHz, fFM = 5.5 MHz */ + + if (!output2_enable) + buf[1] |= 0x80; + + if (i2cWriteBuf(bktr, addr, 4, buf) == -1) { + printf("%s: TDA9887 write failed\n", bktr_name(bktr)); + return -1; + } + #else + i2cWrite(bktr, addr, 0, output2_enable ? 0x50 : 0xd0); + i2cWrite(bktr, addr, 1, 0x6e); + i2cWrite(bktr, addr, 2, 0x09); + #endif + return 0; + } + + + + #define MT2032_OPTIMIZE_VCO 1 + + /* holds the value of XOGC register after init */ + static int MT2032_XOGC = 4; + + /* card.tuner_pllAddr not set during init */ + #define MT2032_ADDR 0xc0 + + #ifndef MT2032_ADDR + #define MT2032_ADDR (bktr->card.tuner_pllAddr) + #endif + + static u_char + _MT2032_GetRegister(bktr_ptr_t bktr, u_char regNum) + { + int ch; + + if (i2cWrite(bktr, MT2032_ADDR, regNum, -1) == -1) { + printf("%s: MT2032 write failed (i2c addr %#x)\n", + bktr_name(bktr), MT2032_ADDR); + } + if ((ch = i2cRead(bktr, MT2032_ADDR + 1)) == -1) { + printf("%s: MT2032 get register %d failed\n", + bktr_name(bktr), regNum); + return 0; + } + return ch; + } + + static void + _MT2032_SetRegister(bktr_ptr_t bktr, u_char regNum, u_char data) + { + i2cWrite(bktr, MT2032_ADDR, regNum, data); + } + + #define MT2032_GetRegister(r) _MT2032_GetRegister(bktr,r) + #define MT2032_SetRegister(r,d) _MT2032_SetRegister(bktr,r,d) + + + static int + mt2032_init(bktr_ptr_t bktr) + { + u_char rdbuf[22]; + int xogc, xok = 0; + int i; + + TDA9887_init(bktr, 0); + + for (i = 0; i < 21; i++) + rdbuf[i] = MT2032_GetRegister(i); + + printf("%s: MT2032: Companycode=%02x%02x Part=%02x Revision=%02x\n", + bktr_name(bktr), + rdbuf[0x11], rdbuf[0x12], rdbuf[0x13], rdbuf[0x14]); + + /* Initialize Registers per spec. */ + MT2032_SetRegister(2, 0xff); + MT2032_SetRegister(3, 0x0f); + MT2032_SetRegister(4, 0x1f); + MT2032_SetRegister(6, 0xe4); + MT2032_SetRegister(7, 0x8f); + MT2032_SetRegister(8, 0xc3); + MT2032_SetRegister(9, 0x4e); + MT2032_SetRegister(10, 0xec); + MT2032_SetRegister(13, 0x32); + + /* Adjust XOGC (register 7), wait for XOK */ + xogc = 7; + do { + DELAY(10000); + xok = MT2032_GetRegister(0x0e) & 0x01; + if (xok == 1) { + break; + } + xogc--; + if (xogc == 3) { + xogc = 4; /* min. 4 per spec */ + break; + } + MT2032_SetRegister(7, 0x88 + xogc); + } while (xok != 1); + + TDA9887_init(bktr, 1); + + MT2032_XOGC = xogc; + + return 0; + } + + static int + MT2032_SpurCheck(int f1, int f2, int spectrum_from, int spectrum_to) + { + int n1 = 1, n2, f; + + f1 = f1 / 1000; /* scale to kHz to avoid 32bit overflows */ + f2 = f2 / 1000; + spectrum_from /= 1000; + spectrum_to /= 1000; + + do { + n2 = -n1; + f = n1 * (f1 - f2); + do { + n2--; + f = f - f2; + if ((f > spectrum_from) && (f < spectrum_to)) { + return 1; + } + } while ((f > (f2 - spectrum_to)) || (n2 > -5)); + n1++; + } while (n1 < 5); + + return 0; + } + + static int + MT2032_ComputeFreq( + int rfin, + int if1, + int if2, + int spectrum_from, + int spectrum_to, + unsigned char *buf, + int *ret_sel, + int xogc + ) + { /* all in Hz */ + int fref, lo1, lo1n, lo1a, s, sel; + int lo1freq, desired_lo1, desired_lo2, lo2, lo2n, lo2a, + lo2num, lo2freq; + int nLO1adjust; + + fref = 5250 * 1000; /* 5.25MHz */ + + /* per spec 2.3.1 */ + desired_lo1 = rfin + if1; + lo1 = (2 * (desired_lo1 / 1000) + (fref / 1000)) / (2 * fref / 1000); + lo1freq = lo1 * fref; + desired_lo2 = lo1freq - rfin - if2; + + /* per spec 2.3.2 */ + for (nLO1adjust = 1; nLO1adjust < 3; nLO1adjust++) { + if (!MT2032_SpurCheck(lo1freq, desired_lo2, spectrum_from, spectrum_to)) { + break; + } + if (lo1freq < desired_lo1) { + lo1 += nLO1adjust; + } else { + lo1 -= nLO1adjust; + } + + lo1freq = lo1 * fref; + desired_lo2 = lo1freq - rfin - if2; + } + + /* per spec 2.3.3 */ + s = lo1freq / 1000 / 1000; + + if (MT2032_OPTIMIZE_VCO) { + if (s > 1890) { + sel = 0; + } else if (s > 1720) { + sel = 1; + } else if (s > 1530) { + sel = 2; + } else if (s > 1370) { + sel = 3; + } else { + sel = 4;/* >1090 */ + } + } else { + if (s > 1790) { + sel = 0;/* <1958 */ + } else if (s > 1617) { + sel = 1; + } else if (s > 1449) { + sel = 2; + } else if (s > 1291) { + sel = 3; + } else { + sel = 4;/* >1090 */ + } + } + + *ret_sel = sel; + + /* per spec 2.3.4 */ + lo1n = lo1 / 8; + lo1a = lo1 - (lo1n * 8); + lo2 = desired_lo2 / fref; + lo2n = lo2 / 8; + lo2a = lo2 - (lo2n * 8); + /* scale to fit in 32bit arith */ + lo2num = ((desired_lo2 / 1000) % (fref / 1000)) * 3780 / (fref / 1000); + lo2freq = (lo2a + 8 * lo2n) * fref + lo2num * (fref / 1000) / 3780 * 1000; + + if (lo1a < 0 || lo1a > 7 || lo1n < 17 || lo1n > 48 || lo2a < 0 || + lo2a > 7 || lo2n < 17 || lo2n > 30) { + printf("MT2032: parameter out of range\n"); + return -1; + } + /* set up MT2032 register map for transfer over i2c */ + buf[0] = lo1n - 1; + buf[1] = lo1a | (sel << 4); + buf[2] = 0x86; /* LOGC */ + buf[3] = 0x0f; /* reserved */ + buf[4] = 0x1f; + buf[5] = (lo2n - 1) | (lo2a << 5); + if (rfin < 400 * 1000 * 1000) { + buf[6] = 0xe4; + } else { + buf[6] = 0xf4; /* set PKEN per rev 1.2 */ + } + + buf[7] = 8 + xogc; + buf[8] = 0xc3; /* reserved */ + buf[9] = 0x4e; /* reserved */ + buf[10] = 0xec; /* reserved */ + buf[11] = (lo2num & 0xff); + buf[12] = (lo2num >> 8) | 0x80; /* Lo2RST */ + + return 0; + } + + static int + MT2032_CheckLOLock(bktr_ptr_t bktr) + { + int t, lock = 0; + for (t = 0; t < 10; t++) { + lock = MT2032_GetRegister(0x0e) & 0x06; + if (lock == 6) { + break; + } + DELAY(1000); + } + return lock; + } + + static int + MT2032_OptimizeVCO(bktr_ptr_t bktr, int sel, int lock) + { + int tad1, lo1a; + + tad1 = MT2032_GetRegister(0x0f) & 0x07; + + if (tad1 == 0) { + return lock; + } + if (tad1 == 1) { + return lock; + } + if (tad1 == 2) { + if (sel == 0) { + return lock; + } else { + sel--; + } + } else { + if (sel < 4) { + sel++; + } else { + return lock; + } + } + lo1a = MT2032_GetRegister(0x01) & 0x07; + MT2032_SetRegister(0x01, lo1a | (sel << 4)); + lock = MT2032_CheckLOLock(bktr); + return lock; + } + + static int + MT2032_SetIFFreq(bktr_ptr_t bktr, int rfin, int if1, int if2, int from, int to) + { + u_char buf[21]; + int lint_try, sel, lock = 0; + + if (MT2032_ComputeFreq(rfin, if1, if2, from, to, &buf[0], &sel, MT2032_XOGC) == -1) + return -1; + + TDA9887_init(bktr, 0); + + printf("%s: MT2032-SetIFFreq: 0x%02X%02X%02X%02X...\n", + bktr_name(bktr), + buf[0x00], buf[0x01], buf[0x02], buf[0x03]); + + /* send only the relevant registers per Rev. 1.2 */ + MT2032_SetRegister(0, buf[0x00]); + MT2032_SetRegister(1, buf[0x01]); + MT2032_SetRegister(2, buf[0x02]); + + MT2032_SetRegister(5, buf[0x05]); + MT2032_SetRegister(6, buf[0x06]); + MT2032_SetRegister(7, buf[0x07]); + + MT2032_SetRegister(11, buf[0x0B]); + MT2032_SetRegister(12, buf[0x0C]); + + /* wait for PLLs to lock (per manual), retry LINT if not. */ + for (lint_try = 0; lint_try < 2; lint_try++) { + lock = MT2032_CheckLOLock(bktr); + + if (MT2032_OPTIMIZE_VCO) { + lock = MT2032_OptimizeVCO(bktr, sel, lock); + } + if (lock == 6) { + break; + } + /* set LINT to re-init PLLs */ + MT2032_SetRegister(7, 0x80 + 8 + MT2032_XOGC); + DELAY(10000); + MT2032_SetRegister(7, 8 + MT2032_XOGC); + } + if (lock != 6) + printf("%s: PLL didn't lock\n", bktr_name(bktr)); + + MT2032_SetRegister(2, 0x20); + + TDA9887_init(bktr, 1); + return 0; + } + + static void + mt2032_set_tv_freq(bktr_ptr_t bktr, unsigned int freq) + { + int if2,from,to; + + from=32900*1000; + to=39900*1000; + if2=38900*1000; + + printf("%s: setting frequency to %d\n", bktr_name(bktr), freq*62500); + MT2032_SetIFFreq(bktr, freq*62500 /* freq*1000*1000/16 */, + 1090*1000*1000, if2, from, to); } diff -c .org/bktr_tuner.h ./bktr_tuner.h *** .org/bktr_tuner.h Mon Sep 27 00:06:20 1999 --- ./bktr_tuner.h Thu Aug 28 23:34:20 2003 *************** *** 59,65 **** #define PHILIPS_FR1236_SECAM 11 /* These have FM radio support */ #define ALPS_TSCH5 12 #define ALPS_TSBH1 13 ! #define Bt848_MAX_TUNER 14 /* experimental code for Automatic Frequency Control */ #define TUNER_AFC --- 59,66 ---- #define PHILIPS_FR1236_SECAM 11 /* These have FM radio support */ #define ALPS_TSCH5 12 #define ALPS_TSBH1 13 ! #define TUNER_MT2032 14 ! #define Bt848_MAX_TUNER 15 /* experimental code for Automatic Frequency Control */ #define TUNER_AFC From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 14:48:04 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1623B16A4CE for ; Fri, 26 Mar 2004 14:48:04 -0800 (PST) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1D3A43D2F for ; Fri, 26 Mar 2004 14:48:03 -0800 (PST) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from kg-work.kg4.no (131.80-202-174.nextgentel.com [80.202.174.131]) by mail.broadpark.no (Postfix) with SMTP id 039AC6E86 for ; Fri, 26 Mar 2004 23:48:04 +0100 (MET) Date: Fri, 26 Mar 2004 23:48:00 +0100 From: Torfinn Ingolfsen To: freebsd-multimedia@freebsd.org Message-Id: <20040326234800.1c5a0423.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd4.9) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq;m"_0v;~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: remote TV viewing? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 22:48:04 -0000 I have a multimedia machine, which has a TV tuner card, and is connected to the (local, in-house) network. After setting the appropriate access controls, I can do things like: DISPLAY=my.workstation:0.0 xawtv and have a TV display on my workstation, which is another room. Great when I just need a quick view on the TV, for weather reports, news, etc. But, how do I get the sound transported to my workstation? BTW, is there a better way to do this? (remote TV viewing) I tried with vnc (tightvnc), but couldn't get a picture from xawtv (there were complaints about the "RENDER" extension missing, or the "XVideo" extension, depending onm which program I tried). Installing a TV card in my workstation isn't an option at the moment. -- Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 26 20:36:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CC9816A4CE for ; Fri, 26 Mar 2004 20:36:49 -0800 (PST) Received: from yucca.net (dora.k12.nm.us [216.167.144.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F7C643D31 for ; Fri, 26 Mar 2004 20:36:49 -0800 (PST) (envelope-from groups@xscd.com) Received: from 192.168.2.136 [64.185.47.77] by yucca.net with ESMTP (SMTPD32-8.05) id A4E25FC70038; Fri, 26 Mar 2004 21:36:50 -0700 From: Steve D To: freebsd-multimedia@freebsd.org Date: Fri, 26 Mar 2004 21:36:57 -0700 User-Agent: KMail/1.5.2 References: <20040326191818.46487.qmail@web41601.mail.yahoo.com> In-Reply-To: <20040326191818.46487.qmail@web41601.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403262136.57337.groups@xscd.com> Subject: Re: Sound recording and producing CDs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 04:36:49 -0000 On Friday 26 March 2004 12:18 pm, Ben H. wrote: > My real question is are they the best tools available for > the job or should I consider different ports? [...] > But... a sound recording box... I need some Multimedia > Expert opinions before I get started... --- --- There are a number of ways to get digital or analog audio into the computer and stored as a digital file, depending on what type of soundcard or hardware you have. For opening the digital audio files in a graphical environment and editing them, a lot of people seem to like audacity: /usr/ports/audio/audacity http://audacity.sourceforge.net I've tried it a little on Linux and FreeBSD and I like it a lot, although I am no expert. You might want to save a copy of the digital audio file as a .wav (Windows audio file format) file on the hard disk, as many audio-oriented programs understand and can work with WAV (.wav) files. To burn the audio file(s) to CD, you might want to use burncd (for ATAPI CD drives) or cdrecord (for ATAPI CD drives using SCSI emulation--documentation available in FreeBSD Handbook and many places on the 'net--or using SCSI CD-R(W) drives). K3B is a graphical CD-burning application that uses the common command-line CD and audio related tools in the background, but is less intimidating to some because of its mouse-oriented point-and-click and click-and-drag interface. BUT, if you are burning .wav files to audio CD, remember that .wav files have header information in the file format that exists for programs to identify the file and its characteristics, but which produce an audible, fairly loud click when played on a CD player. This header information is automatically stripped by some CD-recording programs (I believe that cdrecord automatically strips it) but not by others (my preferred CD-recording program, burncd, does not automatically strip the header information from .wav files. Instead, prepare a copy of your .wav files, converting them into .cdr files using the command-line program sox. Sox not only strips the non-audio header information from the .wav files, it also pads the resulting .cdr file so that it is exactly a size that can be evenly divided by the standard block size of an audio CD. This is important, and can mean the difference between audio that plays back perfectly once it is recorded to CD, and a CD that produces nothing but hiss when played (I know, since I made several bad CDs before I discovered this important detail). Like I said, I'm no expert, but I come from a professional musician background and have maintained a hobbyist's level of interest in audio, CDs and DVDs, and Linux and FreeBSD. The 'net is full of good Linux/FreeBSD audio information. Here's a couple URls: http://www.bsdsearch.com/dir/applications/multimedia/audiosound.php http://mixonline.com/ar/audio_free_beer_2/ Good luck, and best wishes, Steve D New Mexico US -- ---------------------------------------------------------------- Civilization is a process in search of humanity. -Eli Khamarov ---------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 03:49:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D71BA16A4CE for ; Sat, 27 Mar 2004 03:49:49 -0800 (PST) Received: from www.citello.it (host170-131.pool80117.interbusiness.it [80.117.131.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79F1B43D2D for ; Sat, 27 Mar 2004 03:49:49 -0800 (PST) (envelope-from molter@tin.it) Received: from gattaccio.codalunga (ANice-205-1-33-125.w83-112.abo.wanadoo.fr [83.112.139.125]) by www.citello.it (Postfix) with ESMTP id CC8803A2 for ; Sat, 27 Mar 2004 12:49:46 +0100 (CET) Received: by gattaccio.codalunga (Postfix, from userid 1001) id 49DFE4118; Sat, 27 Mar 2004 12:44:39 +0100 (CET) Date: Sat, 27 Mar 2004 12:44:39 +0100 From: Marco Molteni To: freebsd-multimedia@freebsd.org Message-Id: <20040327124439.51fbb10a@localhost> In-Reply-To: <20040326234800.1c5a0423.torfinn.ingolfsen@broadpark.no> References: <20040326234800.1c5a0423.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: remote TV viewing? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 11:49:49 -0000 On Fri, 26 Mar 2004 23:48:00 +0100 Torfinn Ingolfsen wrote: > I have a multimedia machine, which has a TV tuner card, and is > connected to the (local, in-house) network. > After setting the appropriate access controls, I can do things like: > > DISPLAY=my.workstation:0.0 xawtv > > and have a TV display on my workstation, which is another room. Great > when I just need a quick view on the TV, for weather reports, news, > etc. > > But, how do I get the sound transported to my workstation? have a look at NAS network audio system (there is also a fbsd port) http://radscan.com/nas.html marco From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 08:15:13 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1F7E16A4CE for ; Sat, 27 Mar 2004 08:15:13 -0800 (PST) Received: from mail011.syd.optusnet.com.au (mail011.syd.optusnet.com.au [211.29.132.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E45E43D41 for ; Sat, 27 Mar 2004 08:15:12 -0800 (PST) (envelope-from akm@theinternet.com.au) Received: from theinternet.com.au (c211-30-103-113.carlnfd1.nsw.optusnet.com.au [211.30.103.113]) i2RGF5105731; Sun, 28 Mar 2004 02:15:05 +1000 Received: from theinternet.com.au (localhost [127.0.0.1]) by theinternet.com.au (8.12.11/8.12.11) with ESMTP id i2RGFMBv019977; Sun, 28 Mar 2004 02:15:22 +1000 (EST) (envelope-from akm@theinternet.com.au) Received: (from akm@localhost) by theinternet.com.au (8.12.11/8.12.11/Submit) id i2RGFLkD019976; Sun, 28 Mar 2004 02:15:21 +1000 (EST) (envelope-from akm) Date: Sun, 28 Mar 2004 02:15:21 +1000 From: Andrew Milton To: Torfinn Ingolfsen Message-ID: <20040327161521.GE4875@camelot.theinternet.com.au> Mail-Followup-To: Torfinn Ingolfsen , freebsd-multimedia@freebsd.org References: <20040326234800.1c5a0423.torfinn.ingolfsen@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040326234800.1c5a0423.torfinn.ingolfsen@broadpark.no> User-Agent: Mutt/1.5.6i cc: freebsd-multimedia@freebsd.org Subject: Re: remote TV viewing? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 16:15:13 -0000 +-------[ Torfinn Ingolfsen ]---------------------- | I have a multimedia machine, which has a TV tuner card, and is connected | to the (local, in-house) network. | After setting the appropriate access controls, I can do things like: | | DISPLAY=my.workstation:0.0 xawtv | | and have a TV display on my workstation, which is another room. Great | when I just need a quick view on the TV, for weather reports, news, etc. | | But, how do I get the sound transported to my workstation? | | BTW, is there a better way to do this? (remote TV viewing) There's a couple of things in ports you can try. One is dtv, this does sound capture from the video card and can be a client or a server. ffmpeg is an encoder that can capture and has a streaming server included. You could also try using vlc (I'm not sure if the vlc in ports can capture directly from bsd video devices though). Or some combination of the above items d8) -- Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | M:+61 416 022 411 | ACN: 082 081 472 ABN: 83 082 081 472 |akm@theinternet.com.au| Carpe Daemon From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 11:33:41 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55F5D16A4CE for ; Sat, 27 Mar 2004 11:33:41 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2AE043D31 for ; Sat, 27 Mar 2004 11:33:40 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2RJXVkQ002792; Sat, 27 Mar 2004 14:33:32 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2RJXVU06337; Sat, 27 Mar 2004 14:33:31 -0500 (EST) Date: Sat, 27 Mar 2004 14:33:31 -0500 (EST) From: John Wehle Message-Id: <200403271933.i2RJXVU06337@jwlab.FEITH.COM> To: andreas@dahlen.ws Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 19:33:41 -0000 > I got sound on some channels but not all, the one that I don't get sound > from are using Nicam stereo. Do I need to do any special configuration > to get Nicam to work? Nope, no special configuration required. However you do need to apply the enclosed patch. Let me know if that doesn't do it for you. -- John -----------------8<-----------------------8<------------------------------ *** sys/dev/cxm/cxm.h.ORIGINAL Sat Mar 27 14:16:57 2004 --- sys/dev/cxm/cxm.h Sat Mar 27 14:13:39 2004 *************** struct cxm_msp_setting { *** 470,476 **** struct cxm_msp_command { unsigned int nsettings; ! struct cxm_msp_setting settings[4]; }; int cxm_msp_init( struct cxm_softc *sc ); --- 470,476 ---- struct cxm_msp_command { unsigned int nsettings; ! struct cxm_msp_setting settings[5]; }; int cxm_msp_init( struct cxm_softc *sc ); *** sys/dev/cxm/cxm_audio.c.ORIGINAL Thu Mar 18 01:57:25 2004 --- sys/dev/cxm/cxm_audio.c Sat Mar 27 14:12:06 2004 *************** *** 69,75 **** static const struct cxm_msp_command msp343xG_init = { ! 4, { /* Enable Automatic Sound Select */ { CXM_MSP3400C_DEM, 0x0030, { 0x20, 0x03 } }, --- 69,75 ---- static const struct cxm_msp_command msp343xG_init = { ! 5, { /* Enable Automatic Sound Select */ { CXM_MSP3400C_DEM, 0x0030, { 0x20, 0x03 } }, *************** msp343xG_init = { *** 77,82 **** --- 77,84 ---- { CXM_MSP3400C_DFP, 0x000d, { 0x19, 0x00 } }, /* FM / AM Prescale = 100 Khz and FM Matrix = Sound A Mono */ { CXM_MSP3400C_DFP, 0x000e, { 0x24, 0x03 } }, + /* NICAM Prescale = 9 dB */ + { CXM_MSP3400C_DFP, 0x0010, { 0x5a, 0x00 } }, /* Enable Automatic Standard Select */ { CXM_MSP3400C_DEM, 0x0020, { 0x00, 0x01 } }, } ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 11:43:56 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 032E516A4CF for ; Sat, 27 Mar 2004 11:43:56 -0800 (PST) Received: from teena.dahlen.ws (h96n2fls33o990.telia.com [213.67.6.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1508743D39 for ; Sat, 27 Mar 2004 11:43:55 -0800 (PST) (envelope-from andreas@dahlen.ws) Received: from mikaela (mikaela.dahlen.ws [10.0.1.100]) by teena.dahlen.ws (8.12.9p2/8.12.8) with ESMTP id i2RJhuKL045816; Sat, 27 Mar 2004 20:43:56 +0100 (CET) (envelope-from andreas@dahlen.ws) From: =?iso-8859-1?Q?Andreas_Dahl=E9n?= To: "'John Wehle'" Date: Sat, 27 Mar 2004 20:43:59 +0100 Message-ID: <000001c41433$d9a58ed0$6401000a@mikaela> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <200403271933.i2RJXVU06337@jwlab.FEITH.COM> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.73 cc: multimedia@freebsd.org Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 19:43:56 -0000 Hi! Tank you, that worked perfect. Soon I've got my PVR-solution with a Mediaserver and Pinnacle Showcenter working as a charm. /Andreas -----Original Message----- From: John Wehle [mailto:john@feith.com] Sent: den 27 mars 2004 20:34 To: andreas@dahlen.ws Cc: multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 > I got sound on some channels but not all, the one that I don't get sound > from are using Nicam stereo. Do I need to do any special configuration > to get Nicam to work? Nope, no special configuration required. However you do need to apply the enclosed patch. Let me know if that doesn't do it for you. -- John -----------------8<-----------------------8<---------------------------- -- *** sys/dev/cxm/cxm.h.ORIGINAL Sat Mar 27 14:16:57 2004 --- sys/dev/cxm/cxm.h Sat Mar 27 14:13:39 2004 *************** struct cxm_msp_setting { *** 470,476 **** struct cxm_msp_command { unsigned int nsettings; ! struct cxm_msp_setting settings[4]; }; int cxm_msp_init( struct cxm_softc *sc ); --- 470,476 ---- struct cxm_msp_command { unsigned int nsettings; ! struct cxm_msp_setting settings[5]; }; int cxm_msp_init( struct cxm_softc *sc ); *** sys/dev/cxm/cxm_audio.c.ORIGINAL Thu Mar 18 01:57:25 2004 --- sys/dev/cxm/cxm_audio.c Sat Mar 27 14:12:06 2004 *************** *** 69,75 **** static const struct cxm_msp_command msp343xG_init = { ! 4, { /* Enable Automatic Sound Select */ { CXM_MSP3400C_DEM, 0x0030, { 0x20, 0x03 } }, --- 69,75 ---- static const struct cxm_msp_command msp343xG_init = { ! 5, { /* Enable Automatic Sound Select */ { CXM_MSP3400C_DEM, 0x0030, { 0x20, 0x03 } }, *************** msp343xG_init = { *** 77,82 **** --- 77,84 ---- { CXM_MSP3400C_DFP, 0x000d, { 0x19, 0x00 } }, /* FM / AM Prescale = 100 Khz and FM Matrix = Sound A Mono */ { CXM_MSP3400C_DFP, 0x000e, { 0x24, 0x03 } }, + /* NICAM Prescale = 9 dB */ + { CXM_MSP3400C_DFP, 0x0010, { 0x5a, 0x00 } }, /* Enable Automatic Standard Select */ { CXM_MSP3400C_DEM, 0x0020, { 0x00, 0x01 } }, } ------------------------------------------------------------------------ - | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------ - From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 11:44:56 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 038C116A4CE for ; Sat, 27 Mar 2004 11:44:56 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89A7943D39 for ; Sat, 27 Mar 2004 11:44:55 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2RJiqkQ002968; Sat, 27 Mar 2004 14:44:52 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2RJigT06373; Sat, 27 Mar 2004 14:44:42 -0500 (EST) Date: Sat, 27 Mar 2004 14:44:42 -0500 (EST) From: John Wehle Message-Id: <200403271944.i2RJigT06373@jwlab.FEITH.COM> To: christoph.schnauss@berlin.de Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: fernando@secret.org cc: multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 19:44:56 -0000 >> I'm using a web based VCR application I wrote in C and PHP to record >> programs. It's not whizzy, however it gets the job done. If you're >> interested I can send you a copy. > > I'm interested, and guess, any others too ;-) Enclosed. -- John -------------------------8<----------------------------8<-------------------- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # tvrec # tvrec/README # tvrec/etc # tvrec/etc/tvrec.sh # tvrec/conf # tvrec/conf/config.php # tvrec/src # tvrec/src/Makefile # tvrec/src/tvrecd.c # tvrec/data # tvrec/htdocs # tvrec/htdocs/scheddeli.php # tvrec/htdocs/sched.php # tvrec/htdocs/schedaddi.php # echo c - tvrec mkdir -p tvrec > /dev/null 2>&1 echo x - tvrec/README sed 's/^X//' >tvrec/README << 'END-of-tvrec/README' X1) Verify the web environment. The VCR application is known X to work in an environment which has: X X Apache (www.apache.org) 1.3.29 X PHP (www.php.net) 4.3.4 X MM (www.ossp.org/pkg/lib/mm/) 1.3.0 X Berkley DB (www.sleepycat.com) 4.1.25 patchlevel 1 X X where PHP is configured with: X X ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-dba \ X --with-mm --with-db4=/usr/local/BerkeleyDB --with-flatfile X X2) Install the web components. X X mkdir /home/www/tvrec X find conf data htdocs -depth -print | cpio -pvumd /home/www/tvrec X chown -R root:www /home/www/tvrec X chown -R nobody:www /home/www/tvrec/data X X3) Configure the web server by adding: X X Alias /tvrec /home/www/tvrec/htdocs/ X Alias /tv-rec /home/www/tvrec/htdocs/sched.php X X X AllowOverride None X Options None X Order deny,allow X Deny from all X Allow from xxx.xxx.xxx.xxx/xx X X X to httpd.conf and restarting the server: X X /usr/local/apache/bin/apachectl graceful X X4) Install the daemon. X X cd src X make X cp tvrecd /usr/local/sbin X chmod 700 /usr/local/sbin/tvrecd X chown root:wheel /usr/local/sbin/tvrecd X X5) Edit the start / stop script as necessary to set X the directories for the schedule database and X video recordings. X X6) Install the start / stop script. X X cd etc X cp tvrec.sh /usr/local/etc/rc.d X chmod 744 /usr/local/etc/rc.d/tvrec.sh X chown root:sys /usr/local/etc/rc.d/tvrec.sh X X7) Start the daemon. X X /usr/local/etc/rc.d/tvrec.sh start X X8) Goto http:/localhost/tv-rec and enter a program X to record. X X9) Enjoy! END-of-tvrec/README echo c - tvrec/etc mkdir -p tvrec/etc > /dev/null 2>&1 echo x - tvrec/etc/tvrec.sh sed 's/^X//' >tvrec/etc/tvrec.sh << 'END-of-tvrec/etc/tvrec.sh' X#!/bin/sh X# X# This file should have uid root, gid sys and chmod 744 X# X X XPATH=$PATH:/usr/local/bin Xexport PATH X Xif [ ! -d /usr/local/bin ] Xthen # /usr not mounted X exit Xfi X Xkillproc() { # kill the named process(es) X pid=`/bin/ps -ax | X /usr/bin/grep -w $1 | X /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` X [ "$pid" != "" ] && kill $pid X} X X# Start/stop processes required for TVrecd server X Xcase "$1" in X X'start') X echo "Starting TVrecd" X /usr/local/sbin/tvrecd -f /home/www/tvrec/data/schedule.db -o /home/multimedia/video/tv X ;; X'stop') X echo "Stopping TVrecd" X killproc tvrecd X ;; X'restart') X $0 stop X $0 start X ;; X*) X echo "Usage: /usr/local/etc/rc.d/tvrec.sh { start | stop }" X ;; Xesac X Xexit 0 END-of-tvrec/etc/tvrec.sh echo c - tvrec/conf mkdir -p tvrec/conf > /dev/null 2>&1 echo x - tvrec/conf/config.php sed 's/^X//' >tvrec/conf/config.php << 'END-of-tvrec/conf/config.php' X END-of-tvrec/conf/config.php echo c - tvrec/src mkdir -p tvrec/src > /dev/null 2>&1 echo x - tvrec/src/Makefile sed 's/^X//' >tvrec/src/Makefile << 'END-of-tvrec/src/Makefile' XCFLAGS = -g -O2 XCPPFLAGS = -I/usr/local/BerkeleyDB/include -I/usr/local/include XLIBS = -L/usr/local/BerkeleyDB/lib -R/usr/local/BerkeleyDB/lib -ldb X Xall: tvrecd X Xtvrecd: tvrecd.c X $(CC) $(CFLAGS) $(CPPFLAGS) -o tvrecd tvrecd.c $(LIBS) X X Xclean: X rm -f *.o X X Xclobber: X rm -f *.o X rm -f tvrecd END-of-tvrec/src/Makefile echo x - tvrec/src/tvrecd.c sed 's/^X//' >tvrec/src/tvrecd.c << 'END-of-tvrec/src/tvrecd.c' X/* X * Copyright (c) 2003 X * John Wehle . All rights reserved. X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. All advertising materials mentioning features or use of this software X * must display the following acknowledgement: X * This product includes software developed by John Wehle. X * 4. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE X * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, X * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES X * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR X * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, X * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN X * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE X * POSSIBILITY OF SUCH DAMAGE. X */ X X/* X * Daemon for recording TV shows based on a schedule stored X * in a Berkeley DB. X */ X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X X#include "db.h" X X X#define CHECK_DATABASE_SECONDS 20 X#define DATABASE "schedule.db" X#define LOGFILE "/var/log/tvrecd.log" X X Xstatic const char *MyName = "tvrecd"; X Xstatic int daimon = 0; Xstatic volatile int shutdown_server = 0; Xstatic sigset_t block_signal_set; X X Xenum quality { vcd_qt, svcd_qt, dvd_qt }; Xenum repeat { none_rpt, daily_rpt, weekly_rpt }; X Xstruct program { X unsigned int channel; X enum quality quality; X time_t start; X time_t stop; X enum repeat repeat; X char *name; X struct program *next; X }; X X Xstatic void Xcatch_signal () X { X X shutdown_server = 1; X } X X Xstatic void Xdaemonize() X { X X#ifdef SIGTSTP X signal(SIGTSTP, SIG_IGN); X#endif X#ifdef SIGTTIN X signal(SIGTTIN, SIG_IGN); X#endif X#ifdef SIGTTOU X signal(SIGTTOU, SIG_IGN); X#endif X X switch (fork ()) { X case 0: X break; X X case -1: X fprintf (stderr, "%s: daemonize -- fork failed.", MyName); X perror (MyName); X exit (1); X /* NOTREACHED */ X break; X X default: X exit (0); X /* NOTREACHED */ X break; X } X X setsid(); X X close (0); X close (1); X close (2); X X (void)open ("/dev/null", O_RDWR); X (void)open ("/dev/null", O_RDWR); X (void)open (LOGFILE, O_WRONLY | O_APPEND | O_CREAT, 0644); X X daimon = 1; X } X X Xstatic void Xerrmsg (const char *fmt, ...) X { X char time_stamp[256]; X struct tm *tmp; X time_t now; X va_list args; X X if (! daimon) { X fprintf (stderr, "%s: ", MyName); X X va_start (args, fmt); X vfprintf (stderr, fmt, args); X va_end (args); X X if (! strchr (fmt, '\n')) X fputc ('\n', stderr); X X fflush (stderr); X return; X } X X if (flock (fileno (stderr), LOCK_EX) == -1) { X fprintf (stderr, "%s: errmsg -- can't lock log.\n", MyName); X perror (MyName); X return; X } X X time (&now); X X if ( !(tmp = localtime (&now)) ) { X fprintf (stderr, "%s: errmsg -- localtime failed.\n", MyName); X perror (MyName); X fflush (stderr); X (void)flock (fileno (stderr), LOCK_UN); X return; X } X X strftime (time_stamp, sizeof (time_stamp), "%b %d %H:%M:%S", tmp); X fprintf (stderr, "%s %s[%d]: ", time_stamp, MyName, (int)getpid ()); X X va_start (args, fmt); X vfprintf (stderr, fmt, args); X va_end (args); X X if (! strchr (fmt, '\n')) X fputc ('\n', stderr); X X fflush (stderr); X X if (flock (fileno (stderr), LOCK_UN) == -1) { X fprintf (stderr, "%s: errmsg -- can't unlock log.\n", MyName); X perror (MyName); X fflush (stderr); X return; X } X } X X Xstatic struct program * Xfetch_schedule (const char *database) X { X DB *dbp; X DBC *dbcp; X DBT data; X DBT key; X char lock_file[MAXPATHLEN]; X char *buf; X char *ptr; X int fd; X int len; X int ret; X struct program *pp; X struct program *next; X struct tm tm; X struct tm *tmp; X time_t now; X X len = snprintf (lock_file, sizeof (lock_file), "%s.lck", database); X if (len <= 0 || len >= sizeof (lock_file)) { X errmsg ("fetch_schedule -- can't generate lock filename.\n"); X return NULL; X } X X if ((fd = open (lock_file, O_RDONLY)) < 0) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't open lock file.\n"); X errmsg (errstr); X return NULL; X } X X if (flock (fd, LOCK_SH) == -1) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't lock database.\n"); X errmsg (errstr); X close (fd); X return NULL; X } X X if ((ret = db_create (&dbp, NULL, 0)) != 0) { X errmsg ("db_create: %s\n", db_strerror (ret)); X close (fd); X return NULL; X } X X dbp->set_errpfx (dbp, MyName); X X if ((ret = dbp->open (dbp, NULL, database, NULL, X DB_BTREE, DB_RDONLY | DB_FCNTL_LOCKING, 0)) != 0) { X dbp->err (dbp, ret, "DB->open failed for %s", database); X dbp->close (dbp, 0); X close (fd); X return NULL; X } X X if ((ret = dbp->cursor (dbp, NULL, &dbcp, 0)) != 0) { X dbp->err (dbp, ret, "DB->cursor failed"); X dbp->close (dbp, 0); X close (fd); X return NULL; X } X X memset (&key, 0, sizeof (key)); X memset (&data, 0, sizeof (data)); X X buf = NULL; X X pp = NULL; X next = NULL; X X while ((ret = dbcp->c_get (dbcp, &key, &data, DB_NEXT)) == 0) { X if (! (buf = malloc (data.size + 1)) ) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't allocate buffer.\n"); X errmsg (errstr); X break; X } X X memcpy (buf, (char *)data.data, data.size); X buf[data.size] = '\0'; X X if (! (pp = (struct program *)calloc (1, sizeof (struct program))) ) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't allocate program.\n"); X errmsg (errstr); X break; X } X X if (! (ptr = strtok (buf, ",")) ) { X errmsg ("fetch_schedule -- can't parse channel.\n"); X break; X } X pp->channel = atoi (ptr); X X if (! (ptr = strtok (NULL, ",")) ) { X errmsg ("fetch_schedule -- can't parse quality.\n"); X break; X } X pp->quality = dvd_qt; X if (strcasecmp (ptr, "vcd") == 0) X pp->quality = vcd_qt; X else if (strcasecmp (ptr, "svcd") == 0) X pp->quality = svcd_qt; X X time (&now); X if (! (tmp = localtime (&now)) ) { X errmsg ("fetch_schedule -- localtime failed.\n"); X break; X } X tm = *tmp; X X if (! (ptr = strtok (NULL, ",")) || ! strptime (ptr, "%m/%d/%Y", &tm)) { X errmsg ("fetch_schedule -- can't parse date.\n"); X break; X } X X if (! (ptr = strtok (NULL, ",")) || ! strptime (ptr, "%H:%M", &tm)) { X errmsg ("fetch_schedule -- can't parse start.\n"); X break; X } X pp->start = mktime (&tm); X X if (! (ptr = strtok (NULL, ",")) || ! strptime (ptr, "%H:%M", &tm)) { X errmsg ("fetch_schedule -- can't parse stop.\n"); X break; X } X pp->stop = mktime (&tm); X X if (difftime (pp->stop, pp->start) < 0) { X tm.tm_mday += 1; X pp->stop = mktime (&tm); X } X X if (! (ptr = strtok (NULL, ",")) ) { X errmsg ("fetch_schedule -- can't parse repeat.\n"); X break; X } X pp->repeat = none_rpt; X if (strcasecmp (ptr, "daily") == 0) X pp->repeat = daily_rpt; X else if (strcasecmp (ptr, "weekly") == 0) X pp->repeat = weekly_rpt; X X if (pp->repeat == daily_rpt || pp->repeat == weekly_rpt) X while (difftime (pp->stop, now) <= 0) { X if (! (tmp = localtime (&pp->start)) ) { X errmsg ("fetch_schedule -- can't adjust start.\n"); X break; X } X tm = *tmp; X tm.tm_mday += (pp->repeat == daily_rpt) ? 1 : 7; X pp->start = mktime (&tm); X X if (! (tmp = localtime (&pp->stop)) ) { X errmsg ("fetch_schedule -- can't adjust stop.\n"); X break; X } X tm = *tmp; X tm.tm_mday += (pp->repeat == daily_rpt) ? 1 : 7; X pp->stop = mktime (&tm); X } X X ptr += strlen (ptr) + 1; X while (isspace (*ptr)) X ptr++; X if (strpbrk (ptr, "\\/.:")) { X errmsg ("fetch_schedule -- invalid character in name.\n"); X break; X } X if ( !(pp->name = strdup (ptr)) ) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't allocate name.\n"); X errmsg (errstr); X break; X } X X pp->next = next; X next = pp; X pp = NULL; X X free (buf); X } X X dbcp->c_close (dbcp); X X if (ret != DB_NOTFOUND) { X if (ret != 0) X dbp->err (dbp, ret, "DBcursor->get failed"); X if (buf) X free (buf); X if (pp) X free (pp); X for (pp = next; pp; pp = next) { X next = pp->next; X free (pp->name); X free (pp); X } X dbp->close (dbp, 0); X close (fd); X return NULL; X } X X dbp->close (dbp, 0); X close (fd); X X if (! next) { X if (! (next = (struct program *)calloc (1, sizeof (struct program))) ) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't allocate program.\n"); X errmsg (errstr); X return NULL; X } X if ( !(next->name = strdup ("")) ) { X char *errstr = strerror (errno); X X errmsg ("fetch_schedule -- can't allocate name.\n"); X errmsg (errstr); X free (next); X return NULL; X } X } X X return next; X } X X Xstatic int Xopen_video_source (unsigned int video_unit) X { X char video_file[MAXPATHLEN]; X int fd; X int len; X X len = snprintf (video_file, sizeof (video_file), "/dev/bktr%u", video_unit); X if (len <= 0 || len >= sizeof (video_file)) { X errmsg ("open_video_source -- can't generate video device filename.\n"); X return -1; X } X X if ((fd = open (video_file, O_RDONLY)) < 0) { X char *errstr = strerror (errno); X X errmsg ("open_video_source -- can't open %s for input.\n", video_file); X errmsg (errstr); X return -1; X } X X return fd; X } X X Xstatic int Xrecord_program (struct program *pp, const char *output_directory, X unsigned int video_unit) X { X char buffer[512000]; X char output_file[MAXPATHLEN]; X char time_stamp[256]; X int afc; X int capture_command; X int done; X int ofd; X int vfd; X int len; X int ret; X sigset_t original_signal_set; X ssize_t nbytes_read; X struct bktr_capture_area capture_area; X struct pollfd fds; X struct tm *tmp; X time_t now; X X /* X * Open the video capture card. X */ X X if ((vfd = open_video_source (video_unit)) < 0) { X errmsg ("record_program -- open_video_source failed.\n"); X return -1; X } X X /* X * Set the channel. X * X * A failure isn't considered fatal since it may simply be X * that no station is at the specified channel. X */ X X afc = 1; X X if (ioctl (vfd, TVTUNER_SETAFC, &afc) < 0) { X errmsg ("record_program -- TVTUNER_SETAFC failed.\n"); X close (vfd); X return -1; X } X X if (ioctl (vfd, TVTUNER_SETCHNL, &pp->channel) < 0) { X close (vfd); X return 0; X } X X /* X * Set the quality. X */ X X memset (&capture_area, 0, sizeof (capture_area)); X X capture_area.x_offset = 0; X capture_area.y_offset = 0; X X switch (pp->quality) { X case vcd_qt: X capture_area.x_size = 352; X capture_area.y_size = 240; X break; X X case svcd_qt: X capture_area.x_size = 480; X capture_area.y_size = 480; X break; X X default: X capture_area.x_size = 720; X capture_area.y_size = 480; X break; X } X X if (ioctl (vfd, BT848_SCAPAREA, &capture_area) < 0) { X errmsg ("record_program -- BT848_SCAPAREA failed.\n"); X close (vfd); X return -1; X } X X done = 0; X X while (! done) { X X /* X * Generate the output filename. X */ X X if (! (tmp = localtime (&pp->start)) ) { X errmsg ("record_program -- localtime failed.\n"); X close (vfd); X return -1; X } X X strftime (time_stamp, sizeof (time_stamp), "%m-%d-%Y %H%M", tmp); X X len = snprintf (output_file, sizeof (output_file), X (strlen (pp->name) ? "%s/%s %u %s.mpg" X : "%s/%s %u.mpg"), X output_directory, time_stamp, pp->channel, pp->name); X if (len <= 0 || len >= sizeof (output_file)) { X errmsg ("record_program -- can't generate output filename.\n"); X close (vfd); X return -1; X } X X /* X * Open the output file. X */ X X if ((ofd = open (output_file, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) { X char *errstr = strerror (errno); X X if (access (output_file, F_OK) == 0) { X X /* X * We've already attempted to record the program. X */ X X close (vfd); X return 0; X } X X errmsg ("record_program -- can't open %s for output.\n", output_file); X errmsg (errstr); X close (vfd); X return -1; X } X X /* X * Record the video. X */ X X while (! done) { X if ((nbytes_read = read (vfd, buffer, sizeof (buffer))) <= 0 X || write (ofd, buffer, nbytes_read) != nbytes_read) { X char *errstr = strerror (errno); X X errmsg ("record_program -- read or write failed.\n"); X errmsg (errstr); X close (vfd); X close (ofd); X return -1; X } X X /* X * Allow signals to be processed for .1 millisecond X * so that shutdown_server can be updated. X */ X X sigprocmask (SIG_UNBLOCK, &block_signal_set, &original_signal_set); X usleep (100); X sigprocmask (SIG_SETMASK, &original_signal_set, NULL); X X time (&now); X X done = shutdown_server || difftime (pp->stop, now) <= 0; X } X X capture_command = METEOR_CAP_STOP_CONT; X X if (ioctl (vfd, METEORCAPTUR, &capture_command) < 0) { X errmsg ("record_program -- METEORCAPTUR failed.\n"); X close (vfd); X close (ofd); X return -1; X } X X fds.fd = vfd; X fds.events = POLLIN; X X while (poll (&fds, 1, 0) == 1 && (fds.revents & POLLIN)) X if ((nbytes_read = read (vfd, buffer, sizeof (buffer))) <= 0 X || write (ofd, buffer, nbytes_read) != nbytes_read) { X char *errstr = strerror (errno); X X errmsg ("record_program -- read or write failed.\n"); X errmsg (errstr); X close (vfd); X close (ofd); X return -1; X } X X close (ofd); X } X X close (vfd); X X return 1; X } X X Xstatic void Xusage () X { X X fprintf (stderr, "usage: %s [-d] [-f database] [-o outputdir]\n", MyName); X } X X Xint Xmain (int argc, char **argv) X { X const char *db; X const char *output_directory; X double diff; X int c; X int debug; X unsigned int delta; X sigset_t original_signal_set; X struct program program; X struct program *pp; X struct program *next; X struct stat statbuf; X time_t now; X X db = DATABASE; X debug = 0; X output_directory = "."; X X while ((c = getopt (argc, argv, "df:o:")) != EOF) X switch (c) { X case 'd': X debug = 1; X break; X X case 'f': X db = optarg; X break; X X case 'o': X output_directory = optarg; X break; X X default: X usage (); X exit (1); X /* NOTREACHED */ X break; X } X X if (stat (output_directory, &statbuf) < 0 X || (statbuf.st_mode & S_IFMT) != S_IFDIR) { X char *errstr = strerror (errno); X X errmsg ("stat failed for %s\n", output_directory); X errmsg ("or the path isn't a directory.\n"); X errmsg (errstr); X exit (1); X } X X if (! debug) X daemonize (); X X sigemptyset(&block_signal_set); X sigaddset(&block_signal_set, SIGHUP); X sigaddset(&block_signal_set, SIGINT); X sigaddset(&block_signal_set, SIGTERM); X X if (signal (SIGHUP, SIG_IGN) != SIG_IGN) X (void)signal (SIGHUP, catch_signal); X if (signal (SIGINT, SIG_IGN) != SIG_IGN) X (void)signal (SIGINT, catch_signal); X (void)signal (SIGTERM, catch_signal); X X sigprocmask (SIG_BLOCK, &block_signal_set, NULL); X X while (! shutdown_server) { X if (! (pp = fetch_schedule (db)) ) { X errmsg ("fetch_schedule failed.\n"); X exit (1); X } X X delta = CHECK_DATABASE_SECONDS; X memset (&program, 0, sizeof (program)); X time (&now); X X while (pp) { X next = pp->next; X X if (difftime (now, pp->start) >= 0 && difftime (now, pp->stop) < 0) { X program = *pp; X program.name = strdup (pp->name); X X if (pp->name && ! program.name) { X char *errstr = strerror (errno); X X errmsg ("strdup failed.\n"); X errmsg (errstr); X exit (1); X } X } X X diff = difftime (pp->start, now); X if (diff > 0 && diff < delta) X delta = (unsigned int) diff; X X free (pp->name); X free (pp); X pp = next; X } X X if (program.start != program.stop) { X switch (record_program (&program, output_directory, 0)) { X case 1: X continue; X /* NOTREACHED */ X break; X X case 0: X X /* X * We've already attempted to record the program. X */ X X delta = CHECK_DATABASE_SECONDS; X diff = difftime (now, program.stop); X if (diff > 0 && diff < delta) X delta = (unsigned int) diff; X break; X X default: X errmsg ("record_program failed.\n"); X exit (1); X /* NOTREACHED */ X break; X } X } X X /* X * Allow signals to be processed until the next database check is due. X */ X X sigprocmask (SIG_UNBLOCK, &block_signal_set, &original_signal_set); X while (! shutdown_server && (delta = sleep (delta)) != 0) X ; X sigprocmask (SIG_SETMASK, &original_signal_set, NULL); X } X X exit (0); X } END-of-tvrec/src/tvrecd.c echo c - tvrec/data mkdir -p tvrec/data > /dev/null 2>&1 echo c - tvrec/htdocs mkdir -p tvrec/htdocs > /dev/null 2>&1 echo x - tvrec/htdocs/scheddeli.php sed 's/^X//' >tvrec/htdocs/scheddeli.php << 'END-of-tvrec/htdocs/scheddeli.php' X END-of-tvrec/htdocs/scheddeli.php echo x - tvrec/htdocs/sched.php sed 's/^X//' >tvrec/htdocs/sched.php << 'END-of-tvrec/htdocs/sched.php' X X X X X X X X X Carmen Webserver -- TV Recording X X X X

TV X recording


X X X X X X X X X X X X X X X X X X X X'; X X echo << X X X X X X XEND; X } X X dba_close ($id); X?> X X X
Current Program(s)
ProgramChannel
1-125
QualityDate
mm/dd/yyyy
Start
HH:MM
Stop
HH:MM
RepeatNameAction
$key$pieces[0]$pieces[1]$pieces[2]$pieces[3]$pieces[4]$pieces[5]$pieces[6]Change X Delete
X X
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X XEND; X?> X X
X Program
ProgramChannel
1-125
QualityDate
mm/dd/yyyy
Start
HH:MM
Stop
HH:MM
RepeatNameAction
X X'; X if (isset ($error['key'])) X echo 'Program must be between 1 and 99.
'; X if (isset ($error['channel'])) X echo 'Channel must be between 1 and 125.
'; X if (isset ($error['date'])) X echo 'Date should be month/day/year.
'; X if (isset ($error['start'])) X echo 'Start time must be hour:minute.
'; X if (isset ($error['stop'])) X echo 'Stop time must be hour:minute.
'; X if (isset ($error['name'])) X echo 'Name can not contain a backslash, colon, decimal point, or slash.
'; X } X?> X
X

HOME


X X X END-of-tvrec/htdocs/sched.php echo x - tvrec/htdocs/schedaddi.php sed 's/^X//' >tvrec/htdocs/schedaddi.php << 'END-of-tvrec/htdocs/schedaddi.php' X 125) X $error['channel'] = 1; X X $now = getdate (); X X $pieces = explode ('/', $_POST['date']); X X if (count ($pieces) == 1) X if (is_numeric ($pieces[0])) X $pieces = array ($now['mon'], $pieces[0], $now['year']); X else if (! empty ($pieces[0])) X $pieces = explode ('/', strftime ('%m/%d/%Y', strtotime ($pieces[0]))); X X if (count ($pieces) == 2) X $pieces = array ($pieces[0], $pieces[1], $now['year']); X X if (count ($pieces) != 3 X || ! is_numeric ($pieces[0]) X || intval ($pieces[0]) != (double)$pieces[0] X || ! is_numeric ($pieces[1]) X || intval ($pieces[1]) != (double)$pieces[1] X || ! is_numeric ($pieces[2]) X || intval ($pieces[2]) != (double)$pieces[2]) X $error['date'] = 1; X else { X if ((int)$pieces[2] >= 0 && (int)$pieces[2] < 100) { X $century = intval ($now['year'] / 100) * 100; X $pieces[2] += $century; X } X X if ((int)$pieces[2] < 1000 X || ! checkdate ($pieces[0], $pieces[1], $pieces[2]) ) X $error['date'] = 1; X else X $_POST['date'] = sprintf ('%02d/%02d/%04d', X (int)$pieces[0], (int)$pieces[1], X (int)$pieces[2]); X } X X $pieces = explode (':', $_POST['start']); X X if (count ($pieces) != 2 X || ! is_numeric ($pieces[0]) X || intval ($pieces[0]) != (double)$pieces[0] X || (int)$pieces[0] < 0 || (int)$pieces[0] > 23 X || ! is_numeric ($pieces[1]) X || intval ($pieces[1]) != (double)$pieces[1] X || (int)$pieces[1] < 0 || (int)$pieces[1] > 59) X $error['start'] = 1; X else X $_POST['start'] = sprintf ('%02d:%02d', (int)$pieces[0], (int)$pieces[1]); X X $pieces = explode (':', $_POST['stop']); X X if (count ($pieces) != 2 X || ! is_numeric ($pieces[0]) X || intval ($pieces[0]) != (double)$pieces[0] X || (int)$pieces[0] < 0 || (int)$pieces[0] > 23 X || ! is_numeric ($pieces[1]) X || intval ($pieces[1]) != (double)$pieces[1] X || (int)$pieces[1] < 0 || (int)$pieces[1] > 59) X $error['stop'] = 1; X else X $_POST['stop'] = sprintf ('%02d:%02d', (int)$pieces[0], (int)$pieces[1]); X X if (strpos ($_POST['name'], '\\') !== FALSE X || strpos ($_POST['name'], '/') !== FALSE X || strpos ($_POST['name'], '.') !== FALSE X || strpos ($_POST['name'], ':') !== FALSE) X $error['name'] = 1; X else X $_POST['name'] = trim ($_POST['name']); X X if (is_array ($error)) { X include (TVR_BASE . 'htdocs/sched.php'); X return; X } X X $record = $_POST['channel'] . ',' . $_POST['quality'] . ',' X . $_POST['date'] . ',' . $_POST['start'] . ',' X . $_POST['stop'] . ',' . $_POST['repeat'] . ',' X . $_POST['name']; X X $id = dba_open (TVR_BASE . $conf['tvr']['db_name'], 'cl', $conf['tvr']['db_type']); X X $key = ''; X X if (isset ($_POST['key']) && is_numeric ($_POST['key'])) X $key = $_POST['key']; X else { X $prevkey = 0; X X for ($key = dba_firstkey ($id); $key != false; $key = dba_nextkey ($id)) { X if (! is_numeric ($key) ) X continue; X if ((int)$key > (int)($prevkey + 1)) X break; X $prevkey = $key; X } X X $key = sprintf ("%02d", $prevkey + 1); X } X X if (intval ($key) != (double)$key X || (int)$key < 1 || (int)$key > 99) { X $error['key'] = 1; X dba_close ($id); X include (TVR_BASE . 'htdocs/sched.php'); X return; X } X X dba_replace ($key, $record, $id); X X dba_sync ($id); X X dba_close ($id); X X header ('Location: ' . $tvr_webroot . '/sched.php'); X?> END-of-tvrec/htdocs/schedaddi.php exit ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 12:39:04 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72FCB16A4CE for ; Sat, 27 Mar 2004 12:39:04 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DCA843D46 for ; Sat, 27 Mar 2004 12:39:04 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2RKd2kQ003863; Sat, 27 Mar 2004 15:39:02 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2RKd1006430; Sat, 27 Mar 2004 15:39:01 -0500 (EST) Date: Sat, 27 Mar 2004 15:39:01 -0500 (EST) From: John Wehle Message-Id: <200403272039.i2RKd1006430@jwlab.FEITH.COM> To: tim@spyderweb.com.au Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 20:39:04 -0000 > I am using a cable which is s-video male at one end and has 2 male RCA > plugs at the other. An s-video signal has separate luminance and chrominance information. An s-video cable is really two cables in one (a cable for the luminance and a cable for the chrominance). > I assume this is some kind of hacked composite input, but the audio > doesn't seem to work. It's not exactly a hacked composite input, and it certainly isn't an audio input. The cable you're using simply breaks out the two components which make up an s-video signal. It works for connecting a composite video source to the Hauppauge because the video input connector on the board can be programmed to use both sets of pins so a s-video source can be attached, or to use one set of pins for composite video (in which case the second set of pins isn't used). The PVR-350 manual shows the audio input as the second connector from the bottom ... located right above the IR jack. -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 17:44:00 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30FDB16A4CE for ; Sat, 27 Mar 2004 17:44:00 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5BB243D31 for ; Sat, 27 Mar 2004 17:43:59 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2S1hqkQ008701; Sat, 27 Mar 2004 20:43:52 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2S1hqq06567; Sat, 27 Mar 2004 20:43:52 -0500 (EST) Date: Sat, 27 Mar 2004 20:43:52 -0500 (EST) From: John Wehle Message-Id: <200403280143.i2S1hqq06567@jwlab.FEITH.COM> To: andreas@dahlen.ws Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: multimedia@freebsd.org Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 01:44:00 -0000 > The driver implements "B/G Off air channels" for my tuner (LG). > However I'm connected to a cablenetwork and need to S-channels > in "B/G Cable Channels". I tried to use channel from the "B/G > Off air mapping" that matched the Mhz for the S-shannel, but > it didn't work. What I'm I doing wrong? I have no idea. I would need specific details in order to even guess (i.e. exact channel numbers, MHz, etc). > Does the bablemapping needs to be implemented in the driver somehowe? You could implement a B/G cable channel map in the driver, though what I actually recommend is you implement the mapping in your application and simply use TVTUNER_SETFREQ instead of TVTUNER_SETCHNL. > If I use setchannel to change to a channel that aren't bradcasting. > Is the channel set to this new channel or is the old one used? The channel is set to the new channel (though possibly off frequency if AFC was enabled since it can't do the right thing if no carrier was present). -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 18:15:51 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AC0916A4CE for ; Sat, 27 Mar 2004 18:15:51 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36DEA43D1D for ; Sat, 27 Mar 2004 18:15:51 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2S2FnkQ009167; Sat, 27 Mar 2004 21:15:50 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2S2Fnk06615; Sat, 27 Mar 2004 21:15:49 -0500 (EST) Date: Sat, 27 Mar 2004 21:15:49 -0500 (EST) From: John Wehle Message-Id: <200403280215.i2S2Fnk06615@jwlab.FEITH.COM> To: u431839553@navab.net Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM cc: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 02:15:51 -0000 > I got the -t option working with setchannel using channel 43. Good. > I get this while watching live tv: > kernel: cxm0: encoder dma not enough buffer space > last message repeated 34 times This indicates that an application failed to read the mpeg data stream from the cxm device in a timely fashion causing a buffer overflow (i.e. MPlayer couldn't keep up). There are several possible solutions depending on the actual weakest link: 1) Better video card. Personally I like the ATI radeon cards. 2) Better Xserver (i.e. XFree86 4.4) which supports using the video card hardware for things like colorspace conversion and MPEG motion compensation. This is of course assuming your video card has hardware for those sorts of things. 3) Faster processor. 4) More memory (only if your machine is actually swapping). 5) Enable MPlayer's frame drop option (more of a workaround than a solution). > Yes, it's composite input. I got a SCART output from the satellite box > to composite/audio line in on the Hauppage card. I get "device not > configured" using both -c and -s. It sounds like something is wrong with either the cabling or the composite video output from the satellite box. What happens if you unplug the composite video cable from the Hauppauge card and plug it into the composite input on a TV set? Do you get a good picture? What exactly does your cabling look like? -- John ------------------------------------------------------------------------- | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | | John Wehle | Fax: 1-215-540-5495 | | ------------------------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 21:13:39 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91D4416A4CE for ; Sat, 27 Mar 2004 21:13:39 -0800 (PST) Received: from pgh.nepinc.com (pgh.nepinc.com [66.207.129.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D9FD43D2D for ; Sat, 27 Mar 2004 21:13:39 -0800 (PST) (envelope-from durham@jcdurham.com) Received: from jimslaptop.home.jcdurham.com (18.gibs5.xdsl.nauticom.net [209.195.184.19]) (authenticated bits=0) by pgh.nepinc.com (8.12.9p2/8.12.8) with ESMTP id i2S5FbJj011528; Sun, 28 Mar 2004 00:15:37 -0500 (EST) (envelope-from durham@jcdurham.com) From: Jim Durham To: freebsd-multimedia@freebsd.org Date: Sun, 28 Mar 2004 00:13:33 -0500 User-Agent: KMail/1.6.1 References: <20040326135246.55339.qmail@web41605.mail.yahoo.com> In-Reply-To: <20040326135246.55339.qmail@web41605.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403280013.33993.durham@jcdurham.com> cc: "Ben H." Subject: Re: Sound recording and producing CDs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 05:13:39 -0000 On Friday 26 March 2004 08:52 am, Ben H. wrote: > I am new at this sound stuff... > > Please confirm or suggest... Thanks!! > > I have a need to regularly record a public program and be > able to produce a copy of the program in CD format. > > It is currently being done via tape. > > I wanted to setup a FreeBSD system to record sound input > and have the ability to: > > Edit - important > CDBurn - very important > Teach a non-tech person to run the working system. > (gui) > > the recorded sound in a format that can be played back on > a car or home CD player. > > Does the following software work or...: > > Audio recording to HD: > http://www.wakkanet.fi/~kaiv/ecasound/welcome.html > > CD Recording (DAO): > http://cdrdao.sourceforge.net/index.html > > Audio & MIDI Sequ.: > http://www.all-day-breakfast.com/rosegarden/index.html I cast my vote for Audacity. I use it all the time for recording a live band and then editing the recording and saving it in .wav format. Then I use burncd to burn the CD. These are both available in ports. Audacity is very powerful and quite intuitive to use. You didn't say if this was to be set up as a timed recording at a certain time? If so, you might want a command-line style recorder that can be started from cron. I have one here that I helped write that I could send you the source for, or there is one in /usr/ports/audio that will work, but I forget the name...readthe descriptions in /usr/ports/audio/* . I hesitate to comment on Rosegarden. I haven't used it in a long time. It worked. It was a little rough. It may be much better now. -Jim From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 21:19:54 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C81216A4CE for ; Sat, 27 Mar 2004 21:19:54 -0800 (PST) Received: from smtp3.sentex.ca (smtp3.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CA2843D1D for ; Sat, 27 Mar 2004 21:19:54 -0800 (PST) (envelope-from mike@sentex.net) Received: from avscan2.sentex.ca (avscan2.sentex.ca [199.212.134.19]) by smtp3.sentex.ca (8.12.10/8.12.10) with ESMTP id i2S5Jq7C093617 for ; Sun, 28 Mar 2004 00:19:52 -0500 (EST) (envelope-from mike@sentex.net) Received: from localhost (localhost [127.0.0.1]) by avscan2.sentex.ca (Postfix) with ESMTP id 3B74D59CA3 for ; Sun, 28 Mar 2004 00:19:53 -0500 (EST) Received: from avscan2.sentex.ca ([127.0.0.1]) by localhost (avscan2.sentex.ca [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 46213-06 for ; Sun, 28 Mar 2004 00:19:53 -0500 (EST) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan2.sentex.ca (Postfix) with ESMTP id 22E3359C98 for ; Sun, 28 Mar 2004 00:19:53 -0500 (EST) Received: from simian.sentex.net ([192.168.43.27]) by lava.sentex.ca (8.12.11/8.12.9) with ESMTP id i2S5JqA7028679 for ; Sun, 28 Mar 2004 00:19:52 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <6.0.3.0.0.20040328001709.05d4f328@209.112.4.2> X-Sender: mdtpop@209.112.4.2 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Sun, 28 Mar 2004 00:21:27 -0500 To: freebsd-multimedia@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at (avscan2) sentex.ca Subject: Hauppauge WinTV PVR output streaming to web client ? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 05:19:54 -0000 I have the WinTV 350 working great on my server and use it to record shows in mpg format often. There are times however when I would like to view something live. Are there any FreeBSD apps that would let me stream the output directly from the card across the ethernet to my laptop which runs windows ? Ideally I would like to stream it to something like Real Player or Quicktime. Are there any streaming servers on FreeBSD that could do this ? Thanks, ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 27 21:31:58 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E36BE16A4CE for ; Sat, 27 Mar 2004 21:31:58 -0800 (PST) Received: from ns.live.com (ns.live.com [66.80.62.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9642D43D31 for ; Sat, 27 Mar 2004 21:31:57 -0800 (PST) (envelope-from rsf@ns.live.com) Received: from ns.live.com (localhost.live.com [127.0.0.1]) by ns.live.com (8.12.11/8.12.10) with ESMTP id i2S5VsG2040998; Sat, 27 Mar 2004 21:31:55 -0800 (PST) (envelope-from rsf@ns.live.com) Received: (from rsf@localhost) by ns.live.com (8.12.11/8.12.9/Submit) id i2S5VsLH040990; Sat, 27 Mar 2004 21:31:54 -0800 (PST) (envelope-from rsf) Message-Id: <6.0.1.1.1.20040327212745.023e7010@localhost> X-Sender: rsf@localhost (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Sat, 27 Mar 2004 21:31:41 -0800 To: Mike Tancsa From: Ross Finlayson In-Reply-To: <6.0.3.0.0.20040328001709.05d4f328@209.112.4.2> References: <6.0.3.0.0.20040328001709.05d4f328@209.112.4.2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR output streaming to web client ? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 05:31:59 -0000 >I have the WinTV 350 working great on my server and use it to record shows >in mpg format often. There are times however when I would like to view >something live. Are there any FreeBSD apps that would let me stream the >output directly from the card across the ethernet to my laptop which runs >windows ? Ideally I would like to stream it to something like Real Player >or Quicktime. Are there any streaming servers on FreeBSD that could do this ? Yes. See, for example the "testMPEG1or2VideoStreamer" and "testMPEG1or2AudioVideoStreamer" test programs that are distributed as part of the "LIVE.COM Streaming Media" source code distribution: . (See also for information about how to feed these applications from live MPEG input.) You can watch the (multicast) stream from these applications using QuickTime Player, MPlayer, or (my favorite) VLC . Ross.