Right, when you --colorconvert linear sRGB, since those are not names in your 
OCIO config, OIIO is just falling back to a canned "linear -> sRGB" behavior of 
converting Rec709 color primaries with a linear transfer function, to the same 
primaries with the sRGB transfer function. But the colors are wrong because 
your input is not really Rec709, it's acescg.

For the second example, it's trying to use your OCIO config, but your config 
does not have an entry for sRGB.

Maybe use the color space "Output - sRGB" is the one you want? That sounds like 
maybe a good guess.

But really, it depends on what you're trying to do. This is a good question to 
ask your facility's color scientist. I would also maybe refer the question to 
somebody on the ocio-dev or ACES mail lists? I think that the real issue is 
figuring out which of your many color spaces you are really intending to 
transform between.


> On Jun 4, 2020, at 5:49 PM, spo...@toxixox.com wrote:
> 
> Here it is.  ACES 1.0.3
> 
> 
> Strange thing, I can do this without error :
> $ oiiotool input.exr --colorconvert linear sRGB -o output.jpg
> (but I get weird colors, of course)
> 
> And this one:
> $ oiiotool input.exr --colorconvert acescg sRGB -o output.jpg
> always gives me :
> oiiotool ERROR: colorconvert : Could not find colorspace 'sRGB’.
> 
> 
> 
> 
> Color configuration: /Users/Shared/ocio-configs/aces_1.0.3/config.ocio
> Known color spaces: "ACES - ACES2065-1", "ACES - ACEScc", "ACES - ACEScct", 
> "ACES - ACESproxy", "ACES - ACEScg" (linear), "Input - ADX - ADX10", "Input - 
> ADX - ADX16", "Input - ARRI - V3 LogC (EI160) - Wide Gamut", "Input - ARRI - 
> V3 LogC
>    (EI200) - Wide Gamut", "Input - ARRI - V3 LogC (EI250) - Wide Gamut", 
> "Input - ARRI - V3 LogC (EI320) - Wide Gamut", "Input - ARRI - V3 LogC 
> (EI400) - Wide Gamut", "Input - ARRI - V3 LogC (EI500) - Wide Gamut", "Input 
> - ARRI - V3 LogC (EI640)
>    - Wide Gamut", "Input - ARRI - V3 LogC (EI800) - Wide Gamut", "Input - 
> ARRI - V3 LogC (EI1000) - Wide Gamut", "Input - ARRI - V3 LogC (EI1280) - 
> Wide Gamut", "Input - ARRI - V3 LogC (EI1600) - Wide Gamut", "Input - ARRI - 
> V3 LogC (EI2000) -
>    Wide Gamut", "Input - ARRI - V3 LogC (EI2560) - Wide Gamut", "Input - ARRI 
> - V3 LogC (EI3200) - Wide Gamut", "Input - ARRI - Curve - V3 LogC (EI800)", 
> "Input - ARRI - Linear - ALEXA Wide Gamut", "Input - Canon - Canon-Log - Rec. 
> 709
>    Daylight", "Input - Canon - Canon-Log - Rec. 709 Tungsten", "Input - Canon 
> - Canon-Log - DCI-P3 Daylight", "Input - Canon - Canon-Log - DCI-P3 
> Tungsten", "Input - Canon - Canon-Log - Cinema Gamut Daylight", "Input - 
> Canon - Canon-Log - Cinema
>    Gamut Tungsten", "Input - Canon - Canon-Log - Rec. 2020 Daylight", "Input 
> - Canon - Canon-Log - Rec. 2020 Tungsten", "Input - Canon - Canon-Log2 - Rec. 
> 2020 Daylight", "Input - Canon - Canon-Log2 - Rec. 2020 Tungsten", "Input - 
> Canon -
>    Canon-Log2 - Cinema Gamut Daylight", "Input - Canon - Canon-Log2 - Cinema 
> Gamut Tungsten", "Input - Canon - Canon-Log3 - Rec. 2020 Daylight", "Input - 
> Canon - Canon-Log3 - Rec. 2020 Tungsten", "Input - Canon - Canon-Log3 - 
> Cinema Gamut
>    Daylight", "Input - Canon - Canon-Log3 - Cinema Gamut Tungsten", "Input - 
> Canon - Curve - Canon-Log", "Input - Canon - Curve - Canon-Log2", "Input - 
> Canon - Curve - Canon-Log3", "Input - Canon - Linear - Canon Rec. 709 
> Daylight", "Input -
>    Canon - Linear - Canon Rec. 709 Tungsten", "Input - Canon - Linear - Canon 
> DCI-P3 Daylight", "Input - Canon - Linear - Canon DCI-P3 Tungsten", "Input - 
> Canon - Linear - Canon Cinema Gamut Daylight", "Input - Canon - Linear - 
> Canon Cinema
>    Gamut Tungsten", "Input - Canon - Linear - Canon Rec. 2020 Daylight", 
> "Input - Canon - Linear - Canon Rec. 2020 Tungsten", "Input - Generic - sRGB 
> - Texture", "Input - GoPro - Protune Flat - Protune Native - Experimental", 
> "Input - GoPro -
>    Curve - Protune Flat", "Input - GoPro - Linear - Protune Native - 
> Experimental", "Input - Panasonic - V-Log - V-Gamut", "Input - Panasonic - 
> Curve - V-Log", "Input - Panasonic - Linear - V-Gamut", "Input - RED - 
> REDlogFilm - DRAGONcolor",
>    "Input - RED - REDlogFilm - DRAGONcolor2", "Input - RED - REDlogFilm - 
> REDcolor", "Input - RED - REDlogFilm - REDcolor2", "Input - RED - REDlogFilm 
> - REDcolor3", "Input - RED - REDlogFilm - REDcolor4", "Input - RED - 
> REDLog3G10 -
>    REDWideGamutRGB", "Input - RED - Curve - REDlogFilm", "Input - RED - Curve 
> - REDLog3G10", "Input - RED - Linear - DRAGONcolor", "Input - RED - Linear - 
> DRAGONcolor2", "Input - RED - Linear - REDcolor", "Input - RED - Linear - 
> REDcolor2",
>    "Input - RED - Linear - REDcolor3", "Input - RED - Linear - REDcolor4", 
> "Input - RED - Linear - REDWideGamutRGB", "Input - Sony - S-Log1 - S-Gamut", 
> "Input - Sony - S-Log2 - S-Gamut", "Input - Sony - S-Log2 - S-Gamut 
> Daylight", "Input - Sony
>    - S-Log2 - S-Gamut Tungsten", "Input - Sony - S-Log3 - S-Gamut3.Cine", 
> "Input - Sony - S-Log3 - S-Gamut3", "Input - Sony - Curve - S-Log1", "Input - 
> Sony - Curve - S-Log2", "Input - Sony - Curve - S-Log3", "Input - Sony - 
> Linear - S-Gamut",
>    "Input - Sony - Linear - S-Gamut Daylight", "Input - Sony - Linear - 
> S-Gamut Tungsten", "Input - Sony - Linear - S-Gamut3.Cine", "Input - Sony - 
> Linear - S-Gamut3", "Output - DCDM (P3 gamut clip)", "Output - DCDM", "Output 
> - P3-D60 ST2084
>    (1000 nits)", "Output - P3-D60 ST2084 (2000 nits)", "Output - P3-D60 
> ST2084 (4000 nits)", "Output - Rec.2020 ST2084 (1000 nits)", "Output - 
> P3-D60", "Output - P3-DCI", "Output - Rec.2020", "Output - Rec.709", "Output 
> - Rec.709 (D60 sim.)",
>    "Output - sRGB", "Output - sRGB (D60 sim.)", "Utility - LMT Shaper", 
> "Utility - Log2 48 nits Shaper", "Utility - Log2 48 nits Shaper - AP1", 
> "Utility - Log2 1000 nits Shaper", "Utility - Log2 1000 nits Shaper - AP1", 
> "Utility - Log2 2000 nits
>    Shaper", "Utility - Log2 2000 nits Shaper - AP1", "Utility - Log2 4000 
> nits Shaper", "Utility - Log2 4000 nits Shaper - AP1", "Utility - Dolby PQ 
> 10000", "Utility - Dolby PQ 48 nits Shaper", "Utility - Dolby PQ 48 nits 
> Shaper - AP1", "Utility
>    - Dolby PQ 1000 nits Shaper", "Utility - Dolby PQ 1000 nits Shaper - AP1", 
> "Utility - Dolby PQ 2000 nits Shaper", "Utility - Dolby PQ 2000 nits Shaper - 
> AP1", "Utility - Dolby PQ 4000 nits Shaper", "Utility - Dolby PQ 4000 nits 
> Shaper - AP1",
>    "Utility - Curve - Rec.1886", "Utility - Curve - Rec.2020", "Utility - 
> Curve - Rec.709", "Utility - Curve - sRGB", "Utility - Linear - Adobe RGB", 
> "Utility - Linear - Adobe Wide Gamut RGB", "Utility - Linear - P3-D60", 
> "Utility - Linear -
>    P3-D65", "Utility - Linear - P3-DCI", "Utility - Linear - RIMM ROMM 
> (ProPhoto)", "Utility - Linear - Rec.2020", "Utility - Linear - Rec.709", 
> "Utility - Linear - sRGB", "Utility - Rec.2020 - Camera", "Utility - Rec.2020 
> - Display", "Utility -
>    Rec.709 - Camera", "Utility - Rec.709 - Display", "Utility - XYZ - D60", 
> "Utility - sRGB - Texture", "Utility - Raw", "Utility - Look - ACES 1.0 to 
> 0.1 emulation", "Utility - Look - ACES 1.0 to 0.2 emulation", "Utility - Look 
> - ACES 1.0 to
>    0.7 emulation", "Role - reference", "Role - compositing_linear", "Role - 
> compositing_log", "Role - rendering", "Role - scene_linear", "Role - 
> texture_paint", "Role - default", "Role - data", "Role - matte_paint", "Role 
> - color_picking", "Role
>    - color_timing", "lin_ap0", "aces", "acescc", "acescc_ap1", "acescct", 
> "acescct_ap1", "acesproxy", "acesproxy_ap1", "acescg", "lin_ap1", "adx10", 
> "adx16", "logc3ei160_alexawide", "logc3ei200_alexawide", 
> "logc3ei250_alexawide",
>    "logc3ei320_alexawide", "logc3ei400_alexawide", "logc3ei500_alexawide", 
> "logc3ei640_alexawide", "logc3ei800_alexawide", "logc3ei1000_alexawide", 
> "logc3ei1280_alexawide", "logc3ei1600_alexawide", "logc3ei2000_alexawide",
>    "logc3ei2560_alexawide", "logc3ei3200_alexawide", "crv_logc3ei800", 
> "lin_alexawide", "canonlog_rec709day", "canonlog_rec709tung", 
> "canonlog_dcip3day", "canonlog_dcip3tung", "canonlog_cgamutday", 
> "canonlog_cgamuttung", "canonlog_rec2020day",
>    "canonlog_rec2020tung", "canonlog2_rec2020day", "canonlog2_rec2020tung", 
> "canonlog2_cgamutday", "canonlog2_cgamuttung", "canonlog3_rec2020day", 
> "canonlog3_rec2020tung", "canonlog3_cgamutday", "canonlog3_cgamuttung", 
> "crv_canonlog",
>    "crv_canonlog2", "crv_canonlog3", "lin_canonrec709day", 
> "lin_canonrec709tung", "lin_canondcip3day", "lin_canondcip3tung", 
> "lin_canoncgamutday", "lin_canoncgamuttung", "lin_canonrec2020day", 
> "lin_canonrec2020tung",
>    "protuneflat_protunegamutexp", "crv_protuneflat", "lin_protunegamutexp", 
> "vlog_vgamut", "crv_vlog", "lin_vgamut", "rlf_dgn", "rlf_dgn2", "rlf_rc", 
> "rlf_rc2", "rlf_rc3", "rlf_rc4", "rl3g10_rwg", "crv_rlf", "crv_rl3g10", 
> "lin_dgn", "lin_dgn2",
>    "lin_rc", "lin_rc2", "lin_rc3", "lin_rc4", "lin_rwg", "slog1_sgamut", 
> "slog2_sgamut", "slog2_sgamutday", "slog2_sgamuttung", "slog3_sgamutcine", 
> "slog3_sgamut3", "crv_slog1", "crv_slog2", "crv_slog3", "lin_sgamut", 
> "lin_sgamutday",
>    "lin_sgamuttung", "lin_sgamut3cine", "lin_sgamut3", "out_dcdmp3gamutclip", 
> "out_dcdm", "out_p3d60st20841000nits", "out_p3d60st20842000nits", 
> "out_p3d60st20844000nits", "out_rec2020st20841000nits", "out_p3d60", 
> "out_p3dci", "out_rec2020",
>    "out_rec709", "out_rec709d60sim", "out_srgb", "out_srgbd60sim", 
> "crv_lmtshaper", "crv_log248nitsshaper", "log248nitsshaper_ap1", 
> "crv_log21000nitsshaper", "log21000nitsshaper_ap1", "crv_log22000nitsshaper", 
> "log22000nitsshaper_ap1",
>    "crv_log24000nitsshaper", "log24000nitsshaper_ap1", "crv_dolbypq_10000", 
> "crv_dolbypq48nitsshaper", "dolbypq48nitsshaper_ap1", 
> "crv_dolbypq1000nitsshaper", "dolbypq1000nitsshaper_ap1", 
> "crv_dolbypq2000nitsshaper", "dolbypq2000nitsshaper_ap1",
>    "crv_dolbypq4000nitsshaper", "dolbypq4000nitsshaper_ap1", "crv_rec1886", 
> "crv_rec2020", "crv_rec709", "crv_srgb", "lin_adobergb", 
> "lin_adobewidegamutrgb", "lin_p3d60", "lin_p3d65", "lin_p3dci", 
> "lin_prophoto", "lin_rimm", "lin_rec2020",
>    "lin_rec709", "lin_srgb", "rec2020_camera", "rec2020_display", 
> "rec709_camera", "rec709_display", "lin_xyz_d60", "srgb_texture", "raw", 
> "look_aces10to01emulation", "look_aces10to02emulation", 
> "look_aces10to07emulation", "role_reference",
>    "role_compositing_linear", "role_compositing_log", "role_rendering", 
> "role_scene_linear", "role_texture_paint", "role_default", "role_data", 
> "role_matte_paint", "role_color_picking", "role_color_timing"
> 
>> On 5 Jun 2020, at 02:26, Larry Gritz <l...@larrygritz.com> wrote:
>> 
>> Looks like you clipped just AFTER what we need. 
>> 
>> Right above "known displays", you will see "known color spaces."
>> For example, mine says:
>> 
>> Color configuration: /Users/lg/.ocio-configs/nuke-default/config.ocio
>> Known color spaces: "linear", "sRGB", "sRGBf", "rec709", "Cineon",
>>    "Gamma1.8", "Gamma2.2", "Panalog", "REDLog", "ViperLog", "AlexaV3LogC",
>>    "PLogLin", "SLog", "raw"
>> Known displays: "default"* (views: "None", "sRGB"*, "rec709") (* =
>>    default)
>> 
>> 
>> 
>>> On Jun 4, 2020, at 5:18 PM, spo...@toxixox.com wrote:
>>> 
>>> well that does not work for me, I think I should check the OCIO config
>>> Thanks for your help !
>>> 
>>> 
>>> $ oiiotool input.exr --colorconvert acescg sRGB -o output.jpg
>>> oiiotool ERROR: colorconvert : Could not find colorspace 'sRGB’.
>>> 
>>> 
>>> $ oiiotool —help
>>> (…)
>>> Known displays: "ACES"* (views: "sRGB"*, "DCDM", "DCDM P3 gamut clip", 
>>> "P3-D60", "P3-D60 ST2084 1000 nits", "P3-D60 ST2084 2000 nits", "P3-D60
>>>   ST2084 4000 nits", "P3-DCI", "Rec.2020", "Rec.2020 ST2084 1000 nits", 
>>> "Rec.709", "Rec.709 D60 sim.", "sRGB D60 sim.", "Raw", "Log") (* = default)
>>> 
>>> 
>>> 
>>> 
>>>> On 5 Jun 2020, at 02:07, Larry Gritz <l...@larrygritz.com> wrote:
>>>> 
>>>> I think it's simpler than that.
>>>> 
>>>> oiiotool --help
>>>> 
>>>> should (near the bottom) list all the color spaces that your OCIO config 
>>>> knows about. Let's say, for the sake of argument, that you see colorspaces 
>>>> named "acescg" and "sRGB". Then you just need to
>>>> 
>>>> oiiotool input.exr --colorconvert acescg sRGB -o output.jpg
>>>> 
>>>> 
>>>> 
>>>>> On Jun 4, 2020, at 4:34 PM, spo...@toxixox.com wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I’m trying to use oiiotool for a simple conversion from  EXR - ACEScg to 
>>>>> JPEG - sRGB. 
>>>>> Looks simple but I couldn’t find any example in the oiio doc or online 
>>>>> and I’m a bit confused with the syntax and the quotes
>>>>> 
>>>>> Does this look correct ?
>>>>> 
>>>>> oiiotool -i input.exr --iscolorspace "ACES - ACEScg" --tocolorspace 
>>>>> "lin_sRGB" --colorconvert linear sRGB -o output.jpg
>>>>> 
>>>>> thanks,
>>>>> 
>>>>> Kev.
>>>>> _______________________________________________
>>>>> Oiio-dev mailing list
>>>>> Oiio-dev@lists.openimageio.org
>>>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>>> 
>>>> --
>>>> Larry Gritz
>>>> l...@larrygritz.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Oiio-dev mailing list
>>>> Oiio-dev@lists.openimageio.org
>>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>> 
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> Oiio-dev@lists.openimageio.org
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>> 
>> --
>> Larry Gritz
>> l...@larrygritz.com
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Oiio-dev mailing list
>> Oiio-dev@lists.openimageio.org
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
> 
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to