{"id":35064,"date":"2024-11-07T15:40:54","date_gmt":"2024-11-07T08:40:54","guid":{"rendered":"http:\/\/jupitek.maudemo.vip\/index.php\/2024\/11\/07\/how-to-install-a-shoutcast-dnas-server-on-linux\/"},"modified":"2024-11-07T15:40:54","modified_gmt":"2024-11-07T08:40:54","slug":"how-to-install-a-shoutcast-dnas-server-on-linux","status":"publish","type":"post","link":"https:\/\/jupitek.maudemo.vip\/index.php\/2024\/11\/07\/how-to-install-a-shoutcast-dnas-server-on-linux\/","title":{"rendered":"C\u00e1ch c\u00e0i \u0111\u1eb7t SHOUTcast DNAS Server tr\u00ean Linux"},"content":{"rendered":"<p>SHOUTcast l\u00e0 ph\u1ea7n m\u1ec1m \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 ph\u00e1t tr\u1ef1c tuy\u1ebfn ph\u01b0\u01a1ng ti\u1ec7n qua internet. H\u1ec7 th\u1ed1ng SHOUTcast s\u1eed d\u1ee5ng c\u1ea5u h\u00ecnh m\u00e1y kh\u00e1ch-m\u00e1y ch\u1ee7 c\u1ed5 \u0111i\u1ec3n. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t SHOUTcast tr\u00ean m\u00e1y ch\u1ee7 c\u1ee7a m\u00ecnh v\u00e0 s\u1eed d\u1ee5ng n\u00f3 \u0111\u1ec3 ph\u00e1t tr\u1ef1c tuy\u1ebfn nh\u1ea1c \u0111\u1ebfn c\u00e1c m\u00e1y kh\u00e1ch \u0111\u01b0\u1ee3c k\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7. M\u00e1y ch\u1ee7 ph\u01b0\u01a1ng ti\u1ec7n Shoutcast c\u00f3 th\u1ec3 h\u01b0\u1edfng l\u1ee3i t\u1eeb dung l\u01b0\u1ee3ng \u0111\u0129a l\u1edbn, v\u00ec v\u1eady h\u00e3y c\u00e2n nh\u1eafc s\u1eed d\u1ee5ng d\u1ecbch v\u1ee5&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/products\/storage\/block-storage\/\">L\u01b0u tr\u1eef kh\u1ed1i<\/a>&nbsp;c\u1ee7a ch\u00fang t\u00f4i v\u1edbi thi\u1ebft l\u1eadp n\u00e0y.<\/p>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa: H\u00e3y nh\u1edb&nbsp;<a href=\"http:\/\/www.shoutcast.com\/broadcast-tools\" target=\"_blank\" rel=\"noreferrer noopener\">ki\u1ec3m tra trang t\u1ea3i xu\u1ed1ng c\u00f4ng c\u1ee5 ph\u00e1t s\u00f3ng<\/a>&nbsp;\u0111\u1ec3 bi\u1ebft phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t c\u1ee7a SHOUTcast.<\/p>\n<h2 id=\"shoutcast-dnas-software\">Ph\u1ea7n m\u1ec1m DNAS SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#shoutcast-dnas-software\"><\/a><\/h2>\n<p>Ph\u1ea7n m\u1ec1m SHOUTcast DNAS (Distributed Network Audio Server) l\u00e0 phi\u00ean b\u1ea3n m\u00e1y ch\u1ee7 c\u1ee7a ph\u1ea7n m\u1ec1m cho ph\u00e9p b\u1ea1n ph\u00e1t s\u00f3ng \u0111\u1ebfn ng\u01b0\u1eddi nghe. \u0110\u1ec3 s\u1eed d\u1ee5ng SHOUTcast, b\u1ea1n s\u1ebd c\u1ea7n t\u1ea3i xu\u1ed1ng v\u00e0 c\u00e0i \u0111\u1eb7t SHOUTcast DNAS tr\u00ean Linode c\u1ee7a m\u00ecnh.<\/p>\n<h3 id=\"download-and-install-shoutcast\">T\u1ea3i xu\u1ed1ng v\u00e0 c\u00e0i \u0111\u1eb7t SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#download-and-install-shoutcast\"><\/a><\/h3>\n<p>C\u00f3 m\u1ed9t s\u1ed1 phi\u00ean b\u1ea3n c\u1ee7a ph\u1ea7n m\u1ec1m n\u00e0y, v\u00ec v\u1eady h\u00e3y \u0111\u1ea3m b\u1ea3o b\u1ea1n \u0111ang t\u1ea3i xu\u1ed1ng \u0111\u00fang phi\u00ean b\u1ea3n. Phi\u00ean b\u1ea3n Linux \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf c\u1ea3 phi\u00ean b\u1ea3n 32 bit v\u00e0 64 bit. B\u1ea1n s\u1ebd c\u1ea7n&nbsp;<a href=\"http:\/\/www.shoutcast.com\/broadcast-tools\" target=\"_blank\" rel=\"noreferrer noopener\">t\u1ea3i xu\u1ed1ng<\/a>&nbsp;b\u1ea5t k\u1ef3 phi\u00ean b\u1ea3n n\u00e0o t\u01b0\u01a1ng \u1ee9ng v\u1edbi h\u1ec7 \u0111i\u1ec1u h\u00e0nh b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t tr\u00ean Linode c\u1ee7a m\u00ecnh.<\/p>\n<p>1.T\u1ea1o m\u1ed9t ng\u01b0\u1eddi d\u00f9ng \u0111\u1ec3 ch\u1ea1y SHOUTcast, v\u00ec v\u1eady b\u1ea1n kh\u00f4ng ch\u1ea1y n\u00f3 v\u1edbi t\u01b0 c\u00e1ch l\u00e0 root. Nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>adduser shoutcast\n<\/code><\/pre>\n<p>2.Thay \u0111\u1ed5i \u0111\u1ebfn th\u01b0 m\u1ee5c g\u1ed1c c\u1ee7a ng\u01b0\u1eddi d\u00f9ng m\u1edbi b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>cd \/home\/shoutcast\n<\/code><\/pre>\n<p>3.T\u1ea1o th\u01b0 m\u1ee5c cho SHOUTcast:<\/p>\n<pre class=\"wp-block-code\"><code>mkdir sc\n<\/code><\/pre>\n<p>4.B\u00e2y gi\u1edd ch\u00fang ta c\u00f3 th\u1ec3 t\u1ea3i xu\u1ed1ng g\u00f3i DNAS. Trong v\u00ed d\u1ee5 n\u00e0y, ch\u00fang ta s\u1ebd t\u1ea3i xu\u1ed1ng phi\u00ean b\u1ea3n 32 bit:<\/p>\n<pre class=\"wp-block-code\"><code>wget http:\/\/download.nullsoft.com\/shoutcast\/tools\/sc_serv2_linux_x64-latest.tar.gz\n<\/code><\/pre>\n<p>5.Gi\u1ea3i n\u00e9n c\u00e1c t\u1ec7p SHOUTcast v\u00e0o th\u01b0 m\u1ee5c m\u1edbi b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>tar -xzf sc_serv2_linux_x64-latest.tar.gz -C sc\n<\/code><\/pre>\n<p>6.Thay \u0111\u1ed5i quy\u1ec1n s\u1edf h\u1eefu t\u1eeb&nbsp;<code>root<\/code>ng\u01b0\u1eddi d\u00f9ng SHOUTcast:<\/p>\n<pre class=\"wp-block-code\"><code>chown -R shoutcast.shoutcast \/home\/shoutcast\/sc\n<\/code><\/pre>\n<p>Ph\u1ea7n m\u1ec1m SHOUTcast DNAS hi\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t tr\u00ean Linode c\u1ee7a b\u1ea1n.<\/p>\n<h3 id=\"configure-shoutcast\">C\u1ea5u h\u00ecnh SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#configure-shoutcast\"><\/a><\/h3>\n<p>B\u00e2y gi\u1edd, b\u1ea1n s\u1ebd mu\u1ed1n s\u1eeda \u0111\u1ed5i c\u1ea5u h\u00ecnh. \u0110i\u1ec1u n\u00e0y l\u00e0 c\u1ea7n thi\u1ebft \u0111\u1ec3 ch\u1ec9 \u0111\u1ecbnh m\u1eadt kh\u1ea9u v\u00e0 thi\u1ebft l\u1eadp c\u1ed5ng SHOUTcast. Sau \u0111\u00e2y l\u00e0 c\u00e1ch c\u1ea5u h\u00ecnh SHOUTcast:<\/p>\n<p>1.M\u1edf t\u1ec7p c\u1ea5u h\u00ecnh SHOUTcast:<\/p>\n<pre class=\"wp-block-code\"><code>nano sc\/sc_serv_basic.conf\n<\/code><\/pre>\n<p>2.Thao t\u00e1c n\u00e0y s\u1ebd m\u1edf t\u1ec7p c\u1ea5u h\u00ecnh \u0111\u1ec3 ch\u1ec9nh s\u1eeda, nh\u01b0 hi\u1ec3n th\u1ecb b\u00ean d\u01b0\u1edbi.<\/p>\n<pre class=\"wp-block-code\"><code>; NOTE: for any relative paths specified are relative to\n; sc_serv and not to where the conf file is being stored\n\n; here we will setup where the log and other related files\n; will be stored. make sure that these folders exist else\n; sc_serv will throw an error and will close itself down.\n; we will make the logs save to the sc_serv2 directory\nlogfile=logs\/sc_serv.log\nw3clog=logs\/sc_w3c.log\nbanfile=control\/sc_serv.ban\nripfile=control\/sc_serv.rip\n\n\n; for testing we will make the server only work locally\n; (i.e. localhost \/ 127.0.0.1) though if this is left out\n; or set to publicserver=always then we attempt to make a\n; connection to the YP for listing - do not forget to add\n; in a 'streamauthhash' value for any public streams made\n;publicserver=never\n\n\n; if you're wanting to use a different port to use for any\n; connections then you can use this option e.g. to use 80\n; otherwise port 8000 is used as the default to listen on.\n;portbase=80\n\n\n; password used by sc_trans or the Winamp dsp plug-in\n; NOTE: remember to change this to something else\npassword=testing\n\n\n; password used for accessing the administration pages\n; NOTE: remember to change this to something else\nadminpassword=changeme\n\n\n; now we will specify the details of the stream we're going\n; to serve which can be done as follows\nstreamid=1\nstreampath=\/test.aac\n\n; or\n\n; it can be done like this which is how it needs to be done\n; if you are going to provide multiple streams from sc_serv\n;streamid_1=1\n;streampath_1=\/test.aac\n;streamid_2=2\n;streampath_2=\/test2.aac<\/code><\/pre>\n<p>3.\u0110\u1eb7t c\u00e1c bi\u1ebfn&nbsp;<code>password<\/code>v\u00e0&nbsp;<code>adminpassword<\/code>th\u00e0nh gi\u00e1 tr\u1ecb b\u1ea1n mu\u1ed1n.<\/p>\n<p>4.Bi\u1ebfn&nbsp;<code>portbase<\/code>ph\u1ea3i \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp \u0111\u1ec3 s\u1eed d\u1ee5ng m\u1ed9t c\u1ed5ng m\u00e0 b\u1ea1n kh\u00f4ng s\u1eed d\u1ee5ng cho b\u1ea5t k\u1ef3 m\u1ee5c \u0111\u00edch n\u00e0o kh\u00e1c. C\u1ed5ng m\u1eb7c \u0111\u1ecbnh cho SHOUTcast l\u00e0 8000.<\/p>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa: N\u1ebfu b\u1ea1n \u0111\u1eb7t&nbsp;<code>portbase<\/code>bi\u1ebfn th\u00e0nh b\u1ea5t k\u1ef3 gi\u00e1 tr\u1ecb n\u00e0o kh\u00e1c ngo\u00e0i 8000, h\u00e3y nh\u1edb b\u1ecf ch\u00fa th\u00edch b\u1eb1ng c\u00e1ch x\u00f3a d\u1ea5u ch\u1ea5m ph\u1ea9y tr\u01b0\u1edbc bi\u1ebfn.<\/p>\n<p>5.L\u01b0u c\u00e1c thay \u0111\u1ed5i v\u00e0o t\u1ec7p c\u1ea5u h\u00ecnh SHOUTcast b\u1eb1ng c\u00e1ch nh\u1ea5n Control-X, r\u1ed3i nh\u1ea5n Y.<\/p>\n<p>B\u00e2y gi\u1edd c\u1ea5u h\u00ecnh \u0111\u00e3 \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp v\u00e0 l\u01b0u, ch\u00fang ta c\u00f3 th\u1ec3 kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7.<\/p>\n<h3 id=\"start-shoutcast\">B\u1eaft \u0111\u1ea7u SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#start-shoutcast\"><\/a><\/h3>\n<p>B\u00e2y gi\u1edd, b\u1ea1n c\u00f3 th\u1ec3 kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7 SHOUTcast. Th\u1ef1c hi\u1ec7n nh\u01b0 sau:<\/p>\n<p>1.B\u1ea1n s\u1ebd mu\u1ed1n ch\u1ea1y shoutcast c\u1ee7a m\u00ecnh trong m\u1ed9t&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/guides\/using-gnu-screen-to-manage-persistent-terminal-sessions\/\">phi\u00ean m\u00e0n h\u00ecnh<\/a>&nbsp;. H\u00e3y nh\u1ea3y v\u00e0o m\u1ed9t phi\u00ean m\u00e0n h\u00ecnh b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>screen<\/code><\/pre>\n<p>2.Kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7 SHOUTcast b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>.\/sc_serv sc_serv_simple.conf\n<\/code><\/pre>\n<p>3.Sau khi b\u1ea1n \u0111\u01b0a ra l\u1ec7nh start, b\u1ea1n s\u1ebd th\u1ea5y \u0111\u1ea7u ra kh\u1edfi \u0111\u1ed9ng k\u1ebft th\u00fac b\u1eb1ng:<\/p>\n<pre class=\"wp-block-code\"><code>2011-11-02 14:50:03     I       msg:&#91;MICROSERVER] Listening for connection on port 8000\n2011-11-02 14:50:03     I       msg:&#91;MICROSERVER] Listening for connection on port 8001<\/code><\/pre>\n<p>4.B\u1ea1n c\u00f3 th\u1ec3 tho\u00e1t kh\u1ecfi phi\u00ean l\u00e0m vi\u1ec7c tr\u00ean m\u00e0n h\u00ecnh t\u1ea1i th\u1eddi \u0111i\u1ec3m n\u00e0y. \u0110\u1ec3 th\u1ef1c hi\u1ec7n, h\u00e3y gi\u1eef ph\u00edm Control v\u00e0 nh\u1ea5n A, th\u1ea3 ra, r\u1ed3i nh\u1ea5n D.<\/p>\n<p>5.B\u1ea1n s\u1ebd quay l\u1ea1i d\u1ea5u nh\u1eafc l\u1ec7nh b\u00ean ngo\u00e0i phi\u00ean m\u00e0n h\u00ecnh c\u1ee7a b\u1ea1n. N\u1ebfu b\u1ea1n c\u1ea7n g\u1eafn l\u1ea1i sau, ch\u1ec9 c\u1ea7n nh\u1eadp:<\/p>\n<pre class=\"wp-block-code\"><code>screen -raAd\n<\/code><\/pre>\n<p>M\u00e1y ch\u1ee7 SHOUTcast c\u1ee7a b\u1ea1n hi\u1ec7n \u0111ang ch\u1ea1y! B\u00e2y gi\u1edd b\u1ea1n c\u00f3 th\u1ec3 k\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7 v\u00e0 b\u1eaft \u0111\u1ea7u ph\u00e1t s\u00f3ng.<\/p>\n<h2 id=\"shoutcast-transcoder\">B\u1ed9 chuy\u1ec3n m\u00e3 SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#shoutcast-transcoder\"><\/a><\/h2>\n<p>B\u1ed9 chuy\u1ec3n m\u00e3 SHOUTcast cho ph\u00e9p b\u1ea1n l\u00ean l\u1ecbch th\u1eddi gian ph\u00e1t nh\u1ea1c c\u1ee7a DJ, ph\u00e1t danh s\u00e1ch ph\u00e1t t\u1ef1 \u0111\u1ed9ng trong m\u1ed9t khung th\u1eddi gian c\u1ee5 th\u1ec3, l\u00ean l\u1ecbch khung th\u1eddi gian cho c\u00e1c ch\u01b0\u01a1ng tr\u00ecnh ph\u00e1t s\u00f3ng ti\u1ebfp theo, v.v.<\/p>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa: \u0110\u1ec3 m\u00e3 h\u00f3a lu\u1ed3ng ph\u00e1t c\u1ee7a b\u1ea1n \u1edf \u0111\u1ecbnh d\u1ea1ng MP3, b\u1ea1n&nbsp;<em>ph\u1ea3i&nbsp;<\/em><a href=\"http:\/\/wiki.winamp.com\/wiki\/SHOUTcast_DNAS_Transcoder_2#Registering_for_MP3_Stream_Encoding\" target=\"_blank\" rel=\"noreferrer noopener\">mua kh\u00f3a c\u1ea5p ph\u00e9p t\u1eeb WinAmp v\u1edbi gi\u00e1 5 \u0111\u00f4 la M\u1ef9<\/a>&nbsp;.<\/p>\n<h3 id=\"download-and-install-shoutcast-transcoder\">T\u1ea3i xu\u1ed1ng v\u00e0 c\u00e0i \u0111\u1eb7t SHOUTcast Transcoder<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#download-and-install-shoutcast-transcoder\"><\/a><\/h3>\n<p>Ch\u00fang t\u00f4i s\u1ebd s\u1eed d\u1ee5ng c\u00f9ng m\u1ed9t ng\u01b0\u1eddi d\u00f9ng shoutcast \u0111\u1ec3 thi\u1ebft l\u1eadp ph\u1ea7n m\u1ec1m Transcoder. Sau \u0111\u00e2y l\u00e0 c\u00e1ch t\u1ea3i xu\u1ed1ng v\u00e0 c\u00e0i \u0111\u1eb7t transcoder:<\/p>\n<p>1.Thay \u0111\u1ed5i th\u01b0 m\u1ee5c b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>cd \/home\/shoutcast\n<\/code><\/pre>\n<p>2.T\u1ea1o m\u1ed9t th\u01b0 m\u1ee5c m\u1edbi cho b\u1ed9 chuy\u1ec3n m\u00e3 b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>mkdir sct\n<\/code><\/pre>\n<p>3.T\u1ea3i xu\u1ed1ng kho l\u01b0u tr\u1eef b\u1ed9 m\u00e3 h\u00f3a SHOUTcast b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>wget http:\/\/download.nullsoft.com\/shoutcast\/tools\/sc_trans_linux_10_07_2011.tar.gz\n<\/code><\/pre>\n<p>4.Gi\u1ea3i n\u00e9n c\u00e1c t\u1ec7p chuy\u1ec3n m\u00e3 SHOUTcast b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>tar -xzf sc_trans_linux_10_07_2011.tar.gz -C sct\n<\/code><\/pre>\n<p>5.Thay \u0111\u1ed5i quy\u1ec1n s\u1edf h\u1eefu t\u1eeb&nbsp;<code>root<\/code>ng\u01b0\u1eddi d\u00f9ng SHOUTcast:<\/p>\n<pre class=\"wp-block-code\"><code>chown -R shoutcast.shoutcast \/home\/shoutcast\/sct\n<\/code><\/pre>\n<p>6.Thay \u0111\u1ed5i th\u01b0 m\u1ee5c b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>cd sct\n<\/code><\/pre>\n<p>7.Thay \u0111\u1ed5i quy\u1ec1n b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>chmod a+x sc_trans\n<\/code><\/pre>\n<p>B\u1ed9 m\u00e3 h\u00f3a SHOUTcast hi\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t tr\u00ean Linode c\u1ee7a b\u1ea1n.<\/p>\n<h3 id=\"configure-the-shoutcast-transcoder\">C\u1ea5u h\u00ecnh b\u1ed9 chuy\u1ec3n m\u00e3 SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#configure-the-shoutcast-transcoder\"><\/a><\/h3>\n<p>V\u00ed d\u1ee5 n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u1ea5u h\u00ecnh c\u01a1 b\u1ea3n.<\/p>\n<p>1.M\u1edf t\u1ec7p c\u1ea5u h\u00ecnh b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>nano \/home\/shoutcast\/sct\/sc_trans_basic.conf\n<\/code><\/pre>\n<p>2.B\u1ea1n c\u00f3 th\u1ec3 s\u1eeda \u0111\u1ed5i bitrate \u0111\u1ec3 thay \u0111\u1ed5i ch\u1ea5t l\u01b0\u1ee3ng \u00e2m thanh c\u1ee7a nh\u1ea1c v\u00e0 gi\u1edbi h\u1ea1n l\u01b0\u1ee3ng b\u0103ng th\u00f4ng ti\u00eau th\u1ee5. N\u1ebfu b\u1ea1n mua b\u1ea3n quy\u1ec1n MP3, b\u1ea1n c\u00f3 th\u1ec3 s\u1eeda \u0111\u1ed5i ph\u1ea7n m\u00e3 h\u00f3a \u0111\u1ec3 th\u00eam m\u00e3 h\u00f3a MP3 v\u00e0 d\u1eef li\u1ec7u m\u1edf kh\u00f3a c\u1ee7a b\u1ea1n:<\/p>\n<pre class=\"wp-block-code\"><code>; for testing we will only setup a single encoder though it\n; is easy to add in additional encoder configurations and\n; we are using an aac plus encoder as the default due to\n; the licensing requirements for mp3 encoding as detailed\n; in sc_trans.txt - section 2.5).\nencoder_1=aacp\nencoder_2=mp3\nbitrate_1=56000\nbitrate_2=56000\n\nunlockkeyname=YourUnlockName\nunlockkeycode=YourUnlockCode<\/code><\/pre>\n<p>3.Ti\u1ebfp theo, s\u1eeda \u0111\u1ed5i th\u00f4ng tin chi ti\u1ebft&nbsp;<code>sc_trans<\/code>k\u1ebft&nbsp;<code>sc_serv<\/code>n\u1ed1i:<\/p>\n<pre class=\"wp-block-code\"><code>; this is where we define the details required for sc_trans\n; to connect to the sc_serv instance being used where the\n; details must match those specified in sc_serv_basic.conf\noutprotocol_1=3\nserverip_1=127.0.0.1\n; default is 8000, if not change to sc_serv's 'portbase'\nserverport_1=8000\n; this is the same as 'password' in sc_serv_basic.conf\npassword_1=testing\n; this is the same as 'streamid' in sc_serv_basic.conf for\n; the stream we are acting as the source for\nstreamid_1=1\n; this is a name for the source we're creating and is used\n; with the AJAX control api or can be left blank to get a\n; generic name created in the form of 'endpointX' where 'X'\n; is the index of the created source from sc_trans lists.\nendpointname_1=\/Bob<\/code><\/pre>\n<p>4.B\u01b0\u1edbc n\u00e0y l\u00e0 t\u00f9y ch\u1ecdn, nh\u01b0ng b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 c\u1eadp nh\u1eadt th\u00f4ng tin lu\u1ed3ng c\u1ee7a m\u00ecnh:<\/p>\n<pre class=\"wp-block-code\"><code>; here you would provide any information to fill in details\n; provided to clients about the stream. it us up to you what\n; is entered though do not do anything which will annoy, etc\nstreamtitle=My Test Server\nstreamurl=http:\/\/www.shoutcast.com\ngenre=Misc<\/code><\/pre>\n<p>5.Thi\u1ebft l\u1eadp t\u1ec7p danh s\u00e1ch ph\u00e1t c\u1ee7a b\u1ea1n \u0111\u1ec3 ph\u00e1t tr\u1ef1c ti\u1ebfp t\u1ef1 \u0111\u1ed9ng:<\/p>\n<pre class=\"wp-block-code\"><code>; here we specify a playlist to use as the master list from\n; which to play files from.\nplaylistfile=playlists\/main.lst<\/code><\/pre>\n<p>6.B\u00e2y gi\u1edd h\u00e3y thi\u1ebft l\u1eadp c\u1ed5ng, t\u00ean ng\u01b0\u1eddi d\u00f9ng v\u00e0 m\u1eadt kh\u1ea9u \u0111\u1ec3 truy c\u1eadp b\u1ea3ng qu\u1ea3n tr\u1ecb chuy\u1ec3n m\u00e3:<\/p>\n<pre class=\"wp-block-code\"><code>; these options will allow you access the admin interfaces\n; of sc_trans though also allows the 'testui' example to be\n; accessed. remember to change the password, etc as needed\nadminport=7999\nadminuser=admin\nadminpassword=goaway<\/code><\/pre>\n<p>7.L\u01b0u c\u00e1c thay \u0111\u1ed5i v\u00e0o t\u1ec7p c\u1ea5u h\u00ecnh SHOUTcast b\u1eb1ng c\u00e1ch nh\u1ea5n Control-X, r\u1ed3i nh\u1ea5n Y.<\/p>\n<p>8.N\u1ebfu b\u1ea1n \u0111ang s\u1eed d\u1ee5ng danh s\u00e1ch ph\u00e1t t\u1ef1 \u0111\u1ed9ng, h\u00e3y t\u1ea3i t\u1ec7p nh\u1ea1c c\u1ee7a b\u1ea1n l\u00ean&nbsp;<code>\/home\/shoutcast\/sct\/music<\/code>th\u01b0 m\u1ee5c.<\/p>\n<p>9.N\u1ebfu b\u1ea1n \u0111ang s\u1eed d\u1ee5ng danh s\u00e1ch ph\u00e1t t\u1ef1 \u0111\u1ed9ng, b\u1ea1n c\u0169ng c\u1ea7n t\u1ea1o t\u1ec7p danh s\u00e1ch ph\u00e1t. Sau \u0111\u00e2y l\u00e0 v\u00ed d\u1ee5:<\/p>\n<pre class=\"wp-block-code\"><code># This example playlist is used as the main playlist sc_trans will use to pick\n# out the files it will use to create its output for the source we generate.\n#\n# Also remember to use the correct path format for the OS you are using and to\n# ensure that the files you want to play are present in the location you choose\n# e.g.\n..\/music\/shoutcast.mp3\n#\n# In this example we will just assume that all of the files associated to the\n# playlist are in one folder and all have an mp3 extension though there is no\n# reason why you cannot explicitly specify files to use or to reference a tool.\n# See sc_trans.txt - section 7.1 for more information on how playlists work.\n\n# Remember to change this to reference the files you want to use when trying\n# the sc_trans_playlist.conf example which is best tried with full length files<\/code><\/pre>\n<h3 id=\"start-shoutcast-transcoder\">B\u1eaft \u0111\u1ea7u chuy\u1ec3n m\u00e3 SHOUTcast<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#start-shoutcast-transcoder\"><\/a><\/h3>\n<p>Sau khi b\u1ea1n \u0111\u00e3 c\u1ea5u h\u00ecnh transcoder v\u00e0 s\u1eb5n s\u00e0ng ho\u1ea1t \u0111\u1ed9ng, b\u1ea1n c\u1ea7n kh\u1edfi \u0111\u1ed9ng n\u00f3. \u0110\u1ec3 ch\u1ea1y transcoder d\u01b0\u1edbi d\u1ea1ng daemon, ch\u1ec9 c\u1ea7n ch\u1ea1y l\u1ec7nh n\u00e0y, thay th\u1ebf&nbsp;<code>sc_trans_basic.conf<\/code>cho b\u1ea5t k\u1ef3 t\u1ec7p c\u1ea5u h\u00ecnh n\u00e0o b\u1ea1n \u0111ang s\u1eed d\u1ee5ng:<\/p>\n<pre class=\"wp-block-code\"><code>.\/sc_trans daemon .\/sc_trans_basic.conf<\/code><\/pre>\n<p>N\u1ebfu kh\u00f4ng c\u00f3 l\u1ed7i n\u00e0o xu\u1ea5t hi\u1ec7n, b\u1ea1n s\u1ebd th\u1ea5y \u0111\u1ea7u ra t\u01b0\u01a1ng t\u1ef1 nh\u01b0 d\u00f2ng b\u00ean d\u01b0\u1edbi, trong \u0111\u00f3 XXXX l\u00e0 PID:<\/p>\n<pre class=\"wp-block-code\"><code>sc_trans going daemon with PID &#91;XXXX]<\/code><\/pre>\n<p>\u0110\u1ec3 t\u1eaft b\u1ed9 chuy\u1ec3n m\u00e3, b\u1ea1n ch\u1ec9 c\u1ea7n \u0111\u01b0a ra l\u1ec7nh kill:<\/p>\n<pre class=\"wp-block-code\"><code>kill -15 PID<\/code><\/pre>\n<h2 id=\"shoutcast-source-dsp\">Ngu\u1ed3n SHOUTcast DSP<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-shoutcast-dnas-server-on-linux\/#shoutcast-source-dsp\"><\/a><\/h2>\n<p>Plugin Source DSP c\u1ee7a SHOUTcast \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n \u0111\u1ec3 s\u1eed d\u1ee5ng v\u1edbi WinAmp phi\u00ean b\u1ea3n 5.5 tr\u1edf l\u00ean. Plugin n\u00e0y cung c\u1ea5p cho b\u1ea1n kh\u1ea3 n\u0103ng s\u1eed d\u1ee5ng WinAmp l\u00e0m ngu\u1ed3n cho sc_serv (DNAS) ho\u1eb7c sc_trans (Transcoder) c\u1ee7a b\u1ea1n. N\u00f3 c\u0169ng s\u1ebd cho ph\u00e9p b\u1ea1n thu \u00e2m thanh \u0111\u1ea7u v\u00e0o t\u1eeb card \u00e2m thanh v\u00e0 \u0111\u1ea7u v\u00e0o line-in ho\u1eb7c microphone c\u1ee7a n\u00f3. B\u1ea1n s\u1ebd c\u1ea7n c\u00e0i \u0111\u1eb7t DNAS ri\u00eang l\u1ebb ho\u1eb7c Transcoder c\u1ea5p ngu\u1ed3n cho c\u00e0i \u0111\u1eb7t DNAS tr\u01b0\u1edbc khi b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng plugin DSP WinAmp. T\u1ea3i xu\u1ed1ng plugin DSP n\u1eb1m g\u1ea7n cu\u1ed1i&nbsp;<a href=\"http:\/\/www.shoutcast.com\/broadcast-tools\" target=\"_blank\" rel=\"noreferrer noopener\">trang c\u00f4ng c\u1ee5 ph\u00e1t s\u00f3ng<\/a>&nbsp;.<\/p>\n<p>H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t v\u00e0 c\u1ea5u h\u00ecnh c\u00f3 trong&nbsp;<a href=\"http:\/\/wiki.winamp.com\/wiki\/Source_DSP_Plug-in#Installing_the_Plug-in\" target=\"_blank\" rel=\"noreferrer noopener\">wiki WinAmp<\/a>&nbsp;.<\/p>\n<h2 id=\"more-information\">Th\u00f4ng tin th\u00eam<\/h2>\n<p>B\u1ea1n c\u00f3 th\u1ec3 mu\u1ed1n tham kh\u1ea3o c\u00e1c ngu\u1ed3n sau \u0111\u1ec3 bi\u1ebft th\u00eam th\u00f4ng tin v\u1ec1 ch\u1ee7 \u0111\u1ec1 n\u00e0y. M\u1eb7c d\u00f9 ch\u00fang t\u00f4i cung c\u1ea5p v\u1edbi hy v\u1ecdng r\u1eb1ng ch\u00fang s\u1ebd h\u1eefu \u00edch, nh\u01b0ng xin l\u01b0u \u00fd r\u1eb1ng ch\u00fang t\u00f4i kh\u00f4ng th\u1ec3 \u0111\u1ea3m b\u1ea3o t\u00ednh ch\u00ednh x\u00e1c ho\u1eb7c t\u00ednh k\u1ecbp th\u1eddi c\u1ee7a c\u00e1c t\u00e0i li\u1ec7u \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef b\u00ean ngo\u00e0i.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.shoutcast.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Trang ch\u1ee7 SHOUTcast<\/a><\/li>\n<li><a href=\"http:\/\/wiki.winamp.com\/wiki\/SHOUTcast_Getting_Started_Guide\" target=\"_blank\" rel=\"noreferrer noopener\">H\u01b0\u1edbng d\u1eabn b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng SHOUTcast<\/a><\/li>\n<li><a href=\"http:\/\/www.shoutcast.com\/broadcast-tools\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00f4ng c\u1ee5 ph\u00e1t s\u00f3ng SHOUTcast<\/a><\/li>\n<li><a href=\"http:\/\/wiki.winamp.com\/wiki\/SHOUTcast_DNAS_Transcoder_2#Registering_for_MP3_Stream_Encoding\" target=\"_blank\" rel=\"noreferrer noopener\">Gi\u1ea5y ph\u00e9p chuy\u1ec3n m\u00e3 MP3 SHOUTcast<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>SHOUTcast l\u00e0 ph\u1ea7n m\u1ec1m \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 ph\u00e1t tr\u1ef1c tuy\u1ebfn ph\u01b0\u01a1ng ti\u1ec7n qua internet. H\u1ec7 th\u1ed1ng SHOUTcast s\u1eed d\u1ee5ng c\u1ea5u h\u00ecnh m\u00e1y kh\u00e1ch-m\u00e1y ch\u1ee7 c\u1ed5 \u0111i\u1ec3n. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t SHOUTcast tr\u00ean m\u00e1y ch\u1ee7 c\u1ee7a m\u00ecnh v\u00e0 s\u1eed d\u1ee5ng n\u00f3 \u0111\u1ec3 ph\u00e1t tr\u1ef1c tuy\u1ebfn nh\u1ea1c \u0111\u1ebfn c\u00e1c m\u00e1y kh\u00e1ch \u0111\u01b0\u1ee3c k\u1ebft n\u1ed1i v\u1edbi<\/p>\n","protected":false},"author":1,"featured_media":36339,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118],"tags":[],"class_list":["post-35064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-media-servers"],"_links":{"self":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/35064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/comments?post=35064"}],"version-history":[{"count":0,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/35064\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media\/36339"}],"wp:attachment":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media?parent=35064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/categories?post=35064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/tags?post=35064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}