<?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>streaming Archives - gj</title>
	<atom:link href="https://blog.gaiterjones.com/tag/streaming-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/tag/streaming-2/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Tue, 06 Mar 2018 11:44:22 +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>Apple Darwin Streaming Server Compilation &#038; Installation for Linux</title>
		<link>https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/</link>
					<comments>https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 11:56:57 +0000</pubDate>
				<category><![CDATA[Darwin Streaming Server]]></category>
		<category><![CDATA[Streaming]]></category>
		<category><![CDATA[darwin streaming server]]></category>
		<category><![CDATA[streaming]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=530</guid>

					<description><![CDATA[DSS no longer compiles and runs new Ubuntu versions. If you want to use Darwin Streaming Server run it as a docker container using my DSS image. If you want...<a class="more-link" href="https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="hang-2-column alignnone" title="Half Eaten Fruit" alt="" src="https://blog.gaiterjones.com/wp-content/uploads/2011/09/apple-logo.png" width="150" height="181" /></p>
<p><strong>DSS no longer compiles and runs new Ubuntu versions. If you want to use Darwin Streaming Server run it as a <a href="https://hub.docker.com/r/gaiterjones/darwin-streaming/">docker container using my DSS image</a>.</strong></p>
<p>If you want to know how I compiled DSS 6.0.3 on Ubuntu <em>PRECISE</em> back in the stone age &#8211; read on&#8230;</p>
<p>Over the last few years I have been involved with some projects that required streaming audio and video solutions and I have been working with the Open Source Darwin Streaming Server from Apple running mainly on the Linux platform. DSS will run under Windows but I wouldn&#8217;t recommend it.</p>
<p>The Darwin Streaming Server (DSS) is the open source version of Apples quicktime server technology which is built into Apples OS X Server. DSS can run under Mac OSX, Windows and Linux. The streaming server supports QuickTime Movie (MOV),  MPEG-4 (MP4), and 3GPP (3GP) &#8220;hinted&#8221; files. Support resources for DSS are quite limited so I will start to post information here to document some of the work I have done with DSS, including installation, configuration, use etc.</p>
<p>This first post will document the compilation, installation and testing of the current version of DSS, v6.0.3 under Linux.</p>
<p>The commands below assume you have superuser rights.</p>
<h1>Compilation</h1>
<p>To compile DSS we first need to make sure we have the required packages for the download and compile utilities.</p>
<p>Execute the following as a superuser, or use the sudo prefix command.</p>
<p><em>apt-get install build-essential wget</em></p>
<pre>Need to get 19.6MB of archives.
After this operation, 66.8MB of additional disk space will be used.
Do you want to continue [Y/n]?</pre>
<p>Hit <strong>Y</strong> to download and install the required packages.</p>
<p>Change to a working directory for the download and compilation i.e. /home/DSS and download the DSS 6.0.3 source (31MB) tar file directly to your working folder using wget:</p>
<p><em>wget http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr6.0.3-Source.tar</em></p>
<p>Uncompress the tar file</p>
<p><em>tar -xvf DarwinStreamingSrvr6.0.3-Source.tar</em></p>
<p>Rename the source file directory to allow us to create a patch directory. The patches are required to compile DSS under a 64bit OS, but there is also no harm in applying them if you are using a 32bit OS.</p>
<p><em>mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig</em></p>
<p>Download the first patch file</p>
<p><em>wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-6.0.3.patch</em></p>
<p>Apply the patch</p>
<p><em>patch -p0 &lt; dss-6.0.3.patch</em></p>
<p>Move the source file directory back</p>
<p><em>mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source</em></p>
<p>Download the second patch file</p>
<p>wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-hh-20080728-1.patch</p>
<p>Apply the patch</p>
<p><em>patch -p0 &lt; dss-hh-20080728-1.patch</em></p>
<p>Change into the DSS source file directory</p>
<p><em>cd DarwinStreamingSrvr6.0.3-Source</em></p>
<p>Rename the source install file</p>
<p><em>mv Install Install.orig</em></p>
<p>Get the latest install file</p>
<p><em>wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/Install</em></p>
<p>Set execute permissions on the install file</p>
<p><em>chmod +x Install</em></p>
<p>Compile the source code (dot slash Buildit)</p>
<p><em>./Buildit</em></p>
<pre>-----------------------
Configuring for the Linux i686 platform
Building for Linux.i686 with gcc</pre>
<p>Now is a good time to grab a coffee as the build process could take a few minutes. The various warning messages you will see can be safely ignored and unless you experience another serious error the compilation is completed when the command prompt returns.</p>
<h1>Installation</h1>
<p>First create the qtss user and group required by DSS</p>
<p><em>addgroup -system qtss</em><br />
<em>adduser -system -no-create-home -ingroup qtss qtss</em></p>
<p>and then run the DSS install script. (dot slash <strong>Install</strong> &#8211; case sensitive!)</p>
<p><em>./Install</em></p>
<p>The install script creates the DSS directory structure and copies files and sample media. When complete you will be prompted to create an administrator username and password. Enter the username and password you will use to administer DSS. Confirm the password.</p>
<pre>Adding userName admin
Setup Complete!</pre>
<p>Check permissions for the DSS configuration file in /etc/streaming, it must be writeable or the changes made in the administration pages will fail.</p>
<p><em>chmod 755 /etc/streaming/streamingserver.xml</em></p>
<p>The DSS installation is now complete, and the server should be started! To manually start the server use</p>
<p lang="en-GB"><em>/usr/local/sbin/streamingadminserver.pl</em></p>
<p>If the server is already running you will see</p>
<pre>Failed to start Streaming Admin Server.
Port 1220 is in use by another process.
The Streaming Admin Server may already be running.</pre>
<p>We can also configure DSS to auto start automatically on boot up, to do this download the following script</p>
<p><em>wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/darwin-streaming-server</em></p>
<p>make it executable</p>
<p><em>chmod +x darwin-streaming-server</em></p>
<p>Move the script into /etc/init.d</p>
<p><em>mv darwin-streaming-server /etc/init.d/darwin-streaming-server</em></p>
<p><em></em>and update rc.d to so that it can auto start and respond to start/stop commands.</p>
<p><em>update-rc.d darwin-streaming-server defaults</em></p>
<p>The server can now be started and stopped with</p>
<p>/etc/init.d/darwin-streaming-server stop</p>
<p>/etc/init.d/darwin-streaming-server start</p>
<h1>Configuration</h1>
<p>The administration web service for DSS runs on TCP port 1220, to login to the server start a browser session and navigate to</p>
<p>http://servername-or-ip-address:1220</p>
<p>You will see the DSS login page, login with the username and password you created during the installation and click the Log In button.</p>
<figure id="attachment_531" aria-describedby="caption-attachment-531" style="width: 575px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image1.jpg"><img fetchpriority="high" decoding="async" class="size-full wp-image-531" title="Darwin Streaming Server 6.0.3 login page" alt="Darwin Streaming Server 6.0.3 login page" src="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image1.jpg" width="575" height="345" srcset="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image1.jpg 575w, https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image1-440x264.jpg 440w" sizes="(max-width: 575px) 100vw, 575px" /></a><figcaption id="caption-attachment-531" class="wp-caption-text">Darwin Streaming Server 6.0.3 login page</figcaption></figure>
<p>&nbsp;</p>
<p>The setup assistant will ask you for a MP3 broadcast password &#8220;The MP3 Broadcast password is required in order to receive MP3 broadcast streams.&#8221;</p>
<p>Enter the MP3 broadcast password you wish to use and click next to continue.</p>
<p>The setup assistant will ask you if you want to enable SSL for admin. &#8220;This will enable encryption between the administration server and the web client. This feature requires that you have a valid streaming server SSL certificate installed.&#8221;</p>
<p>Click the Next button to continue.</p>
<p>The setup assistant will ask you to confirm the Media folder for DSS &#8220;This is the folder or directory in which your media is stored.&#8221; To accept the default media folder (/usr/local/movies/) click the Next button, or enter the path to a new media folder. If you change the media folder make sure you set ownership of the new folder to the qtss user</p>
<p><em>chown -R qtss.root /home/mymediafolder</em></p>
<p>The setup assistant will ask you if you want to use Port 80 for streaming &#8220;This allows you to stream through firewalls.&#8221; Streaming on TCP port 80 instead of default RTSP ports will ensure that streaming clients behind most firewalls that might have none standard ports, such as RTSP blocked, will be able to access the streaming server via TCP Port 80 which is commonly used for HTTP access and is more likely to be permitted through firewalls. I recommend considering this later as you need to be sure that any existing services running on Port 80, i.e. Apache have been modified or stopped before you try and use DSS streaming on Port 80.</p>
<p>Click the Finish button to continue.</p>
<p>The main DSS administration screen will appear and the DSS installation and basic configuration is complete.</p>
<figure id="attachment_532" aria-describedby="caption-attachment-532" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image2.jpg"><img decoding="async" class="size-medium wp-image-532" title="Darwin Server 6.0.3 Main Administrator Screen" alt="Darwin Server 6.0.3 Main Administrator Screen" src="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image2-440x360.jpg" width="440" height="360" srcset="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image2-440x360.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image2-620x507.jpg 620w, https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image2.jpg 651w" sizes="(max-width: 440px) 100vw, 440px" /></a><figcaption id="caption-attachment-532" class="wp-caption-text">Darwin Streaming Server 6.0.3 Main Administration Screen</figcaption></figure>
<p>&nbsp;</p>
<p>Make a tarball of your install directory and save it somewhere for future use!</p>
<h1>Testing</h1>
<p>If you look in the default media directory (/usr/local/movies) you will see some test audio and video media files.</p>
<p>i.e. /usr/local/movies/sample_h264_300kbit.mp4</p>
<p>To test your installation and stream one of the example media files open a media player capable of RTSP streaming, i.e. Apple Quicktime Player, VLC and open a new network stream in the player with the address</p>
<p>rtsp://servername-or-ip-address/sample_h264_300kbit.mp4</p>
<p>The 300Kbit h264 sample MP4 file will stream from your server and should play in your media player.</p>
<figure id="attachment_533" aria-describedby="caption-attachment-533" style="width: 252px" class="wp-caption alignnone"><img loading="lazy" decoding="async" title="Streaming a sample media file" alt="Streaming a sample media file" src="https://blog.gaiterjones.com/wp-content/uploads/2011/09/DSS-Image3-315x440.jpg" width="252" height="352" /><figcaption id="caption-attachment-533" class="wp-caption-text">Streaming a sample media file with VLC Player</figcaption></figure>
<p>&nbsp;</p>
<p>DSS Uses the following default directories for config, playlists, logs etc.</p>
<p>/usr/local/sbin/Darwin Streaming Server &#8212;- Server Software<br />
/usr/local/sbin/streamingadminserver.pl &#8212;- Web Frontend<br />
/etc/streaming &#8212;- Configuration Directory<br />
/etc/streaming/streamingserver.xml &#8212;- Configuration File<br />
/var/streaming/logs &#8212;- Logs<br />
/usr/local/movies &#8212;- Default media directory</p>
<p>I will look at configuring the server further and preparing media for streaming in another blog post.</p>
<h1></h1>
<h1>Further Resources</h1>
<p>&nbsp;</p>
<p>Looking for a media player for darwin mp3 streams &#8211; check out the facebook darwin media tab demo on my <a href="http://www.facebook.com/pages/gaiterjones/243428839036258" target="_blank" rel="noopener">facebook</a> page.</p>
<p><a href="http://dss.macosforge.org/">http://dss.macosforge.org/</a></p>
<p><a href="http://ubuntuforums.org/archive/index.php/t-651556.html">http://ubuntuforums.org/archive/index.php/t-651556.html</a></p>
<p><a href="http://lists.apple.com/mailman/listinfo2/streaming-server-users">http://lists.apple.com/mailman/listinfo2/streaming-server-users</a></p>
<p><a href="http://dss.macosforge.org/post/40/">http://dss.macosforge.org/post/40/</a></p>
<p><a href="http://soundscreen.com/streaming/">http://soundscreen.com/streaming/</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
			</item>
	</channel>
</rss>
