Install H264 Streaming Module for Apache on CentOS

If you have site has mp4 video, the visitor will need to get all mp4 video downloaded. It’s bad for video longer and has low bandwith. You need a plugin for pseudo-streaming.
The H264 Streaming Module is a plugin for your existing Apache/Lighttpd/Nginx webserver. Its features are as follows:
Timeshifting seek
Enable your viewers to immediately jump to any part of the video regardless of the length of the video or whether it has all been downloaded yet.

Virtual video clips
You have really long video clips and you don’t want to re-encode them into smaller parts? We also support ‘virtual video clips’, so you can specify to only playback a part of the video or create download links to specific parts of the video.

Virtual video clips also enables possibilities for ​Adaptive Streaming.
An easy way for making previews available, say for example when you want to differentiate between registered and unregistered users. Here’s a little tutorial for the different web servers on url rewriting and virtual video clips.

Network efficiency
The next version will feature ‘bandwidth shaping’ allowing you to stream videos and only use the bandwidth required to view the video over the network.

If you are already using the widely adopted MPEG4/H264 industry standard, there is no need to re-encode your MP4 videos, you can use your existing video files.

The following step by step to install H264 Streaming module for Apache on CentOS

Download the source of the H264 Streaming Module for Apache and extract it

$ wget
$ tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
$ cd mod_h264_streaming-2.2.7
$ ./configure
$ make
# make install

The location for installed modules is: /usr/local/apache/modules

Edit /usr/local/apache/conf/httpd.conf
Add the following lines:

LoadModule h264_streaming_module /usr/local/apache/modules/
AddHandler h264-streaming.extensions .mp4

Then restart your apache:

# /etc/init.d/httpd start

Make sure the module is loaded, you can check using command:

# /usr/local/apache/bin/apachectl -t -D DUMP_MODULES | grep h264_streaming_module

Now you can enjoy faster loading video on your site!

Leave a Reply

Your email address will not be published. Required fields are marked *