Installing the H264 Streaming Module for Apache

  • Post author:
  • Post category:Apps

Installing the streaming module can be a problem sometimes. This is a simple install guide which worked fine in a standard Cent5/cpanel server:


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

add the following entries via vim /usr/local/apache/conf/httpd.conf
add

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

then…

service httpd restart

then, cd to a public_html which is resolving correctly and run

cd /home/user/public_html
wget -O test.mp4 "http://h264-demo.code-shop.com/demo/apache/trailer2.mp4"

to test:


http://your-servers-ip/test.mp4?start=55.5

You will see the opening preview credits in the first link and in the second, it should have the first 55.5 seconds removed from the original video file.

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....