<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gj |</title>
	<atom:link href="https://blog.gaiterjones.com/category/shoutcast/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/category/shoutcast/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Thu, 16 Mar 2017 09:39:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>Installing Shoutcast for Ubuntu Linux 12.04 LTS</title>
		<link>https://blog.gaiterjones.com/installing-shoutcast-for-ubuntu/</link>
					<comments>https://blog.gaiterjones.com/installing-shoutcast-for-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Fri, 07 Sep 2012 09:29:53 +0000</pubDate>
				<category><![CDATA[Shoutcast]]></category>
		<category><![CDATA[Streaming]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=783</guid>

					<description><![CDATA[I am a great fan of Apples open source streaming server Darwin, however for live streaming I also like to use Shoutcast and Icecast streaming servers as they support many...<a class="more-link" href="https://blog.gaiterjones.com/installing-shoutcast-for-ubuntu/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p>I am a great fan of Apples open source streaming server <a title="Apple Darwin Streaming Server Compilation &amp; Installation for Linux" href="https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/" target="_blank">Darwin</a>, however for live streaming I also like to use Shoutcast and Icecast streaming servers as they support many more streaming source clients.</p>
<p>With Shoutcast you can create live broadcasts very quickly and reach large audiences cost effectively. I wanted to implement a new Amazon AWS server running Ubuntu 12.04 for a live streaming event and thought I would document the Shoutcast install process as I went along.</p>
<p>The commands below were executed as root, if you do not have root access use the sudo prefix to execute them with superuser privileges.</p>
<h1><strong>DOWNLOAD SHOUTCAST</strong></h1>
<p>Shoutcast does not come already packaged as an installer for Ubuntu so first we want to download the correct version of Shoutcast for our server.</p>
<p>goto <a href="http://www.shoutcast.com/broadcast-tools" target="_blank">http://www.shoutcast.com/broadcast-tools</a> and download the version you require, I need the 64bit version for my 64bit Ubuntu 12.04 Amazon AWS server. The current version at time of writing is SHOUTcast Server v2.0.0.29/posix(linux x64)</p>
<p>Create an application directory for Shoutcast</p>
<p>/home/apps/shoutcast</p>
<p>get the shoutcast package</p>
<p>wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz</p>
<h1>Extract the package</h1>
<p>gzip -d sc_serv2_linux_x64_07_31_2011.tar.gz<br />
tar -xvf sc_serv2_linux_x64_07_31_2011.tar</p>
<p>This will extract the Shoutcast files, you will see the main binary sc_serv, some example config files and folders for logs and documentation.</p>
<p>If you want to start Shoutcast now, simple type ./sc_serv and you will be prompted to choose one of the detected config files. Choose 0 for the basic config file and check if the Shoutcast daemon starts without errors. The most likely startup error will be that it cannot bind the default TCP port as it is already in use, by default shoutcast will use TCP8000.</p>
<h1>CREATE STARTUP SERVICE</h1>
<p>We want to run Shoutcast as a background service that can easily be stopped and started. Use the bash script below and paste it into a new file called shoutcast in /etc/init.d</p>
<p>Modify the script with the correct locations of your sc_serv binary and the configuration file you want to use.</p>
<p>Make the script executable and give it full permissions</p>
<p>chmod +x /etc/init.d/shoutcast<br />
chmod 755 /etc/init.d/shoutcast</p>
<p>Then install shoutcast as a service with</p>
<p>root@ubuntu:/etc/init.d# update-rc.d shoutcast defaults<br />
Adding system startup for /etc/init.d/shoutcast &#8230;<br />
/etc/rc0.d/K20shoutcast -&gt; ../init.d/shoutcast<br />
/etc/rc1.d/K20shoutcast -&gt; ../init.d/shoutcast<br />
/etc/rc6.d/K20shoutcast -&gt; ../init.d/shoutcast<br />
/etc/rc2.d/S20shoutcast -&gt; ../init.d/shoutcast<br />
/etc/rc3.d/S20shoutcast -&gt; ../init.d/shoutcast<br />
/etc/rc4.d/S20shoutcast -&gt; ../init.d/shoutcast<br />
/etc/rc5.d/S20shoutcast -&gt; ../init.d/shoutcast</p>
<h1>Start service</h1>
<p>Check if shoutcast will start and stop using</p>
<p>/etc/init.d/start shoutcast or service shoutcast start</p>
<p>You can confirm shoutcast is running by searching for it&#8217;s running process</p>
<p>ps -ef | grep sc_serv</p>
<p>You can also confirm the server is running by connecting to shoutcast with your browser using</p>
<p>http://server.address:8000/index.html</p>
<figure id="attachment_786" aria-describedby="caption-attachment-786" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_04.jpg"><img fetchpriority="high" decoding="async" class="size-medium wp-image-786" title="Shoutcast Admin Page" src="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_04-440x200.jpg" alt="" width="440" height="200" srcset="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_04-440x200.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_04-620x283.jpg 620w, https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_04.jpg 942w" sizes="(max-width: 440px) 100vw, 440px" /></a><figcaption id="caption-attachment-786" class="wp-caption-text">Shoutcast server admin page</figcaption></figure>
<p>&nbsp;</p>
<p>TCP 8000 is the default listener port used by Shoutcast, note, if your server is already using TCP8000 select another port for Shoutcast and configure it in your config file with e.g. portbase=8010</p>
<p>Restart shoutcast and connect using http://server.address:8010/index.html</p>
<p>Ensure that you change the default changeme admin  passwords in the configuration file.</p>
<p>To configure your streaming mount points simply create configuration entries for each live stream you require</p>
<p>streamid_1=1<br />
streampath_1=/livestream1<br />
streampassword_1=password<br />
streamid_2=2<br />
streampath_2=/livestream2<br />
streampassword_2=password</p>
<h1>Test streaming</h1>
<p>Assuming Shoutcast now starts correctly with your configuration file and you can connect to the admin page with your browser you should configure your streaming client to connect to the server.</p>
<p>The client will normally specify the server type as shoutcast, and then will require the server address and password for the mountpoint. In some cases you may need to specify the mount point in the client too as configured.</p>
<p>Here is a server config example from Nicecast connecting on TCP8002.</p>
<figure id="attachment_784" aria-describedby="caption-attachment-784" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_01.jpg"><img decoding="async" class="size-medium wp-image-784" title="Shoutcast Streaming with Nicecast" src="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_01-440x366.jpg" alt="" width="440" height="366" srcset="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_01-440x366.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_01.jpg 500w" sizes="(max-width: 440px) 100vw, 440px" /></a><figcaption id="caption-attachment-784" class="wp-caption-text">Nicecast server config for Shoutcast</figcaption></figure>
<p>&nbsp;</p>
<p>With your streaming client source connected, you can then publish the stream address as http://server.address:8010/mountpointname</p>
<figure id="attachment_790" aria-describedby="caption-attachment-790" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_05.jpg"><img decoding="async" class="size-medium wp-image-790" title="Live Broadcast with Nicecast" src="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_05-440x195.jpg" alt="" width="440" height="195" srcset="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_05-440x195.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_05.jpg 500w" sizes="(max-width: 440px) 100vw, 440px" /></a><figcaption id="caption-attachment-790" class="wp-caption-text">Broadcasting to Shoutcast using the Nicecast client</figcaption></figure>
<p>&nbsp;</p>
<p>Test you are now streaming live by connecting any media player to the stream url.</p>
<figure id="attachment_791" aria-describedby="caption-attachment-791" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_06.jpg"><img loading="lazy" decoding="async" class="size-medium wp-image-791" title="Listening to the Live Stream with the VLC Player" src="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_06-440x225.jpg" alt="" width="440" height="225" srcset="https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_06-440x225.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2012/09/screenshot_06.jpg 604w" sizes="(max-width: 440px) 100vw, 440px" /></a><figcaption id="caption-attachment-791" class="wp-caption-text">Listening to the Live Stream with the VLC Player</figcaption></figure>
<p>&nbsp;</p>
<p>Note be sure to configure the stream meta information in your client, shoutcast will reject the streaming client connection if the source URL meta tag is left blank.</p>
<p>&nbsp;</p>
<h1>Startup script</h1>
<p>&nbsp;</p>
<pre class="brush:shell">#!/bin/sh

### BEGIN INIT INFO
# Provides:          Shoutcast application instance
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts instance of Shoutcast
# Description:       starts instance of Shoutcast using start-stop-daemon
### END INIT INFO#

############################################################################
##  CHANGE THESE VALUES to match your setup
## CONFIG is the fully qualified location of your config file
## DAEMON is the fully qualified location of the sc_serv binary
############################################################################

CONFIG="/home/apps/shoutcast/sc_serv_basic.conf"
DAEMON="/home/apps/shoutcast/sc_serv"

# Check for SHOUTcast binary
test -f $DAEMON || exit 0

# The init commands
case "$1" in
        start)
                echo "Starting SHOUTcast server..."
                $DAEMON $CONFIG  &gt; /dev/null 2&gt;&amp;1 &amp;
                ;;
        stop)
                echo "Stopping SHOUTcast server..."
                kill -9 `ps -C sc_serv -o pid --no-headers`
                ;;
        restart)
                echo "Stopping SHOUTcast server..."
                kill -9 `ps -C sc_serv -o pid --no-headers`
                echo "Starting SHOUTcast server..."
                $DAEMON $CONFIG  &gt; /dev/null 2&gt;&amp;1 &amp;
                ;;
        *)
                echo "usage: /etc/init.d/shoutcast"
                echo "$0 {start | stop | restart}"
                exit 1
                ;;
esac</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/installing-shoutcast-for-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
