Changes between Version 62 and Version 63 of Scaling


Ignore:
Timestamp:
Aug 24, 2024, 9:50:47 AM (2 years ago)
Author:
MasterQuestionable
Comment:

[m] Mere formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Scaling

    v62 v63  
    119119}}}
    120120
    121 The output width will be evaluated to be the minimum of 320 and the input width. If you have an imput image that is only 240 pixels wide, the result of the `min` function will be 240 – this will be your target value.
     121The output width will be evaluated to be the minimum of 320 and the input width. If you have an imput image that is only 240 pixels wide, the result of the `min` function will be 240 - this will be your target value.
    122122
    123123
    … …  
    211211
    212212Recently introduced in_chroma_loc and out_chroma_loc can be used as well.
    213 
    214 
    215213{{{
    216214ffmpeg -i cosmos-p5.mkv -vf scale=in_chroma_loc=left -pix_fmt rgb24 newway.rgb
    217215}}}
    218 
    219 
    220216{{{
    221217ffmpeg -i cosmos-p5.mkv -vf scale=in_chroma_loc=topleft -pix_fmt rgb24 newway.rgb
    222218}}}
    223219
    224 
    225220To create BT.2020-NCL matrix with top-left chroma this can be used (if the source image is not using bt.2020 primaries the color management must be done first on linear data, also correct transfer must be tagged, either SDR or HDR one, again this requires color management):
    226221{{{
    … …  
    233228}}}
    234229
    235 Also, #9693 says that if you want to write jpeg file you need to specify  -vf scale=out_color_matrix=smpte170m:out_chroma_loc=center
     230Also, #9693 says that if you want to write jpeg file you need to specify -vf scale=out_color_matrix=smpte170m:out_chroma_loc=center