From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 29 11:01:27 2004 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 9FAA816A4CE for ; Thu, 29 Apr 2004 11:01:27 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4383C43D1F for ; Thu, 29 Apr 2004 11:01:27 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i3TI3RK0003787; Thu, 29 Apr 2004 14:03:27 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i3TI3Rrv003786; Thu, 29 Apr 2004 14:03:27 -0400 (EDT) Date: Thu, 29 Apr 2004 14:03:27 -0400 From: Mathew Kanner To: Karl Jeacle Message-ID: <20040429180327.GB3402@cnd.mcgill.ca> References: <20040429175118.GA24989@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040429175118.GA24989@cl.cam.ac.uk> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.62 X-Spam-Checker-Version: SpamAssassin 2.62 (2004-01-11) on hak.cnd.mcgill.ca cc: freebsd-multimedia@freebsd.org Subject: Re: stdout from mplayer/mencoder? 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, 29 Apr 2004 18:01:27 -0000 On Apr 29, Karl Jeacle wrote: > I am using mplayer and lame to convert RealAudio files to MP3. > Everything works, but I'd like to avoid large temporary WAV files. > > Currently, I do something like: > > mplayer -ao pcm -aofile $WAVFILE $RAFILE > lame $WAVFILE $MP3FILE > > But what I'd like to do is more like: > > mplayer -ao pcm -aofile /dev/stdout $RAFILE | lame - $MP3FILE > > The problem is that the resulting MP3 file is just white noise. I'm not > sure what's going wrong. (I've tried specifying -r & -s lame flags.) > > Is it possible to get mplayer to write to stdout? > Or for mplayer/lame to convert RA->MP3 in a single pipeline? Karl, I would guess that other output from mplayer is confusing the encoding. There are probablt many different options, I would suggest you try: - Use mencoder :) - use a named pipe. --Mat -- It's impossible to awaken a man who is pretending to be asleep. - Navajo saying