projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baeb429
)
Don't quick transcode with the wrong pixel format
author
Chocobozzz
<me@florianbigard.com>
Mon, 21 Oct 2019 12:03:04 +0000
(14:03 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 21 Oct 2019 12:08:34 +0000
(14:08 +0200)
server/helpers/ffmpeg-utils.ts
patch
|
blob
|
history
diff --git
a/server/helpers/ffmpeg-utils.ts
b/server/helpers/ffmpeg-utils.ts
index 914ecc51aa9c45950b94cdd335076f470ac81876..c0e9702a8511f66665b977d3777d7f4808a02b56 100644
(file)
--- a/
server/helpers/ffmpeg-utils.ts
+++ b/
server/helpers/ffmpeg-utils.ts
@@
-198,6
+198,7
@@
async function canDoQuickTranscode (path: string): Promise<boolean> {
// check video params
if (videoStream[ 'codec_name' ] !== 'h264') return false
+ if (videoStream[ 'pix_fmt' ] !== 'yuv420p') return false
if (fps < VIDEO_TRANSCODING_FPS.MIN || fps > VIDEO_TRANSCODING_FPS.MAX) return false
if (bitRate > getMaxBitrate(resolution.videoFileResolution, fps, VIDEO_TRANSCODING_FPS)) return false