From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 29 13:11:56 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 1675D16A4CF for ; Thu, 29 Apr 2004 13:11:56 -0700 (PDT) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6949943D2F for ; Thu, 29 Apr 2004 13:11:55 -0700 (PDT) (envelope-from Alexander@Leidinger.net) Received: from fwd11.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1BJHsu-0007YQ-02; Thu, 29 Apr 2004 22:11:52 +0200 Received: from Andro-Beta.Leidinger.net (Z4fJ+2Zvoep9WT7t5Zr2fLDNXHuS8TBJ9xC0mQXHMER3wcdyXPqIsr@[84.128.202.221]) by fmrl11.sul.t-online.com with esmtp id 1BJHsY-0e0tF20; Thu, 29 Apr 2004 22:11:30 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i3TKBMIE027941; Thu, 29 Apr 2004 22:11:23 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Thu, 29 Apr 2004 22:12:13 +0200 From: Alexander Leidinger To: freebsd-multimedia@freebsd.org Message-Id: <20040429221213.51668144@Magellan.Leidinger.net> In-Reply-To: <20040429193023.GA17876@cl.cam.ac.uk> References: <20040429175118.GA24989@cl.cam.ac.uk> <20040429210554.2e301a3f@Magellan.Leidinger.net> <20040429193023.GA17876@cl.cam.ac.uk> X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: Z4fJ+2Zvoep9WT7t5Zr2fLDNXHuS8TBJ9xC0mQXHMER3wcdyXPqIsr@t-dialin.net 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 20:11:56 -0000 On Thu, 29 Apr 2004 20:30:23 +0100 Karl Jeacle wrote: > On Thu 29 Apr 04, 21:05:54 +0200, Alexander Leidinger wrote: > > > 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.) > > But you haven't played with '-x', right? > > I have actually, and I get audible sound, but it's as if I had taken the > original file and chopped it up into little bits and swapped them around. > > I was hoping someone could supply a working command line example using > either mplayer or mencoder that did RA->MP3 in a single pipeline. > > (Re:mencoder, it dumps core for almost anything I try with it, and using > named pipes exhibit the same problem as the above pipe approach.) I haven't tried it, but try adding "-nowaveheader" to mplayer and use the right -r -s and --bitwidth arguments for lame. I know it works with named pipes, since I fixed some issues with it for someone else (lame 3.94 contains the fix). Bye, Alexander. -- I'm available to get hired. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7