HomeApacheHow to enable H264 streaming module in Apache

How to enable H264 streaming module in Apache

The H264 streaming module is a webserver plugin that enables HTTP pseudo-streaming, which includes a variety of features.

Its features includes

  • Timeshifting seek
Allows you to immediately jump to any part of the video regardless of the length of the video or whether it has been downloaded yet.
  • Virtual video clips
Which when you got a long video clips, which helps you to specifically play on the selected part of video or create download links to specific parts of the video.
  • Encoding
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.

Flash players supporting H264 Streaming

  • FCPlayer by Fastcat Software.
  • JW FLV Media Player.
  • Flowplayer.

Installing H264 psuedo streaming from shell.

Login as root

cd /usr/src
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -xzvf apache_mod_h264_streaming-2.2.7.tar.gz
cd mod_h264_streaming-2.2.7
./configure  -–with-apxs='which apxs'
make  && make install

Handlers must be added to apche, open the fiel /usr/local/apache/conf/httpd.conf

AddHandler  h264-streaming.extension  .mp4
LoadModule  h264_streaming_module /usr/local/apache/modules/mod_h264_streaming.so

Restart apache

service httpd restart

You may read more about encoding video in H264 from here.

If you are using it commercially, you need to get a licence.

Scroll to Top