-
Notifications
You must be signed in to change notification settings - Fork 132
Install on Ubuntu 10.10
This Page will explain how to install the Segmenter on Ubuntu 10.10 (maverick).
First of all we will have to install a few important packages:
sudo apt-get install \ build-essential \ subversion \ git-core \ yasm \ pkg-config \ libssl-dev \ libbz2-dev \ ruby \ rubygems
and a few libraries and codecs:
sudo apt-get install \ faac \ libfaac-dev libfaac0 \ lame \ libmp3lame-dev \ libtheora-dev \ libvorbis-dev
First we will have to download and compile an old snapshot of FFmpeg, because the new version has a bug that prevents the segmenter from working. It will do nothing. First cd into home:
cd ~
Download to home directory using wget:
wget http://epirat.de/wp-content/uploads/ffmpeg-export-snapshot-2009-12-02.tar.bz2
Now unzip it:
tar -xvjf ffmpeg-export-snapshot-2009-12-02.tar.bz2
cd into the directory:
cd ffmpeg-export-2009-12-01/
Run configure script:
./configure --enable-gpl --enable-nonfree --enable-libfaac\ --enable-libmp3lame --prefix=/tmp/old_ffmpeg
Now make and make install:
make
make install
First cd into home again:
cd ~
Now clone the git repository (here I have indicated another git where I changed the ruby files to work with url's too, not only with files.)
git clone git://github.com/ePirat/HTTP-Live-Video-Stream-Segmenter-and-Distributor.git
Now we only have to compile it:
gcc -v -Wall -g live_segmenter.c -o live_segmenter \ -lavformat -lavcodec -lavutil -lvorbis -ltheora\ -lbz2 -lm -lz -lfaac -lmp3lame \ -I/tmp/old_ffmpeg/include \ -L/tmp/old_ffmpeg/lib
If you want you can copy now the files to /usr/local/bin to access them from everywhere:
sudo cp live_segmenter /usr/local/bin/ sudo cp http_streamer.rb /usr/local/bin/ sudo mkdir -p /usr/local/lib/site_ruby/ sudo cp hs_* /usr/local/lib/site_ruby/
Now let's do some cleaning, first cd into home:
cd ~
Now let's delete some files that we don't need anymore, like the old FFmpeg:
rm -rf /tmp/old_ffmpeg
and the source:
rm -rf ffmpeg-export-2009-12-01
and the tar.bz2 files:
rm ffmpeg-export-snapshot-2009-12-02.tar.bz2
This How-To is based on the two articles from @kyriii: http://blog.kyri0s.org/post/1406637341/free-live-video-streaming-with-http-live-streaming http://blog.kyri0s.org/post/271121944/deploying-apples-http-live-streaming-in-a-gnu-linux