Changes between Version 62 and Version 63 of Scaling
- Timestamp:
- Aug 24, 2024, 9:50:47 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scaling
v62 v63 119 119 }}} 120 120 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.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. 122 122 123 123 … … 211 211 212 212 Recently introduced in_chroma_loc and out_chroma_loc can be used as well. 213 214 215 213 {{{ 216 214 ffmpeg -i cosmos-p5.mkv -vf scale=in_chroma_loc=left -pix_fmt rgb24 newway.rgb 217 215 }}} 218 219 220 216 {{{ 221 217 ffmpeg -i cosmos-p5.mkv -vf scale=in_chroma_loc=topleft -pix_fmt rgb24 newway.rgb 222 218 }}} 223 219 224 225 220 To 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): 226 221 {{{ … … 233 228 }}} 234 229 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=center230 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
