专注业务连续性支持与数据保护
« »
2010年5月13日关注学习

Installing Apache Mod H264 Streaming

The Apache Module h264 Streaming is required to be able to stream the .mp4 video, otherwise you will only be able to view the video after a complete download.

Debian / Ubuntu
sudo apt-get install apache2-threaded-dev

cd ~
svn export http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/apache apache_http_h264_streaming
svn export –force http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/mp4split apache_http_h264_streaming

cd ~/apache_http_h264_streaming
sudo apxs2 -c -i mod_h264_streaming.c moov.c
emacs /etc/apache2/httpd.conf (or vim)

And add the lines:
LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so

AddHandler h264-streaming.extensions .mp4
Restart Apache:
apache2ctl graceful

CentOS 5.2
cd ~
svn export http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/apache apache_http_h264_streaming
svn export –force http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/mp4split apache_http_h264_streaming

sudo yum install httpd-devel
sudo yum install httpd mod_ssl
sudo /usr/sbin/apxs -c -i -a mod_h264_streaming.c moov.c
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’

And then restart the webserver

sudo /etc/init.d/httpd restart

日志信息 »

该日志于2010-05-13 16:24由 kevin 发表在关注学习分类下, 评论已关闭。

评论已关闭。