Changes between Version 22 and Version 23 of Scaling


Ignore:
Timestamp:
Oct 15, 2022, 9:17:01 AM (4 years ago)
Author:
Michael Koch
Comment:

setsar syntax

Legend:

Unmodified
Added
Removed
Modified
  • Scaling

    v22 v23  
    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.
     12
    1113* When going from BGR (not RGB) to yuv420p the conversion is broken (off-by-one). Use -vf scale=flags=accurate_rnd to fix that.
    1214* 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.