<?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>darwin streaming server Archives - gj</title>
	<atom:link href="https://blog.gaiterjones.com/tag/darwin-streaming-server-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/tag/darwin-streaming-server-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>How to Embed Quicktime Video Correctly in a Web Page</title>
		<link>https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/</link>
					<comments>https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Mon, 09 Jan 2012 12:49:18 +0000</pubDate>
				<category><![CDATA[Darwin Streaming Server]]></category>
		<category><![CDATA[Quicktime Video]]></category>
		<category><![CDATA[Streaming]]></category>
		<category><![CDATA[darwin streaming server]]></category>
		<category><![CDATA[Quicktime Embed Code]]></category>
		<category><![CDATA[RTSP]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=638</guid>

					<description><![CDATA[As a HUGE David Bowie fan, I like to celebrate his birthday (he was 65 yesterday) with lots of Bowie videos and music. I like to share the videos with...<a class="more-link" href="https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="hang-2-column     alignnone" title="How to embed quicktime video" src="http://images.apple.com/downloads/images/essentials_quicktime20070611.png" alt="" width="120" height="120" />As a <em>HUGE</em> <a href="http://www.davidbowie.com">David Bowie</a> fan, I like to celebrate his birthday (he was 65 yesterday) with lots of Bowie videos and music. I like to share the videos with friends using Apples Darwin streaming server to create a live streaming playlist..Each year I do this I forget how to correctly embed the Quicktime video in html. So after searching around a lot for the best multi browser compatible way to do this here is the <em>correct</em> way to embed Quicktime video into your web site.</p>
<p>My example will embed the video using Apples recommended multi browser html and javascript code,  reference movie file and a poster image.</p>
<p>First, the reference movie file. If you use Quicktime Pro you can get the software to generate a reference file when you encode your movies for the web. The reference file has a .mov file extension but is not a media file instead it passes information to Quicktime to help it determine the best media to play for the client, i.e. low bandwidth version, iPhone version etc. In my case I am streaming all my media through a <a title="Apple Darwin Streaming Server Compilation &amp; Installation for Linux" href="https://blog.gaiterjones.com/how-to-install-apple-darwin-streaming-server/">Darwin Streaming Server </a>using RTSP and will create a reference file that points to the videos on my Darwin server.</p>
<p>The media reference file is accessed from Quicktime via HTTP so needs to be saved on in a publicly accessible area of your site.</p>
<p>In my example I am going to embed Bowies Lets Dance video. The video is saved in my Darwin media folder<em> /home/media/video</em> and is called <strong>davidbowie-lets-dance.mp4.</strong></p>
<p>In my website folder I create a reference file called <strong>davidbowie-lets-dance.mov</strong> and paste the following text into it.</p>
<p><em><strong>RTSPtextRTSP://medazzaland.co.uk:554/video/davidbowie-lets-dance.mp4</strong></em></p>
<p>We need a &#8220;poster&#8221; image to represent the video, this will be shown on the embed page before the video plays, so we simply take a frame from the video and save it in a publicly accessible folder, in this example its called <strong>davidbowie-lets-dance.png</strong></p>
<p>Now the HTML code to embed the video. In the head section we need to include Apples javascript and some styling that is used for the Click Here link on the embedded video.</p>
<pre class="brush:xml">&lt;script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="http://www.apple.com/library/quicktime/stylesheets/qtp_library.css" rel="StyleSheet" type="text/css" /&gt;</pre>
<p>And now for the embed code which should go between the body tags of your html</p>
<pre class="brush:xml">	&lt;div id="quicktimevideo"&gt;
		&lt;script type="text/javascript"&gt;&lt;!--
		QT_WritePoster_XHTML('Click to Play - David Bowie - Lets Dance', 'images/davidbowie-lets-dance.png',
			'http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov',
			'720', '576', '',
			'controller', 'true',
			'autoplay', 'true',
			'bgcolor', 'black',
			'scale', 'aspect');
	//--&gt;
	&lt;/script&gt;
	&lt;noscript&gt;
	&lt;object width="720" height="576" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"&gt;
		&lt;param name="src" value="images/davidbowie-lets-dance.png" /&gt;
		&lt;param name="href" value="http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov" /&gt;
		&lt;param name="target" value="myself" /&gt;
		&lt;param name="controller" value="false" /&gt;
		&lt;param name="autoplay" value="false" /&gt;
		&lt;param name="scale" value="aspect" /&gt;
		&lt;embed width="720" height="576" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
			src="images/davidbowie-lets-dance.png"
			href="http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov"
			target="myself"
			controller="false"
			autoplay="false"
			scale="aspect"&gt;
		&lt;/embed&gt;
	&lt;/object&gt;
	&lt;/noscript&gt;

	&lt;/div&gt;</pre>
<p>This code should work across all browsers and will embed the video using the poster image as a link as show below.</p>
<figure id="attachment_639" aria-describedby="caption-attachment-639" style="width: 372px" class="wp-caption alignnone"><a href="http://tv.medazzaland.co.uk/?play=davidbowie-lets-dance"><img fetchpriority="high" decoding="async" class=" wp-image-639   " title="Embedded Quicktime Video Example" src="https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1-620x485.jpg" alt="Embedded Quicktime Video Example" width="372" height="291" srcset="https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1-620x485.jpg 620w, https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1-440x344.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2012/01/Image1.jpg 671w" sizes="(max-width: 372px) 100vw, 372px" /></a><figcaption id="caption-attachment-639" class="wp-caption-text">Embedded Quicktime Video Example</figcaption></figure>
<p>&nbsp;</p>
<p>Notice that the embed code points to the reference .mov file with an http link, the reference file then redirects Quicktime to the correct RTSP link for the video.</p>
<p>If you want to serve up a lot of videos in this way, you can create the reference file on the fly with PHP as I have done with this example &#8211; click the photo above to goto a demo page. The video information, name, title, size etc. are all stored in a database, the PHP script pulls out the video info from the database and creates the reference files and html on the fly.</p>
<p>As a side note, I was unable to compile Darwin from source under the latest version of Ubuntu Server 11.10, I had to use previously compiled files from another Ubuntu server running Ubuntu 8.x for the install.</p>
<p>I am still looking at perfecting the MP4 encoding for Darwin streaming, so more on that another time and Happy Birthday David Bowie!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/how-to-embed-quicktime-video-correctly-in-a-web-page/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		<enclosure url="http://my.medazzaland.co.uk/reference/davidbowie-lets-dance.mov" length="69" type="video/quicktime" />

			</item>
		<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 loading="lazy" 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 loading="lazy" 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>
