carsonmcdonald / HTTP-Live-Video-Stream-Segmenter-and-Distributor

Segments live video streams based on the Apple HTTP Live Streaming protocol and pushes the resulting files to various locations.
http://www.ioncannon.net/projects/http-live-video-stream-segmenter-and-distributor/
604 stars 134 forks source link

iPhone HTTP Streaming Server

For a detailed overview see the http live video segmenter page.

DESCRIPTION

This project is an attempt to make it easier to set up a live streaming server using Apple's HTTP streaming protocol.

The project includes a ruby script and a C program that use FFMpeg to encode and segment an input video stream in the correct format for use with the HTTP streaming protocol.

FEATURES

REQUIREMENTS

FFMpeg is the primary external requirement for the ruby script. The segmenter needs libavformat to compile and that can be obtained by installing FFMpeg. The script also needs the following gems installed if you want to be able to use SCP or S3 as transfer options:

INSTALL

You will need to compile the segmenter first. Assuming that you have all the needed libraries installed this is as easy as doing a make in the root directory.

You may copy the script and the segmenter binary to any location you want. You will need to let the script know where to find the segmenter binary in the configuration file.

CONFIGURATION

A quick overview of the configuration options:

Encoding profiles are given a name and have two options following that name:

Transfer profiles are given a name in the same way encoding profiles are and have various options following their name.

For S3 based transfers:

For FTP based transfers:

For SCP based transfers:

For copy based transfers:

For Cloudfile based transfers:

LICENSE

Copyright (c) 2009-2013 Carson McDonald

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.