Re: MP3s from an analog signal ?
On Wed, 2006-06-14 at 16:36 -0500, Dale Hair wrote:
> On Wed, 2006-06-14 at 13:46 -0700, Cameron L. Spitzer wrote:
> > [This message has also been posted to linux.debian.user.]
> >
> > A friend of mine uses a "user friendly" Windoze box
> > to record (with permission) radio shows in background,
> > on a predetermined schedule. It's the last thing he still
> > needs Windoze for.
> >
> > We'd like to replace that setup with a cron-driven
> > shell script on his Sarge box.
> >
> > According to the Linux Sound HOWTO, which seems unmaintained,
> > I can get raw samples from /dev/dsp0 with dd. This works
> > on about half the sound cards/motherboards I've tried.
> > I suspect the rest have some kind of mixer issue, or
> > maybe the codecs just aren't wired right on those motherboards.
> >
> > But once we have that raw samples file, we don't know how
> > to make a usable MP3 out of it. Searching with Google,
> > I find a lot of people asking the same question, and people
> > barking one-word "answers" at them, that don't lead anywhere.
> >
> > Is there anything in Debian that can take a raw samples
> > file and turn it into an MP3?
> > Has some other form of documentation replaced the collection
> > of HOWTOs at TLDP.org? Thanks.
> >
> >
> > Cameron
>
> If you use alsa sound system you can use arecord which is part of
> alsa-utils and lame to encode mp3.
>
> I have recorded from Internet radio stations with the command
>
> arecord -t wav -D copy -d (length of recording) -f cd | lame - -V 0
> filename.mp3
arecord will record what is going to the sound card. You might be
better served with vlc. Check out
http://www.videolan.org/doc/streaming-howto/en/ch03.html .
Reply to: