wiki:Mod-H264-Streaming-Lighttpd-Version2

Version 1 (modified by Arjen, 12 years ago) (diff)

--

Downloading and building the H264 Streaming Module for Lighttpd (version 2)

back


Download Lighttpd 1.4.18

Download the source of Lighttpd and the H264 Streaming Module.

cd ~
svn co http://h264.code-shop.com/svn/h264/branches/parser/lighttpd-1.4.18 lighttpd-1.4.18
svn co http://h264.code-shop.com/svn/h264/branches/parser/mp4split lighttpd-1.4.18/src

Download Lighttpd 1.4.19 & 1.4.20

Download, build and install your version of Lighttpd (from the official site) as you would do normally. Then follow the instructions for 1.4.18 and copy the mod_h264_streaming.so module to your Lighttpd's 1.4.19/1.4.20 plugin directory. The usual place of your lighttpd lib dir is /usr/lib/lighttpd.

Download Lighttpd 1.5.0

cd ~
svn co http://h264.code-shop.com/svn/h264/branches/parser/lighttpd-1.5.0 lighttpd-1.5.0
svn co http://h264.code-shop.com/svn/h264/branches/parser/mp4split lighttpd-1.5.0/src

Build

Run configure in the Lighttpd directory.

cd ~/lighttpd-1.4.18
./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 ".mp4" are handled by the mod_h264_streaming module.

server.modules = ( 
  ...,
  "mod_h264_streaming",
  ...
)
h264-streaming.extensions = ( ".mp4" )

Note that if you are using mod_secdownload to prevent hotlinking of your mp4 files that it is included before the mod_h264_streaming in the module list.

Start Lighttpd

sudo /etc/init.d/lighttpd start

Testing

Continue to the testing page to verify your setup.

Demo

See http://h264.code-shop.com:8080/testlist.html for a demo running Lighttpd 1.5.0.