[FFmpeg-trac] #9673(undetermined:new): ffmpeg not reading color information from JPEG ICC profile

FFmpeg trac at avcodec.org
Tue Mar 1 23:04:48 EET 2022


#9673: ffmpeg not reading color information from JPEG ICC profile
-------------------------------------+-------------------------------------
             Reporter:  Cosmin       |                     Type:  defect
  Stejerean                          |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 ffmpeg / ffprobe is not reading color information from the ICC profile in
 JPEG. Somewhat related to #9672 (where it also fails to write it to JPEG),
 for proper support of wide color gamut it's important to be able to both
 read and write color information properly. This ticket focuses on the
 reading part.

 Attached is an example image in P3 color space (which needs a P3 capable
 display to render properly). ffprobe is not able to read the ICC color
 information from this, but it can be read by for example exiftool

 Steps to reproduce.

 1. Download the attached test.jpg

 2. Can confirm the ICC profile info with exiftool

 {{{
 exiftool test.jpg

 Profile Description             : Display P3
 }}}

 additional output of exiftool is omitted for brevity

 2. Check ffprobe color information

 {{{
 ffprobe -show_streams test.jpg | grep color

 color_range=pc
 color_space=bt470bg
 color_transfer=unknown
 color_primaries=unknow
 }}}

 Expected values are color primaries smpte432, color trc iec61966-2-1
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9673>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list