aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js
blob: 5990ce1cee2e42b7dd41cdb62f8b05303c82066b (plain) (tree)


































                                                                     
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
}