From 457d6e1f7c429a83284e7039d3bca72550ccae96 Mon Sep 17 00:00:00 2001 From: Deivid Soto Date: Thu, 7 May 2026 11:52:28 +0200 Subject: [PATCH] fix(transcoder): correct scale filter + always force yuv420p MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous scale expression `min(iw,iw*H/ih)':'min(ih,H)` produced odd widths (e.g. 1425×720 for a 16:9 source capped at 720p) which libx264 refuses with `width not divisible by 2`, killing the encoder before a single byte was written. Switch to `scale=-2:H:force_original_aspect_ratio=decrease`, which derives a width that preserves aspect ratio AND is rounded to a multiple of 2. Always set `-pix_fmt yuv420p` so 10-bit HEVC sources are downcast to the 8-bit format browser