Filters
Hybrik supports a wide variety of video filters. In addition to the ones that are built into the system, you can also use any FFmpeg-based filter as well. Video filters are applied inside the video object. The video filters are applied as an array, since you can apply more than one filter. Remember that filter order can affect the result of video filters.
Name | Type | Description |
---|---|---|
kind | enum print_timecode print_subtitle crop gaussian_blur text_overlay image_overlay video_overlay telecine deinterlace fade color_convert ffmpeg | Specifies the type of filter being applied. default: ffmpeg |
options | object | The filter options. |
include_conditions | array | Specifies conditions under which this filter will be applied. Can use Javascript math.js nomenclature |
overrides | object | Object defining parameters to be overrideen in the filter. |
payload | anyOf print_timecode print_subtitle crop ffmpeg gaussian_blur text_overlay image_overlay video_overlay telecine deinterlace fade color_convert | The payload of the video filter. |
Example filters
{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_output.mp4",
"existing_files": "replace",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"bitrate_mode": "vbr",
"bitrate_kb": 1800,
"max_bitrate_kb": 2000,
"height": 720,
"filters": [
{
"kind": "crop",
"payload": {
"top": 20,
"bottom": 20
}
},
{
"kind": "print_timecode",
"payload": {
"x": "(w-tw)/2",
"y": "h/4",
"font_size": 20,
"source_timecode_selector": "gop"
}
},
]
},
"audio": [
{
"codec": "aac_lc",
"channels": 2,
"bitrate_kb": 96
}
]
}
]
}
}