Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2009-05-04, 02:15 AM   #1
nate
I can now put whatever you want in this space :)
 
nate's Avatar
 
Join Date: Mar 2009
Location: Merica!
Posts: 543
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!
nate is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:13 PM.


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