Mudanças entre as edições de "Open Broadcast Software no Debian Jessie"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
(2 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
 
== ajustando repositório ==
 
== ajustando repositório ==
<source lang="bash">
+
 
wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2014.2_all.deb
+
É necessário ter no sources.list
dpkg -i deb-multimedia-keyring_2014.2_all.deb
+
deb http://ftp.br.debian.org/debian jessie main contrib non-free
echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
 
apt-get update
 
</source>
 
  
 
== instalando dependências ==
 
== instalando dependências ==
 
<source lang="bash">
 
<source lang="bash">
apt-get install cmake buld-essential libjansson-dev libxinerama-dev \
+
sudo apt-get install libx11-dev libgl1-mesa-dev libpulse-dev libxcomposite-dev \
libv4l-dev libx264-dev libxcomposite-dev libgudev-1.0-dev \
+
libxinerama-dev libv4l-dev libudev-dev libfreetype6-dev \
libfreetype6-dev libfontconfig1-dev libpulse-dev libtool \
+
libfontconfig1-dev qtbase5-dev libqt5x11extras5-dev libx264-dev \
vlc v4l-utils gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad \
+
libxcb-xinerama0-dev libxcb-shm0-dev libjack-jackd2-dev libcurl4-openssl-dev \
git-core qtbase5-dev qtbase5-dev-tools autoconf2.13 \
+
build-essential pkg-config cmake git checkinstall libfdk-aac-dev yasm
libqt5x11extras5-dev libswscale-dev libswresample-dev \
 
libavutil-dev libavformat-dev libavdevice-dev libavcodec-dev \
 
libxcb-xinerama0-dev libxcb-shm0-dev libjack-dev libudev-dev
 
 
</source>
 
</source>
  
== compilando libfdk-aac ==
+
== compilando FFmpeg - GiT ==
 
<source lang="bash">
 
<source lang="bash">
git clone https://github.com/ob-encoder/fdk-aac.git  
+
git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
cd fdk-aac
+
cd ffmpeg
autoreconf -i && ./configure --prefix=/usr --enable-shared
+
./configure --enable-shared --prefix=/usr
make -j5 && sudo make install
+
make -j4
 +
sudo checkinstall --pkgname=FFmpeg --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes
 +
sudo dpkg -i ffmpeg*.deb
 
</source>
 
</source>
  
Linha 30: Linha 26:
 
<source lang="bash">
 
<source lang="bash">
 
git clone https://github.com/jp9000/obs-studio.git
 
git clone https://github.com/jp9000/obs-studio.git
cd obs-studio && mkdir build && cd build
+
cd obs-studio
 +
mkdir build && cd build
 
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
 
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
make -j
+
make -j4
make install
+
sudo checkinstall --pkgname=obs-studio --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes
ldconfig
+
sudo dpkg -i obs-studio_*.deb
 +
</source>
 +
 
 +
== FFmpeg e OBS compilado ==
 +
<source lang="bash">
 +
sudo apt-get install libqt5widgets5 libxcb-shm0 libjack-jackd2-0 libcurl3 libxcb-xinerama0 libqt5x11extras5
 +
wget http://pub.nkosi.org/floema/obs/ffmpeg_20151230-git-1_amd64.deb
 +
wget http://pub.nkosi.org/floema/obs/obs-studio_20151230-git-1_amd64.deb
 +
sudo dpkg -i obs-studio_20151230-git-1_amd64.deb ffmpeg_20151230-git-1_amd64.deb 
 
</source>
 
</source>
 +
  
 
Se der erro tente make -j4 ou aumente a memoria swap para 1G
 
Se der erro tente make -j4 ou aumente a memoria swap para 1G
Linha 45: Linha 51:
 
swapon /var/swap.img
 
swapon /var/swap.img
 
</source>
 
</source>
 +
 +
Referências
 +
* https://github.com/jp9000/obs-studio/wiki/Install-Instructions#manually-compiling-on-debian-based-distros
 +
* https://obsproject.com/forum/threads/compiling-and-installing-in-debian.17864/page-2#post-153051
 +
 +
  
 
[[Categoria:Open Broadcast Software]]
 
[[Categoria:Open Broadcast Software]]

Edição atual tal como às 16h16min de 30 de dezembro de 2015

ajustando repositório

É necessário ter no sources.list

deb http://ftp.br.debian.org/debian jessie main contrib non-free

instalando dependências

sudo apt-get install libx11-dev libgl1-mesa-dev libpulse-dev libxcomposite-dev \
libxinerama-dev libv4l-dev libudev-dev libfreetype6-dev \
libfontconfig1-dev qtbase5-dev libqt5x11extras5-dev libx264-dev \
libxcb-xinerama0-dev libxcb-shm0-dev libjack-jackd2-dev libcurl4-openssl-dev \
build-essential pkg-config cmake git checkinstall libfdk-aac-dev yasm

compilando FFmpeg - GiT

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

compilando OBS - GiT

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 -j4
sudo checkinstall --pkgname=obs-studio --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes
sudo dpkg -i obs-studio_*.deb

FFmpeg e OBS compilado

sudo apt-get install libqt5widgets5 libxcb-shm0 libjack-jackd2-0 libcurl3 libxcb-xinerama0 libqt5x11extras5
wget http://pub.nkosi.org/floema/obs/ffmpeg_20151230-git-1_amd64.deb
wget http://pub.nkosi.org/floema/obs/obs-studio_20151230-git-1_amd64.deb
sudo dpkg -i obs-studio_20151230-git-1_amd64.deb ffmpeg_20151230-git-1_amd64.deb


Se der erro tente make -j4 ou aumente a memoria swap para 1G

dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
chmod 0600 /var/swap.img
swapon /var/swap.img

Referências