1
0
Fork 0
peertube/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js

35 lines
553 B
JavaScript

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
}