Created
April 13, 2023 15:22
-
-
Save shiona/2b05cc27971da10ea77ee016ecba217a to your computer and use it in GitHub Desktop.
Wappuradio FM recorder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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