Color Grade Video
color_gradeApply a color grade to a video file using presets (noir, warm, cool, cinematic, vintage) or a custom ffmpeg filter, writing the result to a new output file.
Instructions
Apply a color grade to a video file and write the result to a new file. Provide either a built-in preset (noir, warm, cool, cinematic, vintage) or a custom ffmpeg -vf filter string (filter overrides preset). Re-encodes the video stream with the chosen codec; audio is stripped unless keep_audio is true. Prerequisite: ffmpeg installed. Side effect: overwrites output_path if it already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | CRF/CQ quality, 0-51. Lower is higher quality. Default 18. | |
| codec | No | Video encoder for the output. Default libx264. | libx264 |
| filter | No | Custom ffmpeg -vf filter string. Overrides preset when both are given. | |
| preset | No | Built-in color grade preset | |
| input_path | Yes | Input video file path. Must exist. | |
| keep_audio | No | Stream-copy the input audio track instead of stripping it. Default false (audio stripped). | |
| output_path | Yes | Output video file path. Overwritten if it already exists. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | Yes | CRF/CQ quality value applied | |
| codec | Yes | Encoder used for the output | |
| filter | Yes | Custom filter applied, or null when a preset was used | |
| preset | Yes | Preset applied, or null when a custom filter was used | |
| audioKept | Yes | True when the input audio track was stream-copied into the output | |
| inputPath | Yes | Absolute input file path | |
| outputPath | Yes | Absolute output file path |