From owner-freebsd-questions@FreeBSD.ORG Tue May 7 03:38:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1E63E59E for ; Tue, 7 May 2013 03:38:59 +0000 (UTC) (envelope-from bsd-unix@embarqmail.com) Received: from mailrelay.embarq.synacor.com (mailrelay.embarq.synacor.com [208.47.184.3]) by mx1.freebsd.org (Postfix) with ESMTP id DB22CAE3 for ; Tue, 7 May 2013 03:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=embarqmail.com; s=s012408; c=relaxed/simple; q=dns/txt; i=@embarqmail.com; t=1367897932; h=From:Subject:Date:To:Mime-Version:Content-Type; bh=L4KgJMDiT9e6oVwy9gArWneLtr0=; b=USRibBqNeklBDtjmVbXyq1WNhFVr9tx7Vz9nY9hED3tgXega+H051Jyk8+hHqHxu HtfpjeHYI0uqMBOQRMHdUP38s7S8Ww0u9av6qjubqAyOex2pH0VvcLL1p7UOCryG; X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=2.0 cv=TJHHuiZa c=1 sm=0 a=NUHa+3WtMyqubEU/lIUqxQ==:17 a=nuwCsDlj_NwA:10 a=1poGYrevpj8A:10 a=kj9zAlcOel0A:10 a=1oqGTYSLAAAA:8 a=Wp9SvN7dwUMA:10 a=rWdDcm16AAAA:8 a=ydc2HplFAAAA:8 a=DH85l4NE8ISIK2cow58A:9 a=CjuIK1q_8ugA:10 a=D4m4-e9C1FIA:10 a=jgoaQNzrKcYA:10 a=NUHa+3WtMyqubEU/lIUqxQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp04.embarq.synacor.com smtp.user=bsd-unix@embarqmail.com; auth=pass (LOGIN) Received: from [74.4.87.250] ([74.4.87.250:38341] helo=bem.milkyway.net) by smtp.centurylink.net (envelope-from ) (ecelerity 2.2.3.49 r(42060/42061)) with ESMTPA id 55/F2-17918-B4778815; Mon, 06 May 2013 23:38:52 -0400 Date: Mon, 6 May 2013 23:40:06 -0400 From: rpratt To: freebsd-questions@freebsd.org Subject: Re: script or c prog to record live audio? Message-Id: <20130506234006.8e90976a1f4aa679e4f074bd@embarqmail.com> In-Reply-To: <20130506231902.GA26387@ethic.thought.org> References: <20130506231902.GA26387@ethic.thought.org> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.6; i386-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 03:38:59 -0000 On Mon, 6 May 2013 16:19:02 -0700 Gary Kline wrote: > I've been meaning to ask one of the Nix lists if there is a script that > will record something from kuow.org To play audio stream: mplayer -playlist 'http://shoutcast.kuow.org:8002/listen.pls' To dump the audio stream to file: mplayer -dumpstream -dumpfile foo.mp3 -playlist '... URL ...' No need to reinvent wheels. See man page for more description and many other options. Enjoy, Randy