PDA

View Full Version : Linux RealAudio streaming



Colin Burn-Murdoch
2004-01-20, 10:57
> Can't let this go without a solution. :)
>
> 'vsound -r 44100' will resample its input to 44100 Hz. That should take
> care of the double-speed problem with lame, without breaking streams that
> are already 44.1.

Well that should work, but for some reason it doesn't... at least on my system. A solution that works on mine is:

my $post_url = "| sox -v 2 -t .au - -t .wav -r 44100 - | lame --silent -b 128 - -";

I've also added the -v 2 to boost the gain as the BBC streams are rediculously low volume.

Roy M. Silvernail
2004-01-20, 11:25
On Tue, Jan 20, 2004 at 05:57:33PM +0000, Colin Burn-Murdoch wrote:
>
> > Can't let this go without a solution. :)
> >
> > 'vsound -r 44100' will resample its input to 44100 Hz. That should take
> > care of the double-speed problem with lame, without breaking streams that
> > are already 44.1.
>
> Well that should work, but for some reason it doesn't... at least on
> my system.

Well, that's what I get for believing the manpage. :)

> A solution that works on mine is:
>
> my $post_url = "| sox -v 2 -t .au - -t .wav -r 44100 - | lame
> --silent -b 128 - -";

Sox is probably the better solution here, especially given the need to
adjust volume. Actually, I use sox for most of my transcoding here at
home. ffmpeg is nifty and has lots of codecs, but it can't handle ogg
icecast streams.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
http://www.rant-central.com is the new scytale
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss