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