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

Frank Barknecht fbar at footils.org
Tue Sep 21 17:44:43 EDT 2004


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__



More information about the Linux-audio-user mailing list