Re: [linux-audio-user] how to record streaming audio?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] how to record streaming audio?
From: Frank Barknecht (fbar_AT_footils.org)
Date: Wed Sep 22 2004 - 00:44:43 EEST


Hallo,
Eric Dantan Rzewnicki hat gesagt: // Eric Dantan Rzewnicki wrote:

> On Tue, Sep 21, 2004 at 10:52:36AM -0700, airplays55_AT_yahoo.com wrote:
> > I want to run a sound recorder like audacity to record
> > what is coming thru my soundcard when playing
> > streaming audio thru xmms.

Why not use the xmms disk writer?

> > However audacity can't open the audio port /dev/dsp
> > when streaming audio is playing. This is on knoppix
> > 3.4 using the OSS driver.
> >
> > Would using ALSA make this possible?
>
> yes. you would need to set up the dmix plugin in .asoundrc.

But dmix won't help with recording, it's purely a playback mixer. Even
dshare won't help here. However I had some success using the "tee" or
even better, the "file" plugin.

Use something like this:

pcm.recorder
{
    type file
    slave.pcm "default"
    file "/tmp/recorder.raw"
}

It will record a "raw" soundfile, which can be opened with Snd and I
think, Audacity afterwards with some experimentations on channel
count, sample rate and byte format.

This does indeed work with realplay if you set up aoss accordingly
(see alsa.opensrc.org for more hints on that). I have tested this. For
ripping mp3 and ogg streams it's better to just use "wget". ;)

And then mplayer can read many stream formats including wma and write
them to disk.

Ciao

-- 
 Frank Barknecht                               _ ______footils.org__


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Sep 22 2004 - 00:49:44 EEST