Smooth Streaming Module for IIS 5

back


Dependencies

The IIS module depends on the multithreaded, dynamic link libraries MSVCP80.DLL (The C run-time library) and the Standard C++ Library (MSVCP80.DLL). If by any chance you do not have these yet on your machine, then you can install the Microsoft Visual C++ 2005 SP1 Redistributable Package (x86).

The Ionics Isapi Rewrite Filter adds support for URL rewriting.

Download

Download the Smooth-Streaming-Module ISAPI extension for IIS.

Download the command line utility mp4split. This tool converts MP4 files to Fragmented MP4 and also creates the necessary manifest files.

Configuration IIS 5.1 (Windows XP)

When running Windows 32 bit:

In the root of the website (c:\inetpub\wwwroot).

  • Create an App_Code folder if you don't already have one.
  • Copy the Mod-Smooth-Streaming module (mod_smooth_streaming.dll) into this directory (c:\inetpub\wwwroot\app_code).

When running Windows 64 bit:

Open up IIS Manager. In the site properties, click the "Home directory" tab then click the "Configuration" button. We're going to add an entry for files ending in '.ism'.

  • Click the 'Add' button.
  • Click the 'Browse' button and select the mod_smooth_streaming.dll executable.
  • Place the text '.ism' in the Extension box.
  • Set Verbs to "Limit to:" with the value GET,HEAD,POST,DEBUG.
  • Click OK

Some versions of IIS do not serve static files with 'unknown' extensions. You can add '.ismc' (the extension of the client manifest) to the Mime Types as 'text/xml'. Depending on the playback devices you want to support you may also add the following:

ExtensionMime-TypeComment
.ismctext/xmlSmooth Streaming Client Manifest File
.m3u8application/x-mpegURLPlaylist for Apple iPhone/iPad/Quicktime X
.tsvideo/MP2TMPEG2-TS for Apple iPhone/iPad/Quicktime X
.mp4video/mp4MPEG4 video
.xapapplication/x-silverlight-appMicrosoft Silverlight Application

In your IsapiRewrite4.ini:

RewriteLog  c:\tmp\iirfLog.out
RewriteLogLevel 3

RewriteRule ^(.*/)?(.*)\.([is])sm(l?)/[Mm]anifest(.*)$ $1$2.$3sm$4/$2.ismc [L]
RewriteRule ^(.*/)?(.*)\.([is])sm(l?)/QualityLevels\(([0-9]+)\)/Fragments\((.*)=([0-9]+)\)(.*)$ $1$2.$3sm$4/$2.ism?bitrate=$5&$6=$7 [L]

After restarting your web server, you can continue with verifying your setup.

License

This version is free if you agree to the noncommercial license. Please mention its use on your website, in the lines of 'This website uses video streaming technology by CodeShop'.

Our commercial license is very inexpensive, see the following page to check if you need a commercial license.

Feedback

If you have any questions, thoughts or ideas on Smooth Streaming you can leave a message on our forum.