-
Notifications
You must be signed in to change notification settings - Fork 1
/
restream_icecast.sh
executable file
·79 lines (64 loc) · 1.92 KB
/
restream_icecast.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
STATIONS=(
"Kahungunu"
"KiaOra"
"MFM"
# "NgatiHine"
"Raukawa"
"Atiawa"
"TeUpoko"
"Tumeke"
"Tuwharetoa"
"Waatea"
"NgatiPorou"
)
#http://apple.irirangi.net:8000/D_Nga_Iwi.aac
for STATION_NAME in ${STATIONS[@]}; do
# ffmpeg \
# -re \
# -i http://icast1.streamcom.net/$STATION_NAME \
# -nostdin -loglevel panic \
# -c:a libfdk_aac -profile:a aac_he -b:a 64k \
# -content_type 'audio/aac' -vn -f adts \
# icecast://source:[email protected]:8000/$STATION_NAME 2> /dev/null &
echo "[program:$STATION_NAME]"
echo "autorestart=true"
echo "autostart=true"
echo "startretries=99999"
# echo "command=/bin/ffmpeg \
# -re \
# -i http://icast1.streamcom.net/$STATION_NAME \
# -c:a libfdk_aac -profile:a aac_he -b:a 64k \
# -content_type 'audio/aac' -vn -f adts \
# 'icecast://source:[email protected]:8000/$STATION_NAME'"
echo "command=/bin/ffmpeg \
-re \
-i http://icast1.streamcom.net/$STATION_NAME \
-c:a aac -b:a 64k \
-nostdin -loglevel warning \
-content_type 'audio/aac' -vn -f adts \
'icecast://source:[email protected]:8000/$STATION_NAME'"
echo "# http://icecast.iwi.radio:8000/$STATION_NAME"
echo "\n"
done;
for STATION_NAME in ${STATIONS[@]}; do
echo $STATION_NAME
ffprobe -loglevel warning -i http://icecast.iwi.radio:8000/$STATION_NAME
done;
STATIONS=(
"Kahungunu"
"KiaOraFM"
"ManiapotoFM"
# "NgatiHineFM"
"RaukawaFM"
"TeAtiawatoa"
"TeUpokoFM"
"TumekeFM"
"TuwharetoaFM"
"Waatea"
"NgatiPorou"
)
for STATION_NAME in ${STATIONS[@]}; do
echo $STATION_NAME
ffprobe -loglevel warning -i https://wowza.iwi.radio/icecast-to-hls/ngrp:$STATION_NAME.stream/playlist.m3u8
echo https://wowza.iwi.radio/icecast-to-hls/ngrp:$STATION_NAME.stream/playlist.m3u8
done;