ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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