diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-29 10:29:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-29 14:05:41 +0100 |
commit | ffd970faf9c6c67dc3fc3d27069393bf1c76b379 (patch) | |
tree | 26150ad3b5f4c480d815e7890ffad5ee154e0505 /server | |
parent | 2498aaead1fb4f34c8c375ef9edff33456c4527a (diff) | |
download | PeerTube-ffd970faf9c6c67dc3fc3d27069393bf1c76b379.tar.gz PeerTube-ffd970faf9c6c67dc3fc3d27069393bf1c76b379.tar.zst PeerTube-ffd970faf9c6c67dc3fc3d27069393bf1c76b379.zip |
Don't quick transcode if using a custom profile
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/ffprobe-utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/ffprobe-utils.ts b/server/helpers/ffprobe-utils.ts index adb459ed3..5b1ad9066 100644 --- a/server/helpers/ffprobe-utils.ts +++ b/server/helpers/ffprobe-utils.ts | |||
@@ -202,6 +202,8 @@ function computeResolutionsToTranscode (videoFileResolution: number, type: 'vod' | |||
202 | } | 202 | } |
203 | 203 | ||
204 | async function canDoQuickTranscode (path: string): Promise<boolean> { | 204 | async function canDoQuickTranscode (path: string): Promise<boolean> { |
205 | if (CONFIG.TRANSCODING.PROFILE !== 'default') return false | ||
206 | |||
205 | const probe = await ffprobePromise(path) | 207 | const probe = await ffprobePromise(path) |
206 | 208 | ||
207 | return await canDoQuickVideoTranscode(path, probe) && | 209 | return await canDoQuickVideoTranscode(path, probe) && |