From owner-freebsd-multimedia Wed Jul 11 20:17:36 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 09DD137B401 for ; Wed, 11 Jul 2001 20:17:34 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 11 Jul 2001 23:17:27 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6C3GkO02087; Wed, 11 Jul 2001 23:16:46 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Wed, 11 Jul 2001 23:16:46 -0400 From: Randall Hopper To: Heiko Recktenwald Cc: multimedia@FreeBSD.ORG Subject: Re: fxtv and realproducer Message-ID: <20010711231646.A1894@nc.rr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from uzs106@ibm.rhrz.uni-bonn.de on Sun, Jul 08, 2001 at 10:54:49PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Heiko Recktenwald: |is it possible to run realproducer with fxtv ? It seems that mpeg_encode |supports the images as standardinput from fxtv, is this somewhere |documented, btw ? No, it's sort-of internal right now. But if you want to play with it, here's how. The format fxtv writes on-the-fly and then reads back in during encoding is a fxtv-specific file format with interleaved raw audio and video. However, as you said fxtv is converting the images into another stream format (PPM or IYUV images back-to-back) which can be handed off to mpeg_encode. It is also extracting the audio bits into an AIFF which is piped into the MPEG2/3 audio encoder of choice. It does this with a child invocation of fxtv with special options to decode this file (I had in mind exporting this later so others could play with other encoders, but never got back to cleaning it up). See the GenAVRawExtractPipe() in the usr/X11R6/lib/X11/fxtv/fxtv_cnvt.sh file for the command. But basically: fxtv -batch streamavcap \ -streaminput \ <- Input raw capture -frameformat [TIFF|PPM|YUV] \ -videotarget [%s | -] \ <- Out img base or stdout [ -streamfps ] \ [ -audiotarget ] <- Out raw audio So use "Save Video As..." in fxtv to capture to raw, then run the above command and you can do what you want with the frames. In fxtv_cnvt.sh, the above command is piped into mpeg_encode to do the MPEG video encode whilst the audio snippets are filtered out into a raw file for subsequent MPEG 2/3 audio encoding. Notes: the YUV frame format is only valid if you captured to IYUV. TIFF/PPM are valid for RGB captures. Hope you have some fun with this. Feel free to replay or mail me with any questions. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message