Changes between Version 21 and Version 22 of Scaling


Ignore:
Timestamp:
Jan 24, 2022, 7:35:22 AM (5 years ago)
Author:
Balling
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Scaling

    v21 v22  
    154154ffmpeg -i cosmos.mkv -vf 'scale=in_h_chr_pos=0:in_v_chr_pos=0' -pix_fmt rgb24 qnfvarejwnfe3.rgb //for top-left
    155155}}}
     156
     157To 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 managment must be done first on linear data, also correct transfer must be tagged, either SDR or HDR one, again this requires color managment):
     158
     159{{{
     160-vf scale=out_color_matrix=bt2020nc:out_h_chr_pos=0:out_v_chr_pos=0
     161}}}
     162To change chroma sample location in VUI in HEVC to 0 (left) with -c copy this can be used (2 would be top-left, -1 will remove any sample location from VUI, all 0, 1, 2, 3, 4, 5 sample locations are possible):
     163
     164{{{
     165ffmpeg -i file.mp4 -c copy -bsf:v hevc_metadata=chroma_sample_loc_type=0 file1.mp4
     166}}}