Crop
Name | Type | Description |
---|---|---|
left | number string | Number of pixels to crop from left. If '%' is appended, percentage of video width. "auto" uses the value reported from an up-stream black_borders analyzer task. |
right | number string | Number of pixels to crop from right. If '%' is appended, percentage of video width. "auto" uses the value reported from an up-stream black_borders analyzer task. |
top | number string | Number of pixels to crop from top. If '%' is appended, percentage of video height. "auto" uses the value reported from an up-stream black_borders analyzer task. |
bottom | number string | Number of pixels to crop from bottom. If '%' is appended, percentage of video height. "auto" uses the value reported from an up-stream black_borders analyzer task. |
use_source_dimensions | boolean | The default behavior for cropping is to use the output target dimensions. The source dimensions may be used by setting this flag. |
Example crop
{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"filters": [
{
"kind": "crop",
"payload": {
"top": 20,
"bottom": 20,
"use_source_dimensions": true
}
}
]
},
"audio": [
]
}
]
}
}