Skip to content
davidcassany edited this page Feb 17, 2016 · 48 revisions

Environment

The environment requirements to correctly install and deploy liveMediaStreamer.

  • Ubuntu 14.04 x64
  • g++4.8 compiler
  • It is recommended to uninstall apt versions of:
    • Libav libraries (libavutil, libavformat, libavcodec, libavfilter, libavdevice, libswscale, libavresample):

      apt-get remove --purge libavutil* libavformat* libavcodec* libavfilter* libavdevice* libswscale* libavresample*

    • LiveMedia (liblivemedia-dev):

      apt-get remove --purge liblivemedia*

NOTE: default (and recommended) installation path is /usr/local/

Third-party libraries

Note: after compiling and installing any source code remember to:

sudo ldconfig

Dependencies

sudo apt-get update
sudo apt-get -y install git cmake autoconf automake build-essential libass-dev \
libtheora-dev libtool libvorbis-dev pkg-config zlib1g-dev libcppunit-dev yasm \
libx264-dev  libmp3lame-dev  libopus-dev libvpx-dev libfdk-aac-dev liblog4cplus-dev \
libtinyxml2-dev opencv-data libopencv-dev libsdl1.2-dev

x265 HEVC Encoder

sudo apt-get install mercurial cmake-curses-gui
hg clone https://bitbucket.org/multicoreware/x265
cd x265
cmake -G "Unix Makefiles" ./source
make
sudo make install 

FFMPEG

Tested from 2.5 to 3.0 ffmpeg versions

wget https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure --enable-gpl --enable-libass --enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-nonfree --enable-shared --enable-libopus --enable-libmp3lame \
--enable-libvpx --enable-libfdk_aac --enable-libx265­­ --enable­-ffplay --enable-sdl
make
sudo make install

Live555

wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
tar xaf live555-latest.tar.gz
cd live
./genMakefiles linux-with-shared-libraries 
make
sudo make install

Live Media Streamer

liveMediaStreamer

If you installed ffmpeg or live555 on custom directories, you can add --with-ffmpeg and --with-livemedia respectively to the ./autogen.sh call in order to set the paths where livemediastreamer build will look for them.

git clone https://github.com/ua-i2cat/livemediastreamer.git
cd livemediastreamer
./autogen.sh
make
sudo make install

You can now follow up with the Deployment-guide

Clone this wiki locally