According to the white paper, ProRes files can contain 12-bit RGB video with an optional 16-bit alpha channel. Is there some way to tell whether this alpha channel exists? I believe this video clip is 12-bit RGB with a 16-bit alpha channel, but I am trying to verify that. Ffprobe calls it yuv444p10le. DaVinci Resolve identifies it as 16-bit, probably because it sees the alpha channel and only reports the highest bit depth of any channel. Also — does ffmpeg support 12-bit RGB? I do not see it listed in “ffmpeg -pix_fmts”. ffprobe -show_streams B002_C037_06288E_prores444XQ_full12.mov ffprobe version N-90742-g0b3c1854cb Copyright (c) 2007-2018 the FFmpeg developers built with gcc 7.3.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth libavutil 56. 15.100 / 56. 15.100 libavcodec 58. 19.100 / 58. 19.100 libavformat 58. 13.100 / 58. 13.100 libavdevice 58. 4.100 / 58. 4.100 libavfilter 7. 17.100 / 7. 17.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc 55. 2.100 / 55. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'B002_C037_06288E_prores444XQ_full12.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2018-04-17T19:58:27.000000Z Duration: 00:00:01.33, start: 0.000000, bitrate: 1551673 kb/s Stream #0:0(eng): Video: prores (ap4x / 0x78347061), yuv444p10le(bt709, progressive), 3840x2160, 1551663 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc (default) Metadata: creation_time : 2018-04-17T19:58:27.000000Z handler_name : Apple Alias Data Handler encoder : Apple ProRes 4444 XQ timecode : 00:00:00:00 Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2018-04-17T19:58:28.000000Z handler_name : Apple Alias Data Handler reel_name : B002_C037_06288E timecode : 00:00:00:00 Unsupported codec with id 0 for input stream 1 [STREAM] index=0 codec_name=prores codec_long_name=Apple ProRes (iCodec Pro) profile=unknown codec_type=video codec_time_base=1/24 codec_tag_string=ap4x codec_tag=0x78347061 width=3840 height=2160 coded_width=3840 coded_height=2160 has_b_frames=0 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuv444p10le level=-99 color_range=unknown color_space=bt709 color_transfer=bt709 color_primaries=bt709 chroma_location=unspecified field_order=progressive timecode=N/A refs=1 id=N/A r_frame_rate=24/1 avg_frame_rate=24/1 time_base=1/24 start_pts=0 start_time=0.000000 duration_ts=32 duration=1.333333 bit_rate=1551663072 max_bit_rate=N/A bits_per_raw_sample=10 nb_frames=32 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2018-04-17T19:58:27.000000Z TAG:language=eng TAG:handler_name=Apple Alias Data Handler TAG:encoder=Apple ProRes 4444 XQ TAG:timecode=00:00:00:00 [/STREAM] [STREAM] index=1 codec_name=unknown codec_long_name=unknown profile=unknown codec_type=data codec_tag_string=tmcd codec_tag=0x64636d74 id=N/A r_frame_rate=0/0 avg_frame_rate=24/1 time_base=1/24 start_pts=0 start_time=0.000000 duration_ts=32 duration=1.333333 bit_rate=24 max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=1 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2018-04-17T19:58:28.000000Z TAG:language=eng TAG:handler_name=Apple Alias Data Handler TAG:reel_name=B002_C037_06288E TAG:timecode=00:00:00:00 [/STREAM]
Hi On Tue, 17 Apr 2018, 20:13 Elliott Balsley, <elliottbalsley@gmail.com> wrote:
According to the white paper, ProRes files can contain 12-bit RGB video with an optional 16-bit alpha channel. Is there some way to tell whether this alpha channel exists? I believe this video clip is 12-bit RGB with a 16-bit alpha channel, but I am trying to verify that. Ffprobe calls it yuv444p10le. DaVinci Resolve identifies it as 16-bit, probably because it sees the alpha channel and only reports the highest bit depth of any channel.
Can you share a sample?
Sample clip here, this is 6MB. https://drive.google.com/file/d/1hdBmoCgn_M-W-8siZGlEpI1oPNTCgvO_/view?usp=s...
On 4/17/18, Elliott Balsley <elliottbalsley@gmail.com> wrote:
Sample clip here, this is 6MB. https://drive.google.com/file/d/1hdBmoCgn_M-W-8siZGlEpI1oPNTCgvO_/view?usp=s... _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
You sure this displays alpha when reopened in exporter? It can just mark that source format had alpha.
You sure this displays alpha when reopened in exporter?
It can just mark that source format had alpha. __________________________________________ No I'm not, in fact I don't expect there to be an alpha channel here. I only think that because Resolve detects it as 16-bit. It could be a bug in Resolve
2018-04-18 18:10 GMT+02:00, Elliott Balsley <elliottbalsley@gmail.com>:
You sure this displays alpha when reopened in exporter?
It can just mark that source format had alpha.
No I'm not, in fact I don't expect there to be an alpha channel here. I only think that because Resolve detects it as 16-bit. It could be a bug in Resolve
Or more likely a marketing issue. Carl Eugen
Or more likely a marketing issue.
I think maybe what is happening is that since Resolve processes images in a 32-bit space, and it’s not convenient to fit 12-bit words, it pads each word to 16-bits so then it fits better. Anyway, on this topic, is there a way to definitely read the bit depth used to encode a file? According to Arri, the ProRes 444 clips created by the Alexa camera are written using 12 bits. This is documented in many places on the web, including this forum post. But somehow, ffmpeg identifies these files as yuv444p10le and the image looks correct. https://www.arri.com/forum/viewtopic.php?t=127&p=266 <https://www.arri.com/forum/viewtopic.php?t=127&p=266> If the image were truly 12-bit, and ffmpeg decodes it as 10-bit, I expect the image would look wrong. According to the MediaInfo developer, there is no way to definitely read the encoded bit depth, and therefore he has removed that info from the MediaInfo tool. https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/... <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec> <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec> <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec> <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec>
On 4/20/18, Elliott Balsley <elliottbalsley@gmail.com> wrote:
Or more likely a marketing issue.
I think maybe what is happening is that since Resolve processes images in a 32-bit space, and it's not convenient to fit 12-bit words, it pads each word to 16-bits so then it fits better.
Anyway, on this topic, is there a way to definitely read the bit depth used to encode a file? According to Arri, the ProRes 444 clips created by the Alexa camera are written using 12 bits. This is documented in many places on the web, including this forum post. But somehow, ffmpeg identifies these files as yuv444p10le and the image looks correct. https://www.arri.com/forum/viewtopic.php?t=127&p=266 <https://www.arri.com/forum/viewtopic.php?t=127&p=266>
If the image were truly 12-bit, and ffmpeg decodes it as 10-bit, I expect the image would look wrong.
According to the MediaInfo developer, there is no way to definitely read the encoded bit depth, and therefore he has removed that info from the MediaInfo tool. https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/... <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec> <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec> <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec> <https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec>
Two or more wrongs do not make one good.
Two or more wrongs do not make one good.
Sorry, I’m not understanding your point. The question I’m trying to understand is, how are pixels actually encoded? Is each pixel represented by a triplet of RGB / YUV values? If so, is there some way to look at it in a text editor and see values like (1024,1024,1024) for a white pixel in 10-bit RGB? Can it be possible for ffmpeg to misinterpret the image as 10-bit instead of 12, and still make the image look correct?
On 4/23/18, Elliott Balsley <elliottbalsley@gmail.com> wrote:
Two or more wrongs do not make one good.
Sorry, I'm not understanding your point. The question I'm trying to understand is, how are pixels actually encoded? Is each pixel represented by a triplet of RGB / YUV values? If so, is there some way to look at it in a text editor and see values like (1024,1024,1024) for a white pixel in 10-bit RGB?
Yes.
Can it be possible for ffmpeg to misinterpret the image as 10-bit instead of 12, and still make the image look correct?
No.
Can it be possible for ffmpeg to misinterpret the image as 10-bit instead of 12, and still make the image look correct?
No.
I think this actually could be possible. If you ignore the two least significant bits, then the image would still look correct, just lacking precision. Looking at the source code here, I see that PRORES_BITS_PER_SAMPLE is defined as 10. So it sounds like ffmpeg simply decodes all ProRes as 10-bit. I would like to request the option to decode ProRes with 12-bit precision, but unfortunately I do not have any programming knowledge to contribute. https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h <https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h> Sample footage is here if anybody is interested: http://www.arri.com/camera/alexa/learn/alexa_sample_footage/
On 4/24/18, Elliott Balsley <elliottbalsley@gmail.com> wrote:
Can it be possible for ffmpeg to misinterpret the image as 10-bit instead of 12, and still make the image look correct?
No.
I think this actually could be possible. If you ignore the two least significant bits, then the image would still look correct, just lacking precision.
Looking at the source code here, I see that PRORES_BITS_PER_SAMPLE is defined as 10. So it sounds like ffmpeg simply decodes all ProRes as 10-bit. I would like to request the option to decode ProRes with 12-bit precision, but unfortunately I do not have any programming knowledge to contribute.
https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h <https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h>
Sample footage is here if anybody is interested: http://www.arri.com/camera/alexa/learn/alexa_sample_footage/
There is no 12 bit codec. There is only possible 16 bit alpha, which is downconverted to 10 bit.
Looking at the source code here, I see that PRORES_BITS_PER_SAMPLE is defined as 10. So it sounds like ffmpeg simply decodes all ProRes as 10-bit. I would like to request the option to decode ProRes with 12-bit precision, but unfortunately I do not have any programming knowledge to contribute.
https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h <https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h <https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h>>
Sample footage is here if anybody is interested: http://www.arri.com/camera/alexa/learn/alexa_sample_footage/ <http://www.arri.com/camera/alexa/learn/alexa_sample_footage/>
There is no 12 bit codec.
There is only possible 16 bit alpha, which is downconverted to 10 bit. _______________________________________________
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? Apple’s white paper: The new Apple ProRes 4444 codec preserves motion image sequences originating in either 4:4:4 RGB or 4:4:4 Y’CBCR color spaces. At its remarkably low data rate as compared to uncompressed 4:4:4 HD, Apple ProRes 4444 supports 12-bit pixel depth with an optional, mathematically lossless alpha channel for true 4:4:4:4 support. https://images.apple.com/support/finalcutpro/docs/Apple-ProRes-White-Paper-J... <https://images.apple.com/support/finalcutpro/docs/Apple-ProRes-White-Paper-July-2009.pdf> Arri Alexa camera specs: ProRes 4444 XQ preserves dynamic ranges several times greater than the dynamic range of Rec. 709 imagery. Like standard ProRes 4444, this version supports up to 12 bits per image channel. ProRes 4444 XQ features a target data rate of approximately 500 Mb/s for 4:4:4 sources at 1920 x 1080. http://www.arri.com/news/news/alexa-xrxt-supports-new-prores-4444-xq/ <http://www.arri.com/news/news/alexa-xrxt-supports-new-prores-4444-xq/> Rohit Gupta, software engineer for DaVinci Resolve: "PR4444 exports are always 12-bit. There is no way to limit it to 10-bit." https://forum.blackmagicdesign.com/viewtopic.php?f=3&t=22488 <https://forum.blackmagicdesign.com/viewtopic.php?f=3&t=22488> Sound Devices PIX 260i recorder specs: Using Apple ProRes and Avid DNxHD codecs, the PIX 260i records and plays high-quality 12-bit 4:4:4 high definition video as well as 32 tracks of 48 kHz audio. http://cdn.sounddevices.com/download/lit/pix260i_lit.pdf <http://cdn.sounddevices.com/download/lit/pix260i_lit.pdf>
El 24/04/18 a las 18:32, Elliott Balsley escribió:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? No, he is informing you that there's no 12-bit codec in ffmpeg.
-- Gonzalo Garramuño
On 4/25/18, Gonzalo Garramuno <ggarra13@gmail.com> wrote:
El 24/04/18 a las 18:32, Elliott Balsley escribio:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? No, he is informing you that there's no 12-bit codec in ffmpeg.
Please, do not spread lies.
On Apr 25, 2018, at 01:11, Paul B Mahol <onemda@gmail.com> wrote:
On 4/25/18, Gonzalo Garramuno <ggarra13@gmail.com> wrote:
El 24/04/18 a las 18:32, Elliott Balsley escribio:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? No, he is informing you that there's no 12-bit codec in ffmpeg.
Please, do not spread lies.
Paul, to whom are you referring, and what do you think is a lie?
On 4/25/18, Elliott Balsley <elliottbalsley@gmail.com> wrote:
On Apr 25, 2018, at 01:11, Paul B Mahol <onemda@gmail.com> wrote:
On 4/25/18, Gonzalo Garramuno <ggarra13@gmail.com> wrote:
El 24/04/18 a las 18:32, Elliott Balsley escribio:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? No, he is informing you that there's no 12-bit codec in ffmpeg.
Please, do not spread lies.
Paul, to whom are you referring, and what do you think is a lie?
Until proven otherwise, there is no 12 bit prores.
2018-04-25 0:03 GMT+02:00, Gonzalo Garramuño <ggarra13@gmail.com>:
El 24/04/18 a las 18:32, Elliott Balsley escribió:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong?
Yes.
No, he is informing you that there's no 12-bit codec in ffmpeg.
This is not what Paul wrote, please be more careful. Carl Eugen
On 4/25/18, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
2018-04-25 0:03 GMT+02:00, Gonzalo Garramuno <ggarra13@gmail.com>:
El 24/04/18 a las 18:32, Elliott Balsley escribio:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong?
Yes.
No, he is informing you that there's no 12-bit codec in ffmpeg.
This is not what Paul wrote, please be more careful.
One way to prove 12 bit is really 12 bit is to encode color gradient of 4096x4096 video size and for each column or row pick unique shade of gray.
El 25/04/18 a las 13:19, Carl Eugen Hoyos escribió:
2018-04-25 0:03 GMT+02:00, Gonzalo Garramuño <ggarra13@gmail.com>:
El 24/04/18 a las 18:32, Elliott Balsley escribió:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? Yes.
No, he is informing you that there's no 12-bit codec in ffmpeg. This is not what Paul wrote, please be more careful.
I apologize. But Paul's messages were so short that were cryptic and left to interpretation. To clarify, so you guys are saying there's no Prores 12-bit at all? -- Gonzalo Garramuño
On 4/28/18, Gonzalo Garramuno <ggarra13@gmail.com> wrote:
El 25/04/18 a las 13:19, Carl Eugen Hoyos escribio:
2018-04-25 0:03 GMT+02:00, Gonzalo Garramuno <ggarra13@gmail.com>:
El 24/04/18 a las 18:32, Elliott Balsley escribio:
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong? Yes.
No, he is informing you that there's no 12-bit codec in ffmpeg. This is not what Paul wrote, please be more careful.
I apologize. But Paul's messages were so short that were cryptic and left to interpretation. To clarify, so you guys are saying there's no Prores 12-bit at all?
There is 12-bit prores.
2018-04-28 0:07 GMT+02:00, Gonzalo Garramuño <ggarra13@gmail.com>:
To clarify, so you guys are saying there's no Prores 12-bit at all?
We did and we stay corrected: https://trac.ffmpeg.org/ticket/7163 Carl Eugen
On Apr 27, 2018, at 4:22 PM, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
We did and we stay corrected: https://trac.ffmpeg.org/ticket/7163
Thank you, Carl.
On 4/24/18, Elliott Balsley <elliottbalsley@gmail.com> wrote:
Looking at the source code here, I see that PRORES_BITS_PER_SAMPLE is defined as 10. So it sounds like ffmpeg simply decodes all ProRes as 10-bit. I would like to request the option to decode ProRes with 12-bit precision, but unfortunately I do not have any programming knowledge to contribute.
https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h <https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h <https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/proresdsp.h>>
Sample footage is here if anybody is interested: http://www.arri.com/camera/alexa/learn/alexa_sample_footage/ <http://www.arri.com/camera/alexa/learn/alexa_sample_footage/>
There is no 12 bit codec.
There is only possible 16 bit alpha, which is downconverted to 10 bit. _______________________________________________
Here are a few sources stating there is a 12-bit codec. Are you suggesting they are all wrong?
Apple's white paper: The new Apple ProRes 4444 codec preserves motion image sequences originating in either 4:4:4 RGB or 4:4:4 Y'CBCR color spaces. At its remarkably low data rate as compared to uncompressed 4:4:4 HD, Apple ProRes 4444 supports 12-bit pixel depth with an optional, mathematically lossless alpha channel for true 4:4:4:4 support. https://images.apple.com/support/finalcutpro/docs/Apple-ProRes-White-Paper-J... <https://images.apple.com/support/finalcutpro/docs/Apple-ProRes-White-Paper-July-2009.pdf>
Arri Alexa camera specs: ProRes 4444 XQ preserves dynamic ranges several times greater than the dynamic range of Rec. 709 imagery. Like standard ProRes 4444, this version supports up to 12 bits per image channel. ProRes 4444 XQ features a target data rate of approximately 500 Mb/s for 4:4:4 sources at 1920 x 1080. http://www.arri.com/news/news/alexa-xrxt-supports-new-prores-4444-xq/ <http://www.arri.com/news/news/alexa-xrxt-supports-new-prores-4444-xq/>
Rohit Gupta, software engineer for DaVinci Resolve: "PR4444 exports are always 12-bit. There is no way to limit it to 10-bit." https://forum.blackmagicdesign.com/viewtopic.php?f=3&t=22488 <https://forum.blackmagicdesign.com/viewtopic.php?f=3&t=22488>
Sound Devices PIX 260i recorder specs: Using Apple ProRes and Avid DNxHD codecs, the PIX 260i records and plays high-quality 12-bit 4:4:4 high definition video as well as 32 tracks of 48 kHz audio. http://cdn.sounddevices.com/download/lit/pix260i_lit.pdf <http://cdn.sounddevices.com/download/lit/pix260i_lit.pdf>
If you want definite proof, provide export of 12 bit prores into some other 12 bit format or 16bit one and give it to compare with ffmpeg decoded output.
On Apr 25, 2018, at 1:14 AM, Paul B Mahol <onemda@gmail.com> wrote:
If you want definite proof, provide export of 12 bit prores into some other 12 bit format or 16bit one and give it to compare with ffmpeg decoded output.
Thanks for that suggestion. I have just done a thorough test which proves my point. See details at https://trac.ffmpeg.org/ticket/7163#comment:2 <https://trac.ffmpeg.org/ticket/7163#comment:2>
participants (5)
-
Carl Eugen Hoyos -
Elliott Balsley -
Gonzalo Garramuño -
Kieran O Leary -
Paul B Mahol