PeerTube/server/tests/fixtures/peertube-plugin-test-transc.../main.js

36 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
}