Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr1247 :: Recording Terrestrial Radio with bash scripts and cron jobs

Using a Bash script to capture terrestrial radio

<< First, < Previous, , Latest >>

Thumbnail of Jon Kulp
Hosted by Jon Kulp on Tuesday, 2013-05-14 is flagged as Explicit and is released under a CC-BY-SA license.
bash, scripting, radio, streamripper, simple audio player. 1.
The show is available on the Internet Archive at: https://archive.org/details/hpr1247

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:14:36

Bash Scripting.

This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.

In this episode I talk about my solution for capturing terrestrial radio so that I can listen to it at my own convenience. I use a bash script, cron jobs, and the streamripper package. here are some links to things I mentioned in the podcast.

Jezra's command-line audio player sap (simple audio player): https://www.jezra.net/projects/sap

Streamripper: https://streamripper.sourceforge.net/

Radio station KRVS 88.7 FM, Lafayette, Louisiana, USA https://krvs.org/

And you can see the whole radio-recording script here: https://jonathankulp.org/archives/647


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2013-05-15 20:22:05 by timttmy

mplayer

Hi Jon,
I've pulled in live streams in the past using mplayer with the -dumpstream option (mplayer https://yoururl/stream.mp3 -dumpstream) and started and stopped the operation with atd (I never fully gotten my head around cron).
I'll take a look at streamripper. I like the sound of the option to specify the duration of the rip as an argument of the utility.

Cheers
Marshall

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?