Saturday, January 3, 2015

Compile FFMPEG and Open Broadcaster Studio for Ubuntu 14.10



Hello? Is it twitch.tv streaming you're looking for? Well, last night I was looking for it too. Luckily I read the INSTALL file included with the source to Open Broadcaster Studio (OBS). Below are a simplified set of instructions to compile OBS and it's dependency FFMPEG on Ubuntu 14.10. As far as I know the resulting compiled software streams fine to twitch.tv.

First we need to use the package manager to install what software we can from the repositories. (one really long command)

sudo apt-get install build-essential pkg-config cmake git checkinstall libx11-dev libgl-dev libpulse-dev libxcomposite-dev libxinerama-dev libv4l-dev libudev-dev libfreetype6-dev libfontconfig-dev qtbase5-dev libqt5x11extras5-dev libx264-dev libxcb-xinerama0-dev libxcb-shm0-dev zlib1g-dev yasm

Next up we'll download and compile a very minimal install of FFMPEG. FFMPEG is needed by OBS to transcode videos into a usable format for twitch.tv. (5 commands total)

git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure --enable-shared --prefix=/usr
make
sudo checkinstall --pkgname=FFmpeg --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes

Now finally building and installing Open Broadcaster Studio. (6 commands total)

git clone https://github.com/jp9000/obs-studio.git
cd obs-studio
mkdir build && cd build
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo checkinstall --pkgname=obs-studio --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes

After all the compiling takes place you should have a menu entry for OBS. It should be ready to configure for twitch.tv and start streaming.