Changes between Version 22 and Version 23 of Scaling
- Timestamp:
- Oct 15, 2022, 9:17:01 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scaling
v22 v23 9 9 ffmpeg -i input.mp4 -vf scale=320:240,setsar=1:1 output.mp4 10 10 }}} 11 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. 12 11 13 * When going from BGR (not RGB) to yuv420p the conversion is broken (off-by-one). Use -vf scale=flags=accurate_rnd to fix that. 12 14 * yuvjxxxp 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.
