Changes between Version 24 and Version 25 of Scaling
- Timestamp:
- Oct 15, 2022, 6:05:33 PM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scaling
v24 v25 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. The correct syntax for SAR=2:3 is `setsar=2/3` .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. The correct syntax for SAR=2:3 is `setsar=2/3`, or `setsar=1` for the above example. 12 12 13 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.
