this post was submitted on 27 Sep 2024
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/ptoki on 2024-09-27 04:45:52.

I am recording two radio stations for almost 3 years now.

I have those duct tape and wd40 scripts to do that:

# cat /root/nagraj_radio.sh
#!/bin/sh
cd /mnt/storage/record_radio
timestamp=`date +%Y%m%d-%H%M%S`
echo "------------- $timestamp -------------------"
mplayer -dumpstream -dumpfile "$timestamp radio.mp3"  -fs ffmpeg://https://an02.cdn.eurozet.pl/ant-kat.mp3 2>&1 >>   radio_record.log &
PID="$!"
sleep "60m"
kill "${PID}"
sleep 5
kill -9 "${PID}"

Run this every hour from crontab.

It works on my debian/ubuntu for almost 3years now and is pretty stable. It fails only if my internet drops for multiple minutes or power outage. The buffering usually takes care of the rest. I listened to a number of those clips and they are always complete and are 1h15s long so there are no gaps.

Usually those create 70-90MB worth of data per hour.

I use it to listen to that radio in my car and to be able to rewind, pull some mp3 songs out of there and listen to some programs I like offline or when they are no longer aired.

Feel free to reuse after changing the station url.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here