Changes between Version 24 and Version 25 of Scaling


Ignore:
Timestamp:
Oct 15, 2022, 6:05:33 PM (12 months ago)
Author:
Michael Koch
Comment:

setsar syntax

Legend:

Unmodified
Added
Removed
Modified
  • Scaling

    v24 v25  
    99ffmpeg -i input.mp4 -vf scale=320:240,setsar=1:1 output.mp4
    1010}}}
    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.
    1212
    1313* When going from BGR (not RGB) to yuv420p the conversion is broken (off-by-one). Use -vf scale=flags=accurate_rnd to fix that.