Changes between Version 41 and Version 42 of Scaling
- Timestamp:
- May 4, 2024, 9:30:58 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scaling
v41 v42 26 26 The above example is highly misleading because `setsar=1:1` is equivalent to `setsar=r=1:max=1`. In this special case it accidentally gives the correct result SAR=1:1, but for example `setsar=2:3` would give the wrong result SAR=2:1. The correct syntax for SAR=2:3 is `setsar=2/3`, or `setsar=1` for the above example. 27 27 28 * When going from BGR (not RGB) to yuv420p the conversion is broken (off-by-one). Use -vf scale=flags=accurate_rnd to fix that.29 * yuvj xxxp pixel formats are deprecated. Yet for x265 the workaround was implemented, but not for jpeg2000 and AV1. For those -vf scale=out_range=pc should be used.28 * When going from BGR (not RGB) to yuv420p the conversion may be off-by-one. Use "-sws_flags +accurate_rnd" alike to avoid. 29 * yuvj!***p pixel formats are deprecated. Yet for x265 the workaround was implemented, but not for jpeg2000 and AV1. For those -vf scale=out_range=pc should be used. 30 30 * Conversion from YUV limited to RGB 16bpc (bit-per-component) is broken: use "zscale" instead of "swscale". 31 * Limited range RGB is not supported at all.32 * Dither can be turned off using -vf scale=sws_dither=none31 * Limited range RGB is outright unsupported. 32 * Dither can be forced off using "-sws_dither none". (or temporary workaround !`-lavfi "scale=sws_dither=none"` alike) 33 33 * Remember YUV 4:4:4 8bpc wouldn't suffice to preserve RGB 8bpc: 10bpc is required. 34 * The default for matrix in untagged input and output is always limited BT.601[ See also: <[/wiki/colorspace colorspace]> ]34 * The default matrix for untagged input/output would be limited BT.601. [ See also: <[/wiki/colorspace colorspace]> ] 35 35 }}} 36 36
