From bfb6dbacdc383e9c6afbfb909dded8c4bbaecd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Le=20Calvar?= Date: Fri, 9 Apr 2021 11:12:42 +0200 Subject: [PATCH] adapt filter to upstream syntax --- main.js | 10 ++++++---- package.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 1de633c..9bf09c7 100644 --- a/main.js +++ b/main.js @@ -25,8 +25,9 @@ async function register ({ } // You can also return a promise return { - videoFilters: [ - ], + scaleFilter: { + name: 'scale_vaapi' + }, inputOptions: shouldInitVaapi ? initVaapiOptions : [], outputOptions: [ '-bf 8', // override hardcoded bf value which cause memory error @@ -51,8 +52,9 @@ async function register ({ // You can also return a promise return { - videoFilters: [ - ], + scaleFilter: { + name: 'scale_vaapi' + }, inputOptions: shouldInitVaapi ? initVaapiOptions : [], outputOptions: [ '-bf 8', // override hardcoded bf value which cause memory error diff --git a/package.json b/package.json index e8ef716..16fa979 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-hardware-transcode-vaapi", - "version": "0.0.4", + "version": "0.0.5", "license": "MIT", "description": "Plugin that adds transcode profiles which use vaapi for hardware acceleration", "engine": {