Browse Source

DTP_GPU_ACCELERATION renamed to DTP_ENABLE_GPU

develop
Rob Colbert 2 years ago
parent
commit
a158d9ce7b
  1. 2
      .env.default
  2. 2
      app/workers/media/job/attachment-ingest.js
  3. 2
      app/workers/media/job/sticker-ingest.js

2
.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

2
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

2
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

Loading…
Cancel
Save