2021-01-28 08:52:44 -06:00
|
|
|
async function register ({ transcodingManager }) {
|
|
|
|
|
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
outputOptions: [
|
|
|
|
'-r 10'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transcodingManager.addVODProfile('libx264', 'low-vod', builder)
|
|
|
|
}
|
|
|
|
|
2021-04-06 08:12:38 -05:00
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
videoFilters: [
|
|
|
|
'fps=10'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transcodingManager.addVODProfile('libx264', 'video-filters-vod', builder)
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
inputOptions: [
|
|
|
|
'-r 5'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transcodingManager.addVODProfile('libx264', 'input-options-vod', builder)
|
|
|
|
}
|
|
|
|
|
2021-01-28 08:52:44 -06:00
|
|
|
{
|
|
|
|
const builder = (options) => {
|
|
|
|
return {
|
|
|
|
outputOptions: [
|
|
|
|
'-r:' + options.streamNum + ' 5'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transcodingManager.addLiveProfile('libx264', 'low-live', builder)
|
|
|
|
}
|
2021-04-06 08:12:38 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
const builder = () => {
|
|
|
|
return {
|
|
|
|
inputOptions: [
|
|
|
|
'-r 5'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
transcodingManager.addLiveProfile('libx264', 'input-options-live', builder)
|
|
|
|
}
|
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
|
|
|
|
}
|