HLS plugin for Red5
The purpose of this plugin is to provide HLS live streaming using an flash media stream as its source.
The plugin utilizes Xuggler for transcoding and is provided as-is; any modifications or fixes will be handled as time permits.
Development of this plugin was sponsored by BigMarker (https://www.bigmarker.com/); BTW they're hiring, contact: [email protected]
The primary Red5 server project continues to reside on Google Code. Post any issues or wiki entries there. https://code.google.com/p/red5/
The Red5 users list may be found here: https://groups.google.com/forum/#!forum/red5interest
To create the eclipse project files, execute this within the plugin and / or example directories:
mvn eclipse:eclipse
Then you will be able to import the projects into Eclipse.
- Build both the hls-plugin and the example application (or use your own app).
- Place the war in the red5/webapps directory
- Place the "hls-plugin-1.1.jar" jar in the red5/plugins directory
- Put the "xuggle-xuggler-5.x.jar" and "xuggle-utils-1.22.jar" jars in the red5/plugins directory
- Start red5
You can download Xuggler 5.4 with native libs included here: http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler/5.4/xuggle-xuggler-5.4.jar
Steps to install in Ubuntu 12.04
Note: Use red5 user to do the not sudo steps
1 - Install required packages
sudo apt-get purge openjdk-6-*
sudo apt-get install openjdk-7-jdk gcc-4.6 g++-4.6 perl yasm ant pkg-config maven2 git make
sudo ln /usr/bin/gcc-4.6 /usr/bin/gcc -s
sudo ln /usr/bin/g++-4.6 /usr/bin/g++ -s
2 - Download red5 (trunk version)
wget "https://builds.apache.org/job/Red5%20Trunk/lastSuccessfulBuild/artifact/trunk/target/red5-server-1.0.2-RC3-server.tar.gz"
3 - Build xuggler
git clone git://github.com/xuggle/xuggle-xuggler.git
cd xuggle-xuggler
ant
cp /home/red5/xuggle-xuggler/dist/lib/xuggle-xuggler-noarch.jar /home/red5/red5-server-1.0.2-RC3/plugins/
cp /home/red5/xuggle-xuggler/dist/lib/xuggle-xuggler-arch-x86_64-unknown-linux-gnu.jar /home/red5/red5-server-1.0.2-RC3/plugins/
4 - Build Red5 HLS plugin
git clone https://github.com/mondain/red5-hls-plugin.git
cd red5-hls-plugin/plugin/
mvn -Dmaven.test.skip=true
cd ../..
mkdir red5-hls-plugin/example/lib/
cp red5-hls-plugin/plugin/target/hls-plugin-1.1.jar red5-hls-plugin/example/lib/
cd red5-hls-plugin/example/
mvn eclipse:eclipse
mvn -Dmaven.test.skip=true
5 - Deploy plugin and example application to red5
cp /home/red5/red5-hls-plugin/example/target/hlsapp-1.1.war /home/red5/red5-server-1.0.2-RC3/webapps/
cp /home/red5/red5-hls-plugin/plugin/target/hls-plugin-1.1.jar /home/red5/red5-server-1.0.2-RC3/plugins/
6 - Change queueCapacity to 20 in file /home/red5/red5-server-1.0.2-RC3/conf/red5-core.xml
7 - Start red5 server
Donate to the cause using Bitcoin: https://coinbase.com/checkouts/2c5f023d24b12245d17f8ff8afe794d3