-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
75 lines (72 loc) · 2.66 KB
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# (c) 2014-2016, Sebastian Schulze <[email protected]>
#
# This file is part of eurucamp_transcoder
#
# eurucamp_transcoder is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# eurucamp_transcoder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with eurucamp_transcoder. If not, see <http://www.gnu.org/licenses/>.
- hosts: all
sudo: yes
tasks:
- name: enable multiverse
apt_repository: repo='deb http://archive.ubuntu.com/ubuntu trusty multiverse' state=present
- name: install required encoding stuff
action: apt pkg={{item}} state=installed
with_items:
- git-core
- build-essential
- tmux
- htop
- yasm
- libfaac0
- libfaac-dev
- libass-dev
- libx264-142
- libx264-dev
- libfdk-aac-dev
- libmp3lame0
- libmp3lame-dev
- libopencore-amrnb0
- libopencore-amrnb-dev
- libopencore-amrwb0
- libopencore-amrwb-dev
- libopenjpeg2
- libopenjpeg-dev
- libopus0
- libopus-dev
- librtmp0
- librtmp-dev
- libschroedinger-1.0-0
- libschroedinger-dev
- libspeex1
- libspeex-dev
- libtheora0
- libtheora-dev
- libvo-aacenc-dev
- libvo-aacenc0
- libvorbis0a
- libvorbis-dev
- libxvidcore4
- libxvidcore-dev
- libavdevice-dev
- libavdevice53
- libvpx1
- libvpx-dev
- name: checkout-ffmpeg
git: repo=git://git.videolan.org/ffmpeg.git dest=/usr/src/ffmpeg version=n2.2.3
- name: build-ffmpeg
shell: '{{ item }} chdir=/usr/src/ffmpeg creates=/usr/local/bin/ffmpeg'
with_items:
- ./configure --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-libopenjpeg
- make -j4
- make install
- ldconfig