aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js
blob: 5990ce1cee2e42b7dd41cdb62f8b05303c82066b (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
async function register ({ transcodingManager }) {

  {
    const builder = () => {
      return {
        outputOptions: [
          '-r 10'
        ]
      }
    }

    transcodingManager.addVODProfile('libx264', 'low-vod', builder)
  }

  {
    const builder = (options) => {
      return {
        outputOptions: [
          '-r:' + options.streamNum + ' 5'
        ]
      }
    }

    transcodingManager.addLiveProfile('libx264', 'low-live', builder)
  }
}

async function unregister () {
  return
}

module.exports = {
  register,
  unregister
}