aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-29 10:29:29 +0100
committerChocobozzz <me@florianbigard.com>2021-01-29 14:05:41 +0100
commitffd970faf9c6c67dc3fc3d27069393bf1c76b379 (patch)
tree26150ad3b5f4c480d815e7890ffad5ee154e0505
parent2498aaead1fb4f34c8c375ef9edff33456c4527a (diff)
downloadPeerTube-ffd970faf9c6c67dc3fc3d27069393bf1c76b379.tar.gz
PeerTube-ffd970faf9c6c67dc3fc3d27069393bf1c76b379.tar.zst
PeerTube-ffd970faf9c6c67dc3fc3d27069393bf1c76b379.zip
Don't quick transcode if using a custom profile
-rw-r--r--server/helpers/ffprobe-utils.ts2
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
204async function canDoQuickTranscode (path: string): Promise<boolean> { 204async 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) &&