2021-01-28 08:52:44 -06:00
|
|
|
async function register ({ transcodingManager }) {
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
// Output options
|
2021-01-28 08:52:44 -06:00
|
|
|
{
|
2021-04-09 03:36:21 -05:00
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
outputOptions: [
|
|
|
|
'-r 10'
|
|
|
|
]
|
|
|
|
}
|
2021-01-28 08:52:44 -06:00
|
|
|
}
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
transcodingManager.addVODProfile('libx264', 'low-vod', builder)
|
|
|
|
}
|
2021-01-28 08:52:44 -06:00
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
{
|
|
|
|
const builder = (options) => {
|
|
|
|
return {
|
|
|
|
outputOptions: [
|
|
|
|
'-r:' + options.streamNum + ' 5'
|
|
|
|
]
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
}
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
transcodingManager.addLiveProfile('libx264', 'low-live', builder)
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
}
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
// Input options
|
2021-04-06 08:12:38 -05:00
|
|
|
{
|
2021-04-09 03:36:21 -05:00
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
inputOptions: [
|
|
|
|
'-r 5'
|
|
|
|
]
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
}
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
transcodingManager.addVODProfile('libx264', 'input-options-vod', builder)
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
inputOptions: [
|
|
|
|
'-r 5'
|
|
|
|
]
|
|
|
|
}
|
2021-01-28 08:52:44 -06:00
|
|
|
}
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
transcodingManager.addLiveProfile('libx264', 'input-options-live', builder)
|
|
|
|
}
|
2021-01-28 08:52:44 -06:00
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
// Scale filters
|
2021-04-06 08:12:38 -05:00
|
|
|
{
|
2021-04-09 03:36:21 -05:00
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
scaleFilter: {
|
|
|
|
name: 'Glomgold'
|
|
|
|
}
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
}
|
2021-04-09 03:36:21 -05:00
|
|
|
|
|
|
|
transcodingManager.addVODProfile('libx264', 'bad-scale-vod', builder)
|
2021-04-06 08:12:38 -05:00
|
|
|
}
|
|
|
|
|
2021-04-09 03:36:21 -05:00
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
scaleFilter: {
|
|
|
|
name: 'Flintheart'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transcodingManager.addLiveProfile('libx264', 'bad-scale-live', builder)
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
}
|
2021-01-28 08:52:44 -06:00
|
|
|
}
|
|
|
|
|
2021-04-06 08:12:38 -05:00
|
|
|
|
2021-01-28 08:52:44 -06:00
|
|
|
async function unregister () {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
register,
|
|
|
|
unregister
|
|
|
|
}
|