| | 89 | = Chroma subsampling = |
| | 90 | If you want to use different chroma subsampling formats such as 4:2:2 or 4:4:4 you can use `-vf format=`. |
| | 91 | |
| | 92 | For example if you want to encode in 8-bit 4:4:4: |
| | 93 | {{{ |
| | 94 | ffmpeg -i input.mp4 -c:v libaom-av1 -strict experimental -vf format=yuv444p output.mkv |
| | 95 | }}} |
| | 96 | Combined with a scaling option you can use it to downscale a 2160p 4:2:0 video to 1080p 4:4:4 for example: |
| | 97 | {{{ |
| | 98 | ffmpeg -i input.mp4 -c:v libaom-av1 -strict experimental -vf "format=yuv444p,scale=iw/2:ih/2" output.mkv |
| | 99 | }}} |
| | 100 | Most used formats: 8-bit 4:0:0 `gray`, 8-bit 4:2:0 `yuv420p`, 8-bit 4:2:2 `yuv422p`, 8-bit 4:4:4 `yuv444p`, 10-bit 4:0:0 `gray10le`, 10-bit 4:2:0 `yuv420p10le`, 10-bit 4:2:2 `yuv422p10le`, 10-bit 4:4:4 `yuv444p10le` |
| | 101 | |
| | 102 | View all the different subsampling formats with `ffmpeg -pix_fmts` |
| | 103 | |