Skip to main content

Color_convert

NameTypeDescription
fromobjectThe color description for the source.
toobjectThe color description for the target.
nominal_peak_luminancenumberThe nominal peak luminance to be used during color format conversion.
presetenum                          
hdr_hlg_to_sdr
hdr_hlg_to_sdr_desat_mild
hdr_hlg_to_sdr_desat_medium
hdr_pq_to_sdr
hdr_pq_to_sdr_desat_mild
hdr_pq_to_sdr_desat_medium
sdr_to_hdr_pq_200nit
sdr_to_hdr_pq_300nit
Common presets used for converting between color spaces.
lut_fileobjectThe LUT file to be used during the color conversion.

Example color_convert

{
"uid": "transcode_media",
"kind": "transcode",
"payload": {
"location": {
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"filters": [
{
"kind": "color_convert",
"payload": {
"from": {
"ire_range_mode": "full",
"color_primaries": "bt2020",
"color_trc": "hlg",
"color_matrix": "bt2020c"
},
"to": {
"ire_range_mode": "limited",
"color_primaries": "bt709",
"color_trc": "gamma28",
"color_matrix": "bt709"
},
"nominal_peak_luminance": 1000
}
}
]
},
"audio": [
{
}
]
}
]
}
}