Featured Posts

GoAccess is an interactive and website / web-server log analyzer tool currently better than the ApacheTop interface. It provides fast and valuable HTTP statistics for system administrators that require a visual...

Readmore

AjaxMyTop AjaxMyTop is a Web-based tool featuring an AJAX user interface for monitoring a MySQL server. Installing and configuring is fairly simple which you can done it within 2 minutes. [caption id="attachment_587"...

Readmore

Mod_spin is a content handler and/or a filter, meaning, for a specified file extension, mod_spin will read the file (or other input), parse it into an Abstract Syntax Tree (AST) and then replace the occurrences...

Readmore

Server Monitoring using DSTAT DSTAT an excellent tool which combines the overall stats of vmstat, iostat, netstat and ifstat. Dstat allows us to view all of the system resources in the real-time including the network bandwidth, network...

Readmore

BWM-NG Monitoring Network Bandwidth and Disk I/O using BWM-NG BWN-NG (Bandwidth-NG) is old and simple tool to monitor the bandwidth and disk I/O including the RAMdisk usage, this tool really helps the...

Readmore

  • Prev
  • Next

H264 Streaming Module for Apache

Posted on : 14-09-2010 | By : admin | In : Web Server

Tags:

0

H264 Streaming Module for Apache

h264

The H264 Streaming Module is a plug-in which can be installed easily on your existing Apache/Lighttpd/Nginx webserver. You can seek to any position in the video, even before it is fully loaded. Version 2.0 is a complete rewrite. It works with a wider variety of MP4 video files and has faster start/seek times. Adobe recently announced support for H264 video files in their Flash player.

It has a great feature over the other steaming modules :


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.

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.

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

H264 Streaming Demo :

Click here to see a live demonstration which runs under Apache.

Flash players supporting H264 Streaming


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

Downloading and installing the H264 Streaming Module

Pre-requesties :

Make sure you have the httpd-devel package installed to have the apxs binary

  • yum install httpd-devel

Download apache_mod_h264_streaming


Configuration apache_mod_h264_streaming


  • vi /etc/httpd/conf/httpd.conf
    Add the line
    AddHandler h264-streaming.extensions .mp4
    after the line
    LoadModule h264_streaming_module /usr/local/apache/modules/mod_h264_streaming.so

Restart apache :


  • /etc/init.d/httpd restart

Testing the H264 Streaming Module

To test and make sure the modules is working properly, try a mp4 video download to your document root directory:

  • cd /usr/local/apache/htdocs
    wget -O test.mp4 “http://h264.code-shop.com:8080/trailer2.mp4″

And then wget http://<your-server-ip/test.mp4?start=55.5 or access the url in your web browser.

This saves a file (test.mp4) on your local disk that will have the first 55.5 seconds removed from the original video file. Which you can check with your favorite video player.

You can also move the progress bar to forward and you should be able to see the videos are playing from where you seeked so this saves lot of bandwidth and time.

External Link :

H264 Streaming home page :

H264 Streaming module download :

Install mod_flvx :

Write a comment

You must be logged in to post a comment.