Color_convert
| Name | Type | Description |
|---|---|---|
| from | object | The color description for the source. |
| to | object | The color description for the target. |
| nominal_peak_luminance | number | The nominal peak luminance to be used during color format conversion. |
| preset | enum hdr_hlg_to_sdrhdr_hlg_to_sdr_desat_mildhdr_hlg_to_sdr_desat_mediumhdr_pq_to_sdrhdr_pq_to_sdr_desat_mildhdr_pq_to_sdr_desat_mediumsdr_to_hdr_pq_200nitsdr_to_hdr_pq_300nit | Common presets used for converting between color spaces. |
| lut_file | object | The 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": [
{
}
]
}
]
}
}