Date: Wed, 11 Jul 2001 23:16:46 -0400 From: Randall Hopper <aa8vb@nc.rr.com> To: Heiko Recktenwald <uzs106@ibm.rhrz.uni-bonn.de> Cc: multimedia@FreeBSD.ORG Subject: Re: fxtv and realproducer Message-ID: <20010711231646.A1894@nc.rr.com> In-Reply-To: <Pine.BSF.4.21.0107082249090.809-100000@moritz.alleswirdgelber>; from uzs106@ibm.rhrz.uni-bonn.de on Sun, Jul 08, 2001 at 10:54:49PM %2B0200 References: <Pine.BSF.4.21.0107082249090.809-100000@moritz.alleswirdgelber>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <raw-capture-path> \ <- Input raw capture -frameformat [TIFF|PPM|YUV] \ -videotarget [<img-path-base>%s | -] \ <- Out img base or stdout [ -streamfps <fps> ] \ [ -audiotarget <raw-audio-path> ] <- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010711231646.A1894>