User Tools

Site Tools


freebsd + lighttpd + mod_h264_streaming

Following has been tested on freebsd 7.x

This is step by step.

First thing need to be done is get the copy of - mod_h264_streaming.

NOTE : Cosidering you are in folder - “/usr/local/src”

svn export mod_h264
svn export --force mod_h264/src

Now, you need to run the make command on “/usr/ports/www/lighttpd”

NOTE : Make sure you hit <Ctrl+C> after it start configure.

cd /usr/ports/www/lighttpd

This will create one “work” folder inside /usr/ports/www/lighttpd.

Now we need to follow wiki to install module.

Your source location : /usr/ports/www/lighttpd/work/lighttpd-1.4.24 Your module location : /usr/local/src/mod_h264/

Above location is in terms of wiki.

cp /usr/local/src/mod_h264/src/moov.* /usr/ports/www/lighttpd/work/lighttpd-1.4.24/src/
cp /usr/local/src/mod_h264/src/mod_h264_streaming.c /usr/ports/www/lighttpd/work/lighttpd-1.4.24/src/


First you add the following to the /usr/ports/www/lighttpd/work/lighttpd-1.4.24/src/ file:

mod_h264_streaming_la_SOURCES = mod_h264_streaming.c moov.c
mod_h264_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
mod_h264_streaming_la_LIBADD = $(common_libadd)

(for example, just after 'mod_flv_streaming')

Modify Source File to complete compile on Freebsd.

NOTE : Add line before Line number 45

| /usr/ports/www/lighttpd/work/lighttpd-1.4.24/src/moov.c
#include <sys/types.h>

Now Run following command.

cd /usr/ports/www/lighttpd/work/lighttpd-1.4.24
cd /usr/ports/www/lighttpd/
make install clean

Nice you just completed the installation.

install_lighttpd_-_with_mod_h264_streaming.txt · Last modified: 2009/11/12 20:38 by k2patel