feat: add vaapi support thumbsup and downsize (#284)

Added hwaccel option for vaapi

Added video hwaccel option to enable vaapi for video encoding.

Confirmed check of bitrate with hwaccel
pull/336/head
dravenst 1 year ago committed by GitHub
parent 34b957fb7e
commit 485ef67b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,6 +101,7 @@ Output options:
--video-quality Quality of the converted video (percent) [number] [default: 75]
--video-bitrate Bitrate of the converted videos (e.g. 120k) [string] [default: null]
--video-format Video output format [choices: "mp4", "webm"] [default: "mp4"]
--video-hwaccel Use Hardware acceleration, requires bitrate too [choices: ["none", "vaapi"] [default: "none"]
--video-stills Where the video still frame is taken [choices: "seek", "middle"] [default: "seek"]
--video-stills-seek Number of seconds where the still frame is taken [number] [default: 1]
--photo-preview How lightbox photos are generated [choices: "resize", "copy", "symlink", "link"] [default: "resize"]

@ -104,6 +104,12 @@ const OPTIONS = {
choices: ['mp4', 'webm'],
'default': 'mp4'
},
'video-hwaccel': {
group: 'Output options:',
description: 'Use Hardware acceleration, requires bitrate too',
choices: ['none', 'vaapi'],
'default': 'none'
},
'video-stills': {
group: 'Output options:',
description: 'Where the video still frame is taken',

@ -33,7 +33,8 @@ exports.createMap = function (opts) {
const videoOpts = {
format: opts.videoFormat,
quality: opts.videoQuality,
bitrate: opts.videoBitrate
bitrate: opts.videoBitrate,
hwaccel: opts.videoHwaccel
}
return {
'fs:copy': (task, done) => fs.copy(task.src, task.dest, done),

Loading…
Cancel
Save