Opened 7 years ago
Last modified 8 months ago
#8054 open enhancement
prores_ks codec does not allow 12bit pix_fmt
| Reported by: | shaocaholica | Owned by: | |
|---|---|---|---|
| Priority: | wish | Component: | avcodec |
| Version: | git-master | Keywords: | prores |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug: Apple prores4444XQ which is supported by prores_ks allows for 12bit RGB/YUV channels but when a 12bit pix_fmt is used a warning is given:
Incompatible pixel format 'yuv444p12le' for codec 'prores_ks', auto-selecting format 'yuv444p10le'
How to reproduce:
% ffmpeg -f image2 -r 24.0 -i sample_16bit.%4d.tif -c:v prores_ks -profile:v 5 -pix_fmt yuv444p12le -vf colormatrix=bt601:bt709 prores4444XQ.mov ffmpeg version 4.1-static https://johnvansickle.com/ffmpeg/ built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
Attachments (1)
Change History (6)
by , 7 years ago
| Attachment: | sample_16bit.tif added |
|---|
comment:1 by , 7 years ago
| Component: | ffmpeg → avcodec |
|---|---|
| Keywords: | prores added; prores_ks removed |
| Priority: | normal → wish |
| Status: | new → open |
| Type: | defect → enhancement |
| Version: | 4.1 → git-master |
comment:2 by , 6 years ago
+1 for this. ProRes 4444 and ProRes 4444XQ should render to 12 bit.
If it helps here are 10 and 12 bit ProRes Test Patterns and ramps generated in DaVinci Resolve if it helps somehow to see difference:
https://www.dropbox.com/sh/bak63hnr7mnpgbj/AAAf-rMK0LvHYTAFjPuQaaxFa?dl=0
Apply min/max input in Levels and easy see the difference in 10 vs 12 bit gradient like this: https://forum.doom9.org/showthread.php?t=181848
comment:5 by , 8 months ago
As far as I'm concerned, prores_ks generates _only_ 12-bit video (4444 and 4444xq), even if ffmpeg claims to generate yuv444p10.
https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/20468
Example from the report above:
frame,video,0,1,0,0.000000,0,0.000000,0,0.000000,512,0.041667,36,575383,1920,1080,0,0,0,0,yuv444p12le,1:1,I,0,0,0,0,tv,unknown,unknown,unknown,unspecified



sample 16bit tif