ニジカ投稿局 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.
 
 
 
 
 

93 lines
1.5 KiB

  1. async function register ({ transcodingManager }) {
  2. // Output options
  3. {
  4. {
  5. const builder = () => {
  6. return {
  7. outputOptions: [
  8. '-r 10'
  9. ]
  10. }
  11. }
  12. transcodingManager.addVODProfile('libx264', 'low-vod', builder)
  13. }
  14. {
  15. const builder = (options) => {
  16. return {
  17. outputOptions: [
  18. '-r:' + options.streamNum + ' 50'
  19. ]
  20. }
  21. }
  22. transcodingManager.addLiveProfile('libx264', 'high-live', builder)
  23. }
  24. }
  25. // Input options
  26. {
  27. {
  28. const builder = () => {
  29. return {
  30. inputOptions: [
  31. '-r 5'
  32. ]
  33. }
  34. }
  35. transcodingManager.addVODProfile('libx264', 'input-options-vod', builder)
  36. }
  37. {
  38. const builder = () => {
  39. return {
  40. inputOptions: [
  41. '-r 50'
  42. ]
  43. }
  44. }
  45. transcodingManager.addLiveProfile('libx264', 'input-options-live', builder)
  46. }
  47. }
  48. // Scale filters
  49. {
  50. {
  51. const builder = () => {
  52. return {
  53. scaleFilter: {
  54. name: 'Glomgold'
  55. }
  56. }
  57. }
  58. transcodingManager.addVODProfile('libx264', 'bad-scale-vod', builder)
  59. }
  60. {
  61. const builder = () => {
  62. return {
  63. scaleFilter: {
  64. name: 'Flintheart'
  65. }
  66. }
  67. }
  68. transcodingManager.addLiveProfile('libx264', 'bad-scale-live', builder)
  69. }
  70. }
  71. }
  72. async function unregister () {
  73. return
  74. }
  75. module.exports = {
  76. register,
  77. unregister
  78. }