私は古い記録を調べ、私たちのラジオ(mp3ファイル)のオンライン放送と外部ラジオ局の中継のために通常のサーバーを迅速かつ簡単に上げる方法についての指示を共有することにしました。
誰にそれが面白いか私はキャットの下でお願いします。
FreeBSDを実行しているサーバーを使用しました。 新鮮な港の木があると信じています。
icecastのインストールを開始しましょう:
次に、インターネットラジオラジオのユーザーとラジオのグループを作成し、それらがすべて存在するディレクトリを作成します。
Webインターフェイスのすべてのファイルをコピーした後:
cp /usr/local/share/icecast /var/icecast
ログ用のディレクトリを作成します。
mkdir /var/icecast/log
ログ用のファイルを作成します。
cd /var/icecast/log touch access.log touch error.log
権利を変更します。
chown -R radio:radio /var/icecast
次に、構成ファイルを確認します。
cd /usr/local/etc cp icecast.xml.sample icecast.xml
構成ファイル。 重要なパラメーターのみを説明します
認証 1つ目は、
Icecastサーバーを介してブロードキャストするための接続パスワードであり、2つ目は
icecast_ipでのWebインターフェイスのログインパスワードです:8000
<authentication> <source-password>123</source-password> <relay-password>123</relay-password> <admin-user>admin</admin-user> <admin-password>12345678</admin-password> </authentication>
次に、サーバーIPを選択します。ポートは、氷でフローを監視するポイントでもありますが、これは後で行われます。
<listen-socket> <port>8000</port> <bind-address>192.168.1.7</bind-address>. <shoutcast-mount>/ices</shoutcast-mount>. </listen-socket>
また、ウクライナのラジオ局Kissfm(+ KissfmからACC)、ラジオ、高級fm、ヒットfmを再配布します。
<relay> <server>91.201.37.42</server> <port>8000</port> <mount>/kiss</mount> <local-mount>/kiss</local-mount> <on-demand>1</on-demand> <relay-shoutcast-metadata>0</relay-shoutcast-metadata> </relay> <relay> <server>91.201.37.42</server> <port>8000</port> <mount>/kissACC</mount> <local-mount>/kissACC</local-mount> <on-demand>1</on-demand> <relay-shoutcast-metadata>0</relay-shoutcast-metadata> </relay> .... <relay>........ <server>195.95.206.12</server> <port>8000</port> <mount>/HitFM</mount> <local-mount>/hitfm</local-mount> <on-demand>1</on-demand> <relay-shoutcast-metadata>0</relay-shoutcast-metadata> </relay> <relay> <server>77.120.104.251</server> <port>8000</port> <mount>/</mount> <local-mount>/luxfm</local-mount> <on-demand>1</on-demand> <relay-shoutcast-metadata>0</relay-shoutcast-metadata> </relay> <relay> <server>212.26.129.222</server> <port>8001</port> <mount>/</mount> <local-mount>/nashe</local-mount> <on-demand>1</on-demand> <relay-shoutcast-metadata>0</relay-shoutcast-metadata> </relay>
次に、セクションのディレクトリの場所オプションを変更します
<basedir>/var/icecast</basedir> <logdir>/log</logdir> <webroot>/web</webroot> <adminroot>/admin</adminroot> <pidfile>/var/run/icecast.pid</pidfile>
最後になりましたが、重要なことです。 Icecastはルートとして機能しないため、以前に作成されたユーザーとグループの権限を変更します
<security> <chroot>1</chroot> <changeowner> <user>radio</user> <group>radio</group> </changeowner> </security>
次に、私たちは離陸しようとします、彼が誓うものを見ます:
#/usr/local/bin/icecast -c /usr/local/etc/icecast.xml
Ctrl + cを押してすべてが適切に中断され、次に進む場合:
mp3を再生する必要があり、理論上はmp3を再生するようにices2を使用する必要があるため、ies0を使用しましたが、チェックしませんでした。
次に、権限を使用して作業を簡単にします(好きな場所に自分でディレクトリを作成できます)。
mkdir /tmp/radio
ここにmp3ファイルを追加し、プレイリストを作成します。
find /tmp/radio -name *.mp3 > /tmp/radio/playlist.txt
次の内容のplaylist.txtファイルを取得する必要があります。
/tmp/radio/Far East Movement ft. The Cataracs & Dev - Like A G6.mp3 /tmp/radio/The_Prodigy_-_Voodoo_People_(Pendulum_Remix).mp3 /tmp/radio/1.mp3
権利
#chmod -R 777 /tmp/radio
を変更し、ices.confファイルを破壊します
cd /usr/local/etc/ cp ices.conf.dist ices.conf
編集可能。 私はこの外観を得ました(俳優のコメント):
<?xml version="1.0"?> <ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices"> <Playlist> <File>/tmp/radio/playlist.txt</File> <Randomize>0</Randomize> <Type>builtin</Type> <Module>ices0</Module> </Playlist> <Execution> <Background>1</Background> <Verbose>1</Verbose> <BaseDirectory>/tmp</BaseDirectory> </Execution> <Stream> <Server> <Hostname>192.168.1.7</Hostname> <Port>8000</Port> <Password>123</Password> <Protocol>http</Protocol> </Server> <Mountpoint>/ices</Mountpoint> <Name>mp3 stream</Name> <Genre>it</Genre> <Description>Local streaming</Description> <URL>http://gate.mydomain.com/</URL> <Public>0</Public> <Bitrate>128</Bitrate> <Reencode>0</Reencode> <Channels>2</Channels> </Stream> </ices:Configuration>
次に、行を/etc/rc.confに追加します。
icecast_enable="YES" icecast_flags="-c /usr/local/etc/icecast.xml" ices0_enable="YES" ices0_flags="/usr/local/etc/ices.conf"
そして離陸しよう:
cd /usr/local/etc/rc.d
ブラウザでリンクを開きます。
192.168.1.7:8000 / status.xsl
目的のストリームのm3uをダウンロードしてください。
インターネットラジオはオンデマンドで配信されるため、最初のラジオは低速です。 インターネットトラフィックを気にしない人-値を変更する
<on-demand> 1 </ on-demand>から<on-demand> 0 </ on-demand>プレイリスト全体を失う方法を無効にするだけです。 輪を作る方法はまだ見つかりませんでした。 しかし、アイスをランダムに実行すると、彼のゲームは笑顔を終わらせません。
ices.confファイルで、パラメーター0を1に変更します。