视频伪流技术(pseudostreaming)

本文档介绍如何为Apache服务器下载并构建H264流媒体模块版本2。包括依赖项安装、源代码下载、配置及安装步骤,并提供针对不同操作系统的具体指导,如Ubuntu和CentOS。同时说明了如何配置Apache来使用该模块处理MP4文件。

http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2


Downloading and building the H264 Streaming Module for Apache (version 2)

back


Dependencies

We will be using apxs2, the APache eXtenSion tool, to build and install the module for the Apache server.

Make sure you have apxs2 installed:

sudo apt-get install apache2-threaded-dev

Download

Download the source of the H264 Streaming Module for Apache.

cd ~
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz

Build

cd ~/mod_h264_streaming-2.2.7
./configure --with-apxs=`which apxs2`
make
sudo make install

Configuration

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

Build & Configuration (CentOS 5.2)

CentOS users can follow these intructions for building the module instead. It uses apxs (instead of apxs2) and httpd (instead of apache).

sudo yum install httpd-devel 
sudo yum install httpd mod_ssl

cd ~/mod_h264_streaming-2.2.5
./configure
make
sudo make install

sudo vi /etc/httpd/conf/httpd.conf 
Add the line 
'AddHandler h264-streaming.extensions .mp4' 
after the line 
'LoadModule h264_streaming_module /usr/lib/httpd/modules/mod_h264_streaming.so' 
sudo /etc/init.d/httpd start 

License

This version is free if you agree to the noncommercial license. Please mention its use on your website, in the lines of 'This website uses H264 pseudo video streaming technology by CodeShop'.

Our commercial license is very inexpensive, see the following page to check if you need a commercial license.

Testing

Continue to the testing page to verify your setup.

Demo

See http://h264-demo.code-shop.com/demo/apache/testlist.html for a demo running Apache.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值