From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 5 14:11:00 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B55931065672 for ; Sat, 5 Mar 2011 14:11:00 +0000 (UTC) (envelope-from jjthiessen@uwaterloo.ca) Received: from luthien.tangential.ca (dsl-69-171-154-243.acanac.net [69.171.154.243]) by mx1.freebsd.org (Postfix) with ESMTP id 65B768FC12 for ; Sat, 5 Mar 2011 14:11:00 +0000 (UTC) Received: from luthien.tangential.ca (localhost [127.0.0.1]) by luthien.tangential.ca (8.14.4/8.14.4) with ESMTP id p25E03tV005705 for ; Sat, 5 Mar 2011 09:00:03 -0500 (EST) (envelope-from jjthiessen@uwaterloo.ca) Received: (from jonathan@localhost) by luthien.tangential.ca (8.14.4/8.14.4/Submit) id p25E03X8005704 for freebsd-multimedia@freebsd.org; Sat, 5 Mar 2011 09:00:03 -0500 (EST) (envelope-from jjthiessen@uwaterloo.ca) X-Authentication-Warning: luthien.tangential.ca: jonathan set sender to jjthiessen@uwaterloo.ca using -f Date: Sat, 5 Mar 2011 09:00:03 -0500 From: Jonathan Thiessen To: freebsd-multimedia@freebsd.org Message-ID: <20110305140003.GA5200@luthien.tangential.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Unlagged/Raw Capture with PVR-150 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jonathan Thiessen List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2011 14:11:00 -0000 Good day, I am running FreeBSD 8.2-RELEASE (GENERIC) on amd64. I often use my PVR-150 for latency sensitive operations (namely playing Wii). Using the multimedia/pvrxxx port, one is presented with a single device node, /dev/cxm0, which by default presents an MPEG1/2 stream (with audio and video synched). However, this stream is sufficiently lagged so as to make gaming impossible (maybe 1 second, or so). After a little poking around, I found that one could easily disable the MPEG encoder by changing 'sc->mpeg = 1;' to 'sc->mpeg = 0;' in cxm_open (cxm.c:2498). This gave me an unlagged raw YUV/NV12 video stream on /dev/cxm0 (playable using `mplayer -rawvideo format=nv12:h=480:w=720:fps=29.97 -nocache -demuxer 26 -framedrop /dev/cxm0`). However, doing so makes me lose audio. My plan is to pick up a composite to stereo 3.5mm adaptor next week, and just run it through my soundcard (unless a more elegant software solution exists/could easily be made to exist). I must admit that I've never done any kernel module hacking before. Is it easy to/has anyone tried to expose multiple device nodes in pvrxxx/cmx (MPEG1/2, raw PCM, raw YUV/NV12), as it is done in ivtv (e.g., /dev/video0, /dev/video24, and /dev/video32 respectively)? Thank you for your time. Have a good one ;) Jonathan Thiessen ================= mailto:jjthiessen@uwaterloo.ca tel:+1.519.513.4618 =================