From: Rigel Kent Date: Mon, 12 Nov 2018 14:43:51 +0000 (+0100) Subject: (ffmpeg) force pixel format yuv420p (#1394) X-Git-Tag: v1.1.0-rc.1~60 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=408f50ebc7cc3c0887d1e77a5c04508517dc151e;p=oweals%2Fpeertube.git (ffmpeg) force pixel format yuv420p (#1394) --- diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index a108d46a0..8b9045038 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -310,6 +310,7 @@ async function presetH264 (command: ffmpeg.FfmpegCommand, resolution: VideoResol .outputOption('-level 3.1') // 3.1 is the minimal ressource allocation for our highest supported resolution .outputOption('-b_strategy 1') // NOTE: b-strategy 1 - heuristic algorythm, 16 is optimal B-frames for it .outputOption('-bf 16') // NOTE: Why 16: https://github.com/Chocobozzz/PeerTube/pull/774. b-strategy 2 -> B-frames<16 + .outputOption('-pix_fmt yuv420p') // allows import of source material with incompatible pixel formats (e.g. MJPEG video) .outputOption('-map_metadata -1') // strip all metadata .outputOption('-movflags faststart')