Smooth Streaming Module for Lighttpd
Dependencies
To make sure you have all dependencies (configuration files, startup scripts) installed it's best to first install Lighttpd via 'apt-get'.
sudo apt-get install lighttpd
Download Lighttpd 1.5.0
Download the source of Lighttpd and the Smooth Streaming Module.
cd ~ wget http://smoothstreaming.code-shop.com/download/lighttpd-1.5.0_mod_smooth_streaming-1.3.1.tar.gz tar -zxvf lighttpd-1.5.0_mod_smooth_streaming-1.3.1.tar.gz
Build
Run configure in the Lighttpd directory.
cd ~/lighttpd-1.5.0 ./configure
Make and install Lighttpd.
make sudo make install
Configuration
Edit the configuration file (in /etc/lighttpd/lighttpd.conf) so that file requests ending in ".ism" are handled by the mod_smooth_streaming module.
server.modules = ( ..., "mod_smooth_streaming", ... ) smooth-streaming.extensions = ( ".ism" ) url.rewrite-once = ( "^(.*/)?(.*)\.([is])sm([l])?/[Mm]anifest$" => "$1$2.$3sm$4/$2.ismc", "^(.*/)?(.*)\.([is])sm([l])?/QualityLevels\(([0-9]+)\)/Fragments\((.*)=([0-9]+)\)(.*)$" => "$1$2.$3sm$4/$2.ism?bitrate=$5&$6=$7" )
Make sure that DAEMON in your startup script (/etc/init.d/lighttpd) is set to point to the locally build version.
DAEMON=/usr/local/sbin/lighttpd
Start Lighttpd
sudo /etc/init.d/lighttpd start
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'.
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.
