diff options
Diffstat (limited to 'server/helpers/ffmpeg')
-rw-r--r-- | server/helpers/ffmpeg/ffmpeg-commons.ts | 4 | ||||
-rw-r--r-- | server/helpers/ffmpeg/ffmpeg-vod.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/ffmpeg/ffmpeg-commons.ts b/server/helpers/ffmpeg/ffmpeg-commons.ts index ee338889c..b01989899 100644 --- a/server/helpers/ffmpeg/ffmpeg-commons.ts +++ b/server/helpers/ffmpeg/ffmpeg-commons.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Job } from 'bull' | 1 | import { Job } from 'bullmq' |
2 | import ffmpeg, { FfmpegCommand } from 'fluent-ffmpeg' | 2 | import ffmpeg, { FfmpegCommand } from 'fluent-ffmpeg' |
3 | import { execPromise } from '@server/helpers/core-utils' | 3 | import { execPromise } from '@server/helpers/core-utils' |
4 | import { logger, loggerTagsFactory } from '@server/helpers/logger' | 4 | import { logger, loggerTagsFactory } from '@server/helpers/logger' |
@@ -81,7 +81,7 @@ async function runCommand (options: { | |||
81 | command.on('progress', progress => { | 81 | command.on('progress', progress => { |
82 | if (!progress.percent) return | 82 | if (!progress.percent) return |
83 | 83 | ||
84 | job.progress(Math.round(progress.percent)) | 84 | job.updateProgress(Math.round(progress.percent)) |
85 | .catch(err => logger.warn('Cannot set ffmpeg job progress.', { err, ...lTags() })) | 85 | .catch(err => logger.warn('Cannot set ffmpeg job progress.', { err, ...lTags() })) |
86 | }) | 86 | }) |
87 | } | 87 | } |
diff --git a/server/helpers/ffmpeg/ffmpeg-vod.ts b/server/helpers/ffmpeg/ffmpeg-vod.ts index f84157e0f..7a81a1313 100644 --- a/server/helpers/ffmpeg/ffmpeg-vod.ts +++ b/server/helpers/ffmpeg/ffmpeg-vod.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Job } from 'bull' | 1 | import { Job } from 'bullmq' |
2 | import { FfmpegCommand } from 'fluent-ffmpeg' | 2 | import { FfmpegCommand } from 'fluent-ffmpeg' |
3 | import { readFile, writeFile } from 'fs-extra' | 3 | import { readFile, writeFile } from 'fs-extra' |
4 | import { dirname } from 'path' | 4 | import { dirname } from 'path' |