<?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>Wade Arnold &#187; FMS</title>
	<atom:link href="http://wadearnold.com/blog/category/flash/flash-media-server/feed" rel="self" type="application/rss+xml" />
	<link>http://wadearnold.com/blog</link>
	<description>The spoils of the integration of PHP and ActionScript</description>
	<lastBuildDate>Thu, 03 Feb 2011 03:38:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Embedded/Hardened Flash Media Server 3 on  X/Ubuntu Hardy Heron 8.04</title>
		<link>http://wadearnold.com/blog/flash/embeddedhardened-flash-media-server-3-on-xubuntu-hardy-heron-804</link>
		<comments>http://wadearnold.com/blog/flash/embeddedhardened-flash-media-server-3-on-xubuntu-hardy-heron-804#comments</comments>
		<pubDate>Wed, 16 Jul 2008 14:00:16 +0000</pubDate>
		<dc:creator>wadearnold</dc:creator>
				<category><![CDATA[FMS]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false">http://wadearnold.com/blog/?p=39</guid>
		<description><![CDATA[A mil spec hardened FMS server and raw video stream publisher were required in order to stream drive camera , ptz and thermal surveillance video over  RTMP streams from a robot back to a Flex user interface. I opted to use a PC-104 stack from to meet the temperature requirements and a mil spec hard drive. I also used a PC-104 [...]]]></description>
			<content:encoded><![CDATA[<p>A mil spec hardened FMS server and raw video stream publisher were required in order to stream drive camera , ptz and thermal surveillance video over  RTMP streams from a robot back to a Flex user interface. I opted to use a PC-104 stack from to meet the temperature requirements and a mil spec hard drive. I also used a PC-104 4 input frame grabber in order to get all four robot cameras online. The frame grabber showed up as  /dev/video0 with all four channels and we had to write a crop tool that brook the four quadrants of data and placed them onto vloopback V4L2 buffers.  The new <a href="http://labs.adobe.com/technologies/flashplayer10/">Flash Player 10 beta2</a> player was not able to pick-up vloopback as a valid V4L2 device so I opted for using the <a href="http://www.swift-tools.net/Flashcam/">FlashCam</a> project to convert my V4L2 device back to V4L. I used an AIR application that picked up the four streams and &#8220;published&#8221; the video at it&#8217;s highest quality to a localhost FMS server. Because of this need I had to have an X sessions so I used Xbuntu as the operating system. It is pretty slick install as it gets rid of all the traditional junk the Ubuntu desktop has in order to keep it fast. I assume that I could have cut down RHEL and gone with a supported FMS server but the following information will tell you how to get a dev version of FMS up and running on Xbuntu 8.04.</p>
<p dir="ltr" style="text-align: left">To install Flash Media Server on the box I had to follow the patch process outlined by <a href="http://www.bluetwanger.de/blog/2008/02/11/flash-media-server-3-on-ubuntu-710-gutsy/">Markus Bertheau</a> and the first half of these steps were taken from this <a href="http://mrbinitie.blogspot.com/2008/06/installing-flash-media-interactive.html"><span>aYo Binitie II</span></a>.</p>
<p dir="ltr" style="text-align: left"><span style="font-weight: bold; font-style: italic">The following process gets Flash Media Server installed properly. </span></p>
<p dir="ltr" style="text-align: left"><a href="http://www.adobe.com/cfusion/tdrc/index.cfm?product=flashmediaserver&amp;loc=en_us"><span style="font-weight: bold">Download Flash Media Server </span></a></p>
<p dir="ltr" style="text-align: left"><span style="font-weight: bold">Install the additional libraries needs to run FMS on Ubuntu</span></p>
<p dir="ltr" style="text-align: left">$ sudo apt-get install libnspr4-dev</p>
<p dir="ltr" style="text-align: left"><span style="font-weight: bold">Unzip the download which for me was on my Desktop</span></p>
<p dir="ltr" style="text-align: left">$ unzip Flashmedia3_Int_Strm_ALP.zip<span lang="en-US"><br />
$ cd Flashmedia3_Int_Strm_ALP</span><br />
$ tar xvzf FlashMediaServer3.tar.gz</p>
<p dir="ltr" style="text-align: left"><span style="font-weight: bold">Download and install the patch</span></p>
<p dir="ltr" style="text-align: left">$ cd FMS_3_0_1_r123/<br />
$ wget http://www.bluetwanger.de/~mbertheau/flash-media-server-3-ubuntu.patch<br />
$ patch -p1 &lt; flash-media-server-3-ubuntu.patch<br />
$ sudo ./installFMS</p>
<p dir="ltr" style="text-align: left">I ran with the defaults on everything. If you have Group issues then the patch did not work properly!</p>
<p dir="ltr" style="text-align: left"><span style="font-weight: bold">Installation complete! Double check</span></p>
<p dir="ltr" style="text-align: left">$ sudo /etc/init.d/fms restart<br />
$ tail /var/log/messages<br />
Jul 16 08:24:10 wade-laptop Service[21193]: Server stopped .<br />
Jul 16 08:24:10 wade-laptop Service[22858]: Server starting&#8230;<br />
Jul 16 08:24:10 wade-laptop Service[22858]: Server started (/opt/adobe/fms/conf/Server.xml).<br />
Jul 16 08:24:10 wade-laptop Adaptor[22878]: Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4<br />
Jul 16 08:24:10 wade-laptop Adaptor[22878]: Listener started ( _defaultRoot__edge1 ) : 1935/v4<br />
Jul 16 08:24:15 wade-laptop Service[23053]: Server starting&#8230;<br />
Jul 16 08:24:15 wade-laptop Adaptor[23053]: Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4<br />
Jul 16 08:24:15 wade-laptop Adaptor[23053]: Listener started ( FCSAdminAdaptor ) : 1111/v4<br />
Jul 16 08:24:15 wade-laptop Service[23053]: Server started (./conf/Server.xml).</p>
<p dir="ltr" style="text-align: left">$ ps -e | grep fms<br />
22858 pts/1    00:00:00 fmsmaster<br />
22878 pts/1    00:00:00 fmsedge<br />
22881 pts/1    00:00:00 fmscore<br />
23053 pts/1    00:00:00 fmsadmin</p>
<p dir="ltr" style="text-align: left"><strong>Now to add an application and set proper permissions.</strong> I had a PTZ applications folder on my desktop with the new FMS app that I wanted installed. The following commands are necessary because you need to first make the applications owned by the user and group fms and then you need to remove the setuid bit that is added.</p>
<p dir="ltr" style="text-align: left">$ sudo cp ~wade/Desktop/applications/PTZ /opt/adobe/fms/applications/PTZ<br />
$ ls -la /opt/adobe/fms/applications/ | grep PTZ<br />
drwx&#8211;S&#8212;  2 root fms 4096 2008-07-16 08:52 PTZ<br />
$ sudo chown -R fms:fms /opt/adobe/fms/applications/PTZ<br />
$ sudo chmod 755 -R /opt/adobe/fms/applications/PTZ<span lang="en-US"><br />
$ ls -la /opt/adobe/fms/applications/ | grep PTZ</span><br />
drwxr-sr-x  2 fms fms 4096 2008-07-16 08:52 PTZ<span lang="en-US"><br />
$ chmod -s -R /opt/adobe/fms/applications/PTZ<br />
$ ls -la /opt/adobe/fms/applications/ | grep PTZ<br />
drwxr-xr-x  2 fms fms 4096 2008-07-16 08:52 PTZ</span></p>
<p dir="ltr" style="text-align: left"><span style="font-weight: bold" lang="en-US">Note that the setuid bit has changed from s to x</span></p>
<p dir="ltr" style="text-align: left; margin-bottom: 0in; margin-top: 0in; margin-right: 0in"><span lang="en-US">$ sudo /etc/init.d/fms restart</span></p>
<p dir="ltr" style="text-align: left; margin-bottom: 0in; margin-top: 0in; margin-right: 0in">&nbsp;</p>
<p dir="ltr" style="text-align: left; margin-bottom: 0in; margin-top: 0in; margin-right: 0in"><span style="font-weight: bold" lang="en-US">Your good to go now! Start using FMS like the documentation says and everything will work fine. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://wadearnold.com/blog/flash/embeddedhardened-flash-media-server-3-on-xubuntu-hardy-heron-804/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
