LIGHTTPD is a lightweight Web server that is very good for building video servers and consumes very little resources.
The LIGHTTPD supports the FLV video module by default and does not support the MP4 module. The H264 module needs to be added when compiling the installation. This will allow the MP4 to be supported.
H264 Configuration Reference: Http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2
Below to configure:
Download software:
Download the lighttpd:http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz with the H264 module
Download LIGHTTPD stable version
Http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.32.tar.gz
Integrate these two versions:
Unzip the version with the H264 module
TAR-ZXF lighttpd-1.4.28.tar.gz
Unzip the stable version
TAR-ZXF lighttpd-1.4.32.tar.gz
Copy files:
CP lighttpd-1.4.18/src/mod_h264_streaming.c lighttpd-1.4.x/src/
CP Lighttpd-1.4.18/src/mod_streaming_export.h lighttpd-1.4.x/src/
CP lighttpd-1.4.18/src/output_mp4.* lighttpd-1.4.x/src/
CP lighttpd-1.4.18/src/moov.* lighttpd-1.4.x/src/
CP lighttpd-1.4.18/src/mp4.* lighttpd-1.4.x/src/
Edit src/makefile.am
Lib_ltlibraries += mod_h264_streaming.lamod_h264_streaming_la_sources = mod_h264_ streaming.c mod_ streaming_export.h moov.c moov.h mp4_io.c mp4_io.h mp4_reader.c mp4_reader.h mp4_writer.c mp4_ writer.h mp4_process.c mp4_process.h output_bucket.c output_bucket.h output_mp4.c output_mp4.hmod_h264_streaming_la_cflags = $ (AM_CFLAGS) - Dbuilding_h264_streamingmod_h264_streaming_la_ldflags = -module -export-dynamic -avoid-version - no-undefinedmod_h264_streaming_la_libadd = $ (Common_libadd)
Save exit
Installing the stable version
#./autogen.sh #./configure--prefix=/usr/local/lighttpd--sysconfdir=/etc#make&make Install
Configuring the H264 Module
Under Configuration file directory conf.d file, create h264.conf
Add to:
server.modules+= ("mod_h264_streaming") H264-streaming.extensions = (". mp4", ". MP4 ",". f4v ") H264-streaming.buffer-seconds = 10
Save the exit test as you like.
This article is from the "Village Head Blog" blog, please be sure to keep this source http://cunzhang.blog.51cto.com/1488805/1689404
lighttpd+mod_h264 Module Configuration