灌溉梦想,记录脚步
« »
2010 年 05 月 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 发表在关注学习分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

2条评论

发表评论 »