Home » Questions » Computers [ Ask a new question ]

Recording Audio from Radio Stream

Recording Audio from Radio Stream

I'm sitting here listening to a radio show that is being broadcast live over an internet stream, but I would like to keep bits and pieces for later-enjoyment. Is there a way I can easily record streams in real-time? I should note also (not sure if it's necessary or not) that this stream requires me to first login before listening.

Asked by: Guest | Views: 275
Total answers/comments: 2
Guest [Entry]

"Regarding the question from @Jonathan Sampson about how to save a stream onto your computer as a file...
A mostly(*) free native solution from Matt Beckler that uses mplayer and lame:

#!/bin/bash
# Save streaming audio to an mp3 file. Requires lame.
# This script will record for the duration entered below.
# Customize the stream URL, duration, filename, and working directory.
#
# Written by Matthew Beckler (matthew at mbeckler dot org)

STREAM=""http://1.2.3.4:8140""
DURATION=""1:30:00""
DATESTR=""$(date +%Y-%m-%d)""
# Don't include .wav or .mp3 at the end of the variable below:
FILENAME=""Stream_dump_$DATESTR""
WORKINGDIR=""/data/pub/audio/podcasts/""

cd $WORKINGDIR
rm -rf $FILENAME.{wav,mp3}
mplayer $STREAM -endpos $DURATION -vo null \
-ao pcm:waveheader:file=$FILENAME.wav &> /dev/null
lame $FILENAME.wav $FILENAME.mp3 &> /dev/null
rm -rf $FILENAME.wav

(*) script requires lame, but I'm guessing you're ok with libraries whose licensing might be non-free"
Guest [Entry]

"Many tools can do that in Windows. (For Linux look here.) Some lists here and here.

I also recommend Screamer Radio, already mentioned.

Also:

streamWriter

RadioSure

TapinRadio

RarmaRadio

All mentioned can save radio songs with tags for title, artist etc. StreamWriter deserves a special position as it is able to record multiple streams simultaneously, schedule recording of specific stations, titles, artists, etc."