Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   Streamin H264 video (http://www.greenguysboard.com/board/showthread.php?t=52638)

nate 2009-05-04 02:15 AM

Streamin H264 video
 
Adapted From: http://h264.code-shop.com/trac/wiki/...pache-Version2

Note: You gotta be root. Your paths and aspx might be different and shit like the command to restart httpd might be different (because no fucking two versions of linux can be alike)

If you are on a shared host, maybe your admin will do this for you. After going through this, my h264 embedded videos start immediately, and not after completely downloading.

Begin tutorial__________________________________________

Downloading and building the H264 Streaming Module for Apache (version 2)



Downloading and building the H264 Streaming Module for Apache

Dependencies

We will be using apxs2 (Note from nate: I used aspx, it worked), the APache eXtenSion tool, to build and install the module for the Apache server.

Make sure you have apxs(2) installed:

sudo apt-get install apache2-threaded-dev
(you should already have this, and under fedora it would be something like yum install httpd-dev

Download the source of the H264 Streaming Module for Apache.

svn export http://h264.code-shop.com/svn/h264/t...ing-2.0/apache apache_http_h264_streaming
svn export --force http://h264.code-shop.com/svn/h264/t...g-2.0/mp4split apache_http_h264_streaming

Build

Run apxs(2) to

* (-c) compile and link
* (-i) install module in 'modules' directory

cd ~/apache_http_h264_streaming
sudo apxs2 -c -i mod_h264_streaming.c moov.c

Configuration

Edit the configuration file (in /etc/apache/httpd.conf) - (/etc/httpd/httpd.conf under fedora) so that file requests ending in ".mp4" are handled by the h264_streaming_module.

(Fedora) LoadModule h264_streaming_module /usr/lib/httpd/modules/mod_h264_streaming.so

(generic install of apache2) LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4

Retart Apache.

service httpd restart

Bam!


All times are GMT -4. The time now is 03:41 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc