Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Usage: rtl-fm-mpegts 98.9 "Yle X3M"
- RTL_FM=/opt/rtl-sdr/bin/rtl_fm
- FFMPEG=/opt/ffmpeg/bin/ffmpeg
- $RTL_FM -X -f $1M 2> /dev/null | \
- $FFMPEG -re -f s16le -ac 2 -ar 48000 -i pipe:0 \
- -vcodec none -acodec ac3 -ac 2 -ab 224k -ar 48000 \
- -metadata service_name="$2" -mpegts_service_type digital_radio \
- -f mpegts pipe:1 2> /dev/null
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement