Building the H264 Streaming Module from Source (version 2)
Binaries are provided on this? page. What follows are just the build instructions for the different web servers.
Apache2 + mod_h264_streaming
Make sure you have apxs2 installed:
sudo apt-get install apache2-threaded-dev
Download the source of the H264 Streaming Module for Apache.
cd ~ svn co http://h264.code-shop.com/svn/h264/branches/parser/apache apache_http_h264_streaming
compile and link (-c), install module in 'modules' directory (-i) and add LoadModule? to httpd.conf (-a).
cd ~/apache_http_h264_streaming apxs2 -c -i -a mod_h264_streaming.c moov.c
Edit the configuration file (in /etc/apache/httpd.conf) so that file requests ending in ".mp4" are handled by the h264_streaming_module.
LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so AddHandler h264-streaming.extensions .mp4
Start Apache.
sudo /etc/init.d/apache start
See http://h264.code-shop.com:82/demo/apache/testlist.html for a demo running Apache.
Nginx + http_h264_streaming_module
Download the source of Nginx. I used (at this time) the latest, which is version 0.7.9.
wget http://www.nginx.eu/download/sources/nginx-0.7.9.tar.gz
Download the source of the H264 Streaming Module for Nginx:
cd ~ svn co http://h264.code-shop.com/svn/h264/branches/parser/nginx nginx_http_h264_streaming
Run configure in the Nginx directory with the following additions to the commandline.
./configure --add-module=~/nginx_http_h264_streaming --sbin-path=/usr/local/sbin --with-debug
Make and install Nginx.
make sudo make install
Edit the configuration file (in /usr/local/nginx/conf/nginx.conf) so that file requests ending in ".mp4" are handled by the 'mp4' command. Add the following lines (around line 43).
location ~ \.mp4$ {
mp4;
}
Start Nginx
sudo /usr/local/sbin/nginx
See http://h264.code-shop.com:83/demo/nginx/testlist.html for a demo running Nginx.
