adapt filter to upstream syntax

This commit is contained in:
Théo Le Calvar 2021-04-09 11:12:42 +02:00
parent 68f41bfc43
commit bfb6dbacdc
2 changed files with 7 additions and 5 deletions

10
main.js
View File

@ -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

View File

@ -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": {