From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 21 02:19:34 2005 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 1D7D416A4CE for ; Thu, 21 Apr 2005 02:19:34 +0000 (GMT) Received: from vette.gigo.com (vette.gigo.com [216.218.228.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6723043D41 for ; Thu, 21 Apr 2005 02:19:33 +0000 (GMT) (envelope-from lioux@uol.com.br) Received: from 200.163.13.246 (unknown [200.163.13.246]) by vette.gigo.com (Postfix) with ESMTP id 12D655638 for ; Wed, 20 Apr 2005 19:19:32 -0700 (PDT) Received: (qmail 28545 invoked by uid 1001); 21 Apr 2005 02:19:09 -0000 Message-ID: <20050421021909.28497.qmail@exxodus.fedaykin.here> Date: Wed, 20 Apr 2005 23:18:47 -0300 From: Mario Sergio Fujikawa Ferreira To: FreeBSD-multimedia@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Help with TV capture (mplayer/brooktree/audigy) 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: Thu, 21 Apr 2005 02:19:34 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I am having a bit of trouble capturing/watching TV on my box. $ uname -a FreeBSD exxodus.fedaykin.here 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Apr 6 21:27:42 BRT 2005 root@exxodus.fedaykin.here:/usr/obj/usr/src/sys/LIOUX i386 For starters, neither fxtv nor xawtv work here. They both hard lock my system, it just freezes once I start either application. The system simply freezes. The power button does not work, I have to hit reset. I contacted fxtv's developer who told me that "Ouch. When this has happened in the past, it's typically been because the motherboard and/or video card isn't well supported by FreeBSD. Fxtv uses the very old trick of pointing the TV board output to the memory-mapped linear frame buffer of the video card "in the application". Back when it was written there wasn't any other option. Now we have Xv and other methods, which are much better and cleaner for TV apps to use. Fxtv was just never revised to use these." So I turned to mplayer :) Here goes my setup. I have satellite cable which means I cannot use the BrookTree's tunner since the tv input is encoded. I connected the satellite decoder to the video input connector. This is the mplayer line that is working: $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// 1) I was a getting enough image blurring to confuse codecs if I decided to record programming so I added some noise filtering $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf hqdn3d or $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf pp=hb/vb/dr/al 2) Every few seconds the video stream seems to choke; thus, giving me an effect similar to the famous interlaced "blinders effect" so I added a deinterlacer filter $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf filmdint or $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf pp=lb So the mixed lines were: $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf hqdn3d,filmdint or $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf pp=hb/vb/dr/al/lb However, I am getting poor performance. The video stream seems to stutter. I would prefer not to loose a lot of resolution but I would appreciate any help on how to maintain a good compromise of performance vs quality. Only compromise enough quality to achieve a smooth video stream (standard fps without chokes). Furthermore, I am not sure how can I get audio input. I can listen to dvds, mp3s, ogms just fine though. I connected the audio output to the mic connector of the audigy sound card. Nonetheless, I am not sure how can I hear this audio. Yeah, I am a bit clueless. :) I am using the latest audigy driver found at http://chibis.persons.gfk.ru/audigy/ I used the following commands mixer rec 100 ## set record bus volume emuctrl amp 4 ## amplify every input four times emuctrl set out13 100 ## set recording volume for DSP output emuctrl rset in6 100 ## set recording volume for DSP input wavrec test.wav ## record 10s using wavrec from ports/audio/wavplay port. However, I got nothing :( $ cat /dev/emu10kx0 FreeBSD EMU10Kx Audio Driver Hardware resource usage: DSP General Purpose Registers: 154 used, 512 total DSP Instruction Registers: 168 used, 1024 total Card supports AC97 codec and 5.1 output, Audigy DSP code with Audigy2 hacks Installed devices: EMU10Kx Mixer Interface on emu10kx0 FX BUSes Inputs Outputs Playback 1 8 18 Recording 1 8 0 EMU10Kx PCM Interface on pcm0 Analog mode, S/PDIF output is PCM stereo $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: on emu10kx0 (16p/1r/4v channels duplex default) Help!!! :) Anyone? Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." feature, n: a documented bug | bug, n: an undocumented feature --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-STABLE #0: Wed Apr 6 21:27:42 BRT 2005 root@exxodus.fedaykin.here:/usr/obj/usr/src/sys/LIOUX Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 2600+ (1917.81-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x6a0 Stepping = 0 Features=0x383fbff AMD Features=0xc0400000 real memory = 2146697216 (2047 MB) avail memory = 2095230976 (1998 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: mem 0xfe000000-0xfe7fffff,0xfeafc000-0xfeafffff,0xfa000000-0xfbffffff irq 16 at device 0.0 on pci1 info: [drm] AGP at 0xe0000000 256MB info: [drm] Initialized mga 3.1.0 20021029 on minor 0 bktr0: mem 0xfd9fe000-0xfd9fefff irq 19 at device 7.0 on pci0 smbus0: on bktr0 iicbb0: on bktr0 iicbus0: on iicbb0 master-only iicsmb0: on iicbus0 smbus1: on iicsmb0 bktr0: Hauppauge Model 44001 C110 bktr0: Hauppauge WinCast/TV. pci0: at device 7.1 (no driver attached) fxp0: port 0xb800-0xb83f mem 0xfebc0000-0xfebdffff,0xfebfe000-0xfebfefff irq 18 at device 8.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:b3:2d:b2:de emu10kx0: port 0xbc00-0xbc3f irq 17 at device 10.0 on pci0 pcm0: on emu10kx0 pcm0: pci0: