LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   record online Internet radio to file without a sound card on DD-WRT router (https://www.linuxquestions.org/questions/linux-software-2/record-online-internet-radio-to-file-without-a-sound-card-on-dd-wrt-router-915387/)

totaluser 11-24-2011 04:14 PM

record online Internet radio to file without a sound card on DD-WRT router
 
Hello everybody,
I am wondering if this is possible.

I have a router (Netgear WNR3500L) running DD-WRT with Optware and 16GB flash drive
Code:

Linux DD-WRT 2.6.24.111 #5535 Sun May 8 02:28:28 CEST 2011 mips GNU/Linux

it is a pretty nice device and Linux-based system and Optware give you a feeling that you have small linux box that is up 24/7

right now I am using it as
a small webserver (lighthttpd) only for me to test my php code
download manager (pyload + captchatrader)
VPN server (openvpn)
UDP multicast to UDP unicast proxy (udpxy)

and a few other fancy thing run on it

I am just wondering if it would be possible for my tiny little box to be able to record online radio streams

let's take this station as an example
Code:

http://www.audiobookradio.net/internetradio/
it streams in at least 2 different formats that are widely used


my idea was that the box would download the playlist and instead of playing the streamed data it would save it to a file on a flash drive (it is 128kbps stream at most so connectivity speed as well as flash drive write speed does not prevent it)


is there any command line application that can do it?

teckk 11-25-2011 01:04 PM

There are links on that page.
To play it.
Code:

mplayer -playlist http://www.audiobookradio.net/internetradio/listen.asx
or
Code:

mplayer -playlist http://81.171.50.130:9104/listen.pls
To dump the stream to file.
Code:

mplayer -playlist http://www.audiobookradio.net/internetradio/listen.asx -dumpstream -dumpfile output.mp3

totaluser 11-25-2011 01:07 PM

mplayer looks a bit too heavy for my usage and there is no such package in repo

however streamripper is quite good for mp3/ogg ripping
unfortunately some station stream in MSS that this tool does not support


All times are GMT -5. The time now is 07:44 AM.