Skip to content

Instantly share code, notes, and snippets.

@shiona
Created April 13, 2023 15:22
Show Gist options
  • Save shiona/2b05cc27971da10ea77ee016ecba217a to your computer and use it in GitHub Desktop.
Save shiona/2b05cc27971da10ea77ee016ecba217a to your computer and use it in GitHub Desktop.
Wappuradio FM recorder
# demux is from https://github.com/windytan/stereodemux
# which is also source for the rtl_fm command
while true; do
rtl_fm -M fm -s 192k -g 50 -F 9 -f 101.6M | \
~/bin/demux -r 192k -R 44.1k | \
ffmpeg -ac 2 -ar 44100 -f s16le -i pipe: \
-acodec flac \
-f segment \
-segment_atclocktime 1 \
-segment_time 3600 \
-strftime 1 \
/home/shiona/radio/wr_ref_%Y-%m-%d-%H-%M-%S.flac
sleep 1
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment