-. EBS Internet radio는 HLS (HTTP Live Streaming) 임
: [참고] https://ompanggin.tistory.com/26
-. 위의 link 에서 Update 함.
: EBS 주소를 on air 주소로 변경함
: bydu cloud에 backup 함. (설정 필요)
#!/bin/bash
# v2 : update address. streaming rtmp -> HSL
# internet radio 18:20 Easy, 18:40 Power
# RADIO_ADDR="http://bandibook.ebs.co.kr/bandibook/live_m4a/playlist.m3u8"
# FM 07:20 Easy, 07:40 Power
RADIO_ADDR="http://ebsonairiosaod.ebs.co.kr/fmradiobandiaod/bandiappaac/playlist.m3u8"
PROGRAM_NAME=$1
RECORD_MINS=$(($2 * 60))
DEST_DIR=$3
REC_DATE=`date +%Y%m%d-%H%M`
MP3_FILE_NAME=$PROGRAM_NAME"_"$REC_DATE.mp3
ffmpeg -t $RECORD_MINS -y -i $RADIO_ADDR $MP3_FILE_NAME &>/dev/null
mkdir -p $DEST_DIR
mv $MP3_FILE_NAME $DEST_DIR
#if [ $1 = "EasyEnglish" ]
#then
# nohup /usr/local/bin/bypy upload $DEST_DIR/$MP3_FILE_NAME /EBS.Easy.English&
#fi
#if [ $1 = "PowerEnglish" ]
#then
# nohup /usr/local/bin/bypy upload $DEST_DIR/$MP3_FILE_NAME /EBS.Power.English&
#fi
'Electronics' 카테고리의 다른 글
MXQ Pro 4K 5G - Armbian Ubuntu LTS 20.04 (0) | 2021.09.20 |
---|---|
Beelink Mini MX S905 - Armbian Ubuntu 20.04 LTS (Focal Fossa) (0) | 2021.06.20 |
(v4) Kodi Daum Movie Scraper Add-on 작동법 (3) (26) | 2019.09.26 |
(update) Kodi: Daum Movie Scraper Add-on 작동법 (2) (7) | 2019.09.14 |
Kodi: Daum Movie Scraper Add-on 작동법 (4) | 2019.08.25 |