From owner-freebsd-questions@FreeBSD.ORG Thu May 26 14:19:41 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4C1D16A41C for ; Thu, 26 May 2005 14:19:41 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from web54002.mail.yahoo.com (web54002.mail.yahoo.com [206.190.36.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 75B8543D1D for ; Thu, 26 May 2005 14:19:41 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 72588 invoked by uid 60001); 26 May 2005 14:19:40 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=IPUGT4uqzkBQaD9X5lkba1f6vX90oHU+5QW2Fn5Y8A/Bt5wrfu8CTpll9fNE2Me/LhKsO2paZa7FL2ny1zOGOb7u3/rz1B7yc/ZH7J6YZA7jWtaiJ+MzTkWR8KkKEShTFwcE9R8IjdHH2STvJJwbfQbOzZFU8Ay1iP2vwHp3EeA= ; Message-ID: <20050526141940.72586.qmail@web54002.mail.yahoo.com> Received: from [147.47.254.184] by web54002.mail.yahoo.com via HTTP; Thu, 26 May 2005 07:19:40 PDT Date: Thu, 26 May 2005 07:19:40 -0700 (PDT) From: Rob To: FreeBSD questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: mplayer + WinTV/bktr not working at all X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 14:19:42 -0000 Rob wrote: > Nicolas Blais wrote: > >>mplayer -nocache -tv driver=bsdbt848: >> device=/dev/bktr:input=1:norm=ntsc: >> chanlist=us-cable:channel=3 tv:// > > > I'm running 5-Stable. So, I did: > # kldload bktr > # kldload iicbus > # kldload iicbb > # kldload smbus > > Then in /var/log/messages, I get: > > bktr0: mem 0xf5000000-0xf5000fff > irq 9 at device 11.0 on pci2 > bktr0: Hauppauge Model 44354 C221 > bktr0: Detected a MSP3415D-B3 at 0x80 > bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM > tuner, msp3400c stereo, remote control. > > > Then I run your command above (as a regular user), > and I get: > > MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team > CPU: Intel Pentium 4/Xeon/Celeron Foster > (Family: 8, Stepping: 4) > Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 > SSE: 1 SSE2: 1 > Compiled with runtime CPU detection - WARNING - > this is not optimal! > To get best performance, recompile MPlayer with > --disable-runtime-cpudetection. > > Playing tv://. > TV detected! ;-) > Selected driver: bsdbt848 > name: Brooktree848 Support > author: Charles Henrich > comment: in development > FMT:ioctl: Cannot allocate memory > SINPUT:ioctl: Cannot allocate memory > SFPS:ioctl: Cannot allocate memory > SGEO:ioctl: Cannot allocate memory > mmap: Invalid argument > Error: No video input present! > > Exiting... (End of file) I have tried without iicbus, iicbb and smbus, to no avail. I have ran the mplayer command with truss, see below. Does that give a clue as of what's going wrong? [...] write(1,0x86c4000,25) = 25 (0x19) open("/dev/bktr0",0x0,00) = 3 (0x3) ioctl(3,METEORSFMT,0x86c1244) ERR#12 'Cannot allocate memory' FMT:ioctl: Cannot allocate memory writev(0x2,0xbfbfca50,0x4) = 34 (0x22) ioctl(3,SERIAL_SETINVCLK,0x86c1238) ERR#12 'Cannot allocate memory' SINPUT:ioctl: Cannot allocate memory writev(0x2,0xbfbfca50,0x4) = 37 (0x25) ioctl(3,METEORSFPS,0xbfbfd2ba) ERR#12 'Cannot allocate memory' SFPS:ioctl: Cannot allocate memory writev(0x2,0xbfbfca50,0x4) = 35 (0x23) ioctl(3,METEORSETGEO,0x86c1250) ERR#12 'Cannot allocate memory' SGEO:ioctl: Cannot allocate memory writev(0x2,0xbfbfca50,0x4) = 35 (0x23) mmap(0x0,884736,(0x1)PROT_READ,(0x1)MAP_SHARED,3,0x0) ERR#22 'Invalid argument' mmap: Invalid argument [...] open("/dev/tuner0",0x0,00) = 4 (0x4) open("/dev/dsp",0x0,00) = 5 (0x5) ioctl(5,SNDCTL_DSP_SETFRAGMENT,0xbfbfd2b4) = 0 (0x0) ioctl(5,SNDCTL_DSP_SETFMT,0x86c120c) = 0 (0x0) ioctl(5,SNDCTL_DSP_STEREO,0x86c1210) = 0 (0x0) ioctl(5,SNDCTL_DSP_SPEED,0x86c1214) = 0 (0x0) ioctl(5,SNDCTL_DSP_SETFMT,0x86c1218) = 0 (0x0) Error: No video input present! I see a few "METEOR*" arguments above; but 'man meteor' says at the end in the BUGS section: "The meteor driver no longer works at all." Is that the problem? --------------------------------------------------- 'pciconf -lv' gives: bktr0@pci2:11:0: class=0x040000 card=0x13eb0070 chip=0x036e109e rev=0x11 hdr=0x00 vendor = 'Brooktree Corporation' device = 'Bt878 Mediastream Controller' class = multimedia subclass = video none1@pci2:11:1: class=0x048000 card=0x13eb0070 chip=0x0878109e rev=0x11 hdr=0x00 vendor = 'Brooktree Corporation' device = 'Bt878/Fusion878A Video Capture (Audio Section)' class = multimedia ----------------------------------------------- But the bktr device shares its interrupt; is that OK? $ vmstat -ia interrupt total rate [...] irq9: uhci1 bktr0+ 0 0 stray irq9 0 0 --------------------------------------------- I'm quite frustrated; I bought an expensive Win/TV brooktree-chip TV card, assuming that it would work with FreeBSD. I've got nothing so far! Thanks, Rob. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com