]>
Commit | Line | Data |
---|---|---|
1 | async function register ({ transcodingManager }) { | |
2 | ||
3 | { | |
4 | const builder = () => { | |
5 | return { | |
6 | outputOptions: [] | |
7 | } | |
8 | } | |
9 | ||
10 | transcodingManager.addVODProfile('libopus', 'test-vod-profile', builder) | |
11 | transcodingManager.addVODProfile('libvpx-vp9', 'test-vod-profile', builder) | |
12 | ||
13 | transcodingManager.addVODEncoderPriority('audio', 'libopus', 1000) | |
14 | transcodingManager.addVODEncoderPriority('video', 'libvpx-vp9', 1000) | |
15 | } | |
16 | ||
17 | { | |
18 | const builder = (options) => { | |
19 | return { | |
20 | outputOptions: [ | |
21 | '-b:' + options.streamNum + ' 10K' | |
22 | ] | |
23 | } | |
24 | } | |
25 | ||
26 | transcodingManager.addLiveProfile('libopus', 'test-live-profile', builder) | |
27 | transcodingManager.addLiveEncoderPriority('audio', 'libopus', 1000) | |
28 | } | |
29 | } | |
30 | ||
31 | async function unregister () { | |
32 | return | |
33 | } | |
34 | ||
35 | module.exports = { | |
36 | register, | |
37 | unregister | |
38 | } |