wiki:Mod-Smooth-Streaming-Lighttpd-Version1

Smooth Streaming Module for Lighttpd

back


Download

Download the source of the H264 Streaming Module for Lighttpd.

For Lighttpd 1.4.18:

cd ~
wget http://h264.code-shop.com/download/lighttpd-1.4.18_mod_h264_streaming-2.2.0.tar.gz
tar -zxvf lighttpd-1.4.18_mod_h264_streaming-2.2.0.tar.gz

For Lighttpd 1.5.0:

cd ~
wget http://h264.code-shop.com/download/lighttpd-1.5.0_mod_h264_streaming-2.2.0.tar.gz
tar -zxvf lighttpd-1.5.0_mod_h264_streaming-2.2.0.tar.gz

If you plan to play Multi Bit Rate H.264 encoded videos, you will also need the command line tool 'mp4split' to create the Smooth Streaming manifest files.

wget http://h264.code-shop.com/download/mp4split-2.2.0.tar.gz
tar -zxvf mp4split-2.2.0.tar.gz

Build

cd ~/lighttpd-1.5.0_mod_h264_streaming-2.2.0
./configure
make
sudo make install
cd ~/mp4split-2.2.0
./configure
make
sudo make install

Configuration

In your lighttpd.conf you have to enable both the mod_h264_streaming and mod_write modules

server.modules = (
 "mod_h264_streaming",
 "mod_rewrite",
)

The mod_h264_streaming is going to serve .mp4 (single bit rate) and .ismv (multi bit rate) video files.

h264-streaming.extensions = ( ".mp4" ,".ismv" )

We're going to rewrite some extensions and REST parameters to query parameters.

url.rewrite-once = (
  "^(.*)\.ism/manifest(\?(.*))$" => "$1.mp4?manifest=1",
  "^(.*)\.ism/Fragments\((.*)=([0-9]+)\)(.*)$" => "$1.mp4?$2=$3",
  "^(.*)/(.*)\.ism/QualityLevels\(([0-9]+)\)/Fragments\((.*)=([0-9]+)\)(.*)$" => "$1/$2.ism/$2_$3.ismv?$4=$5",
  "^(.*)\.ism/QualityLevels\(([0-9]+)\)/Fragments\((.*)=([0-9]+)\)(.*)$" => "$1.ism/$1_$2.ismv?$3=$4"
)

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 H264 pseudo video streaming technology by CodeShop'.

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

Next

Feedback

If you have any questions, thoughts or ideas on Smooth Streaming you can leave a message on our [topic:41 forum].

Last modified 13 years ago Last modified on 06/16/09 14:53:57