From a158d9ce7b076ded7acb06ecddb94ca5915c3cbf Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 30 Sep 2022 14:59:37 -0400 Subject: [PATCH] DTP_GPU_ACCELERATION renamed to DTP_ENABLE_GPU --- .env.default | 2 +- app/workers/media/job/attachment-ingest.js | 2 +- app/workers/media/job/sticker-ingest.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.default b/.env.default index 8e7f5f2..4286e79 100644 --- a/.env.default +++ b/.env.default @@ -22,7 +22,7 @@ DTP_ATTACHMENT_WORK_PATH=/tmp/yourapp/attachment-work # Set this to "enabled" to use NVIDIA GPU acceleration. Setting this to enabled # without a properly-configured NVIDIA GPU will cause processing jobs to fail. # -DTP_GPU_ACCELERATION=disabled +DTP_ENABLE_GPU=disabled # # Host Cache configuration diff --git a/app/workers/media/job/attachment-ingest.js b/app/workers/media/job/attachment-ingest.js index 0751d5d..00d0aa6 100644 --- a/app/workers/media/job/attachment-ingest.js +++ b/app/workers/media/job/attachment-ingest.js @@ -211,7 +211,7 @@ class AttachmentIngestJob extends SiteWorkerProcess { } = this.dtp.services; const { attachment } = job.data; - const codecVideo = (process.env.DTP_GPU_ACCELERATION === 'enabled') ? 'h264_nvenc' : 'libx264'; + const codecVideo = (process.env.DTP_ENABLE_GPU === 'enabled') ? 'h264_nvenc' : 'libx264'; // generate the encoded attachment // Output height is 100 lines by [aspect] width with width and height being diff --git a/app/workers/media/job/sticker-ingest.js b/app/workers/media/job/sticker-ingest.js index 55dce5b..c4f6fcb 100644 --- a/app/workers/media/job/sticker-ingest.js +++ b/app/workers/media/job/sticker-ingest.js @@ -207,7 +207,7 @@ class StickerIngestJob extends SiteWorkerProcess { async processStickerFFMPEG (job) { const { media: mediaService, minio: minioService } = this.dtp.services; - const codecVideo = (process.env.DTP_GPU_ACCELERATION === 'enabled') ? 'h264_nvenc' : 'libx264'; + const codecVideo = (process.env.DTP_ENABLE_GPU === 'enabled') ? 'h264_nvenc' : 'libx264'; // generate the encoded sticker // Output height is 100 lines by [aspect] width with width and height being