lighttpd+mod_h264 Module Configuration

Source: Internet
Author: User

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:

    1. CP lighttpd-1.4.18/src/mod_h264_streaming.c lighttpd-1.4.x/src/

    2. CP Lighttpd-1.4.18/src/mod_streaming_export.h lighttpd-1.4.x/src/

    3. CP lighttpd-1.4.18/src/output_mp4.* lighttpd-1.4.x/src/

    4. CP lighttpd-1.4.18/src/moov.* lighttpd-1.4.x/src/

    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.