summaryrefslogtreecommitdiffstats
path: root/roles/bbb/templates/video.yml
blob: 461372b4a38fb560a482a892bb910d1a456c4be1 (plain) (blame)
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
76
77
78
79
80
81
publish_dir: /var/bigbluebutton/published/video
playback_dir: /usr/local/bigbluebutton/core/playback/video
# offset applied to audio in the output video file
# audio_offset = 1000 means that the audio will be delayed by 1000ms
audio_offset: 0

layout:
  width: 1280
  height: 720
  framerate: 24
  areas:
    - name: presentation
      x: 0
      y: 0
      width: 960
      height: 720
    - name: webcam
      x: 960
      y: 0
      width: 320
      height: 720
    - name: deskshare
      x: 0
      y: 0
      width: 960
      height: 720
      pad: true
nopresentation_layout:
  width: 1280
  height: 720
  framerate: 24
  areas:
    - name: webcam
      x: 0
      y: 0
      width: 1280
      height: 720
nowebcam_layout:
  width: 1280
  height: 720
  framerate: 24
  areas:
    - name: presentation
      x: 0
      y: 0
      width: 1280
      height: 720
    - name: deskshare
      x: 0
      y: 0
      width: 1280
      height: 720
      pad: true
formats:
  #- mimetype: 'video/mp4'
  #  extension: m4v
  #  parameters:
  #    - [ '-c:v', 'copy', # Use working format codec defined in core/lib/recordandplayback/edl/video.rb
  #        '-c:a', 'aac', '-b:a', '128K',
  #        '-f', 'mp4', '-movflags', 'faststart' ]
  #  postprocess: []
  - mimetype: 'video/webm;codecs="vp09.00.41.08,opus"'
    extension: webm
    parameters:
  #    # Default single-pass encode
  #    #- [ '-c:v', 'libvpx-vp9', '-level', '4.1', '-b:v', '1800K', '-minrate', '900K', '-maxrate', '2610K',
  #    #    '-crf', '31', '-quality', 'good', '-speed', '2', '-tile-columns', '2', '-threads', '2',
  #    #    '-force_key_frames', 'expr:gte(t,n_forced*10)',
  #    #    '-c:a', 'libopus', '-b:a', '64K',
  #    #    '-f', 'webm' ]
      # Slower but better quality two-pass encode
      - [ '-c:v', 'libvpx-vp9', '-level', '4.1', '-b:v', '1800K', '-minrate', '900K', '-maxrate', '2610K',
          '-crf', '31', '-quality', 'good', '-pass', '1', '-speed', '4', '-tile-columns', '2', '-threads', '2',
          '-force_key_frames', 'expr:gte(t,n_forced*10)',
          '-an',
          '-f', 'webm' ]
      - [ '-c:v', 'libvpx-vp9', '-level', '4.1', '-b:v', '1800K', '-minrate', '900K', '-maxrate', '2610K',
          '-crf', '31', '-quality', 'good', '-pass', '2', '-speed', '2', '-tile-columns', '2', '-threads', '2',
          '-force_key_frames', 'expr:gte(t,n_forced*10)',
          '-c:a', 'libopus', '-b:a', '64K',
          '-f', 'webm' ]