User Tools

Site Tools


install_lighttpd_-_with_mod_h264_streaming

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 http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/lighttpd-1.4.18 mod_h264
svn export --force http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/mp4split 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
make

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/

Makefile

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

lib_LTLIBRARIES += mod_h264_streaming.la
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
./autogen.sh
cd /usr/ports/www/lighttpd/
make install clean

Nice you just completed the installation.

install_lighttpd_-_with_mod_h264_streaming.txt · Last modified: 2020/08/10 02:35 (external edit)