ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't quick transcode with the wrong pixel format
Chocobozzzf6e0de3f4899
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.tsindex 914ecc51aa..c0e9702a85 100644--- 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 paramsif (videoStream[ 'codec_name' ] !== 'h264') return false+ if (videoStream[ 'pix_fmt' ] !== 'yuv420p') return falseif (fps < VIDEO_TRANSCODING_FPS.MIN || fps > VIDEO_TRANSCODING_FPS.MAX) return falseif (bitRate > getMaxBitrate(resolution.videoFileResolution, fps, VIDEO_TRANSCODING_FPS)) return false