From: Chocobozzz Date: Mon, 21 Oct 2019 12:03:04 +0000 (+0200) Subject: Don't quick transcode with the wrong pixel format X-Git-Tag: v2.0.0-rc.1~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f6e0de3f48993b2c0ef9bd2c24d2d7443acc6ace;p=oweals%2Fpeertube.git Don't quick transcode with the wrong pixel format --- diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index 914ecc51a..c0e9702a8 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -198,6 +198,7 @@ async function canDoQuickTranscode (path: string): Promise { // 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