Support inputOptions and scaleFilter
This commit is contained in:
parent
a8b0d684ba
commit
3513db0102
@ -48,21 +48,13 @@ async function update (peertubeHelpers, transcodingManager, settingsManager) {
|
|||||||
const profiles = JSON.parse(profilesString)
|
const profiles = JSON.parse(profilesString)
|
||||||
|
|
||||||
for (const profile of profiles.vod) {
|
for (const profile of profiles.vod) {
|
||||||
const builder = () => {
|
const builder = () => buildResult(profile)
|
||||||
return {
|
|
||||||
outputOptions: profile.outputOptions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
transcodingManager.addVODProfile(profile.encoderName, profile.profileName, builder)
|
transcodingManager.addVODProfile(profile.encoderName, profile.profileName, builder)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const profile of profiles.live) {
|
for (const profile of profiles.live) {
|
||||||
const builder = () => {
|
const builder = () => buildResult(profile)
|
||||||
return {
|
|
||||||
outputOptions: profile.outputOptions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
transcodingManager.addLiveProfile(profile.encoderName, profile.profileName, builder)
|
transcodingManager.addLiveProfile(profile.encoderName, profile.profileName, builder)
|
||||||
}
|
}
|
||||||
@ -91,3 +83,11 @@ async function update (peertubeHelpers, transcodingManager, settingsManager) {
|
|||||||
async function removePrevious (transcodingManager) {
|
async function removePrevious (transcodingManager) {
|
||||||
transcodingManager.removeAllProfilesAndEncoderPriorities()
|
transcodingManager.removeAllProfilesAndEncoderPriorities()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function buildResult (profile) {
|
||||||
|
return {
|
||||||
|
outputOptions: profile.outputOptions,
|
||||||
|
inputOptions: profile.inputOptions,
|
||||||
|
scaleFilter: profile.scaleFilter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user