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

FFmpeg trac at avcodec.org
Sat Jul 30 13:09:12 EEST 2022


#9673: ffmpeg not reading color information from JPEG ICC profile
-------------------------------------+-------------------------------------
             Reporter:  Cosmin       |                    Owner:  haasn
  Stejerean                          |
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by haasn):

 > This is a great start, but I'm curious what it would take to do this
 automatically. For example it would be useful to have the color
 information exposed in ffprobe, and having to inject a filter into the
 process would make this more cumbersome.

 As with the other issue, -flags2 icc_profiles enables this experimental
 functionality on master:

 $ ffprobe -flags2 icc_profiles -show_frames test.jpg | grep color
 ...
 color_range=pc
 color_space=bt470bg
 color_primaries=unknown
 color_transfer=iec61966-2-1

 Note that you need to use `-show_frames` and not `-show_streams` as a
 result of the ICC profile and hence color space metadata being internally
 a property of the frame, not the container. (I'll continue thinking about
 ways we could possibly improve that)

 Let me know if your use case is solved.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9673#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list