const { resolution: maxResolution, audioStream } = await video.probeMaxQualityFile()
const resolutions = await Hooks.wrapObject(
computeResolutionsToTranscode({ inputResolution: maxResolution, type: 'vod', includeInputResolution: true }),
- 'filter:transcoding.manual.lower-resolutions-to-transcode.result',
+ 'filter:transcoding.manual.resolutions-to-transcode.result',
body
)
// Create transcoding jobs if there are enabled resolutions
const resolutionsEnabled = await Hooks.wrapObject(
computeResolutionsToTranscode({ inputResolution: videoFileResolution, type: 'vod', includeInputResolution: false }),
- 'filter:transcoding.auto.lower-resolutions-to-transcode.result',
+ 'filter:transcoding.auto.resolutions-to-transcode.result',
options
)
const allResolutions = await Hooks.wrapObject(
this.buildAllResolutionsToTranscode(resolution),
- 'filter:transcoding.auto.lower-resolutions-to-transcode.result',
+ 'filter:transcoding.auto.resolutions-to-transcode.result',
{ video }
)
})
registerHook({
- target: 'filter:transcoding.auto.lower-resolutions-to-transcode.result',
+ target: 'filter:transcoding.auto.resolutions-to-transcode.result',
handler: (object, context) => {
if (context.video.name.includes('transcode-filter')) {
object = [ 100 ]
describe('Transcoding filters', async function () {
- it('Should run filter:transcoding.auto.lower-resolutions-to-transcode.result', async function () {
+ it('Should run filter:transcoding.auto.resolutions-to-transcode.result', async function () {
const { uuid } = await servers[0].videos.quickUpload({ name: 'transcode-filter' })
await waitJobs(servers)
'filter:job-queue.process.params': true,
'filter:job-queue.process.result': true,
- 'filter:transcoding.manual.lower-resolutions-to-transcode.result': true,
- 'filter:transcoding.auto.lower-resolutions-to-transcode.result': true
+ 'filter:transcoding.manual.resolutions-to-transcode.result': true,
+ 'filter:transcoding.auto.resolutions-to-transcode.result': true
}
export type ServerFilterHookName = keyof typeof serverFilterHookObject