{"category":"video","endpoint":"https://setget.net/v1/tools/video-crop","examples":[{"input":{"height":120,"video":"sample.mp4","width":200,"x":60,"y":30},"title":"A rectangle"},{"input":{"aspect":"1:1","video":"sample.mp4"},"title":"A square from the middle"}],"input_schema":{"additionalProperties":false,"properties":{"aspect":{"description":"Instead of a width and height: keep the largest area of this shape from the middle.","enum":["16:9","9:16","1:1","4:3","3:4","4:5","21:9"],"type":"string"},"height":{"description":"Height of the area to keep, in pixels.","examples":[120],"maximum":3840,"minimum":2,"type":"integer"},"quality":{"default":"medium","description":"Picture quality of the result: high looks best, low makes the smallest file.","enum":["high","medium","low"],"type":"string"},"video":{"description":"The video to crop.","format":"setget-file","type":"string","x-accept":["video"]},"width":{"description":"Width of the area to keep, in pixels.","examples":[200],"maximum":3840,"minimum":2,"type":"integer"},"x":{"description":"Left edge of the area, in pixels from the left. Left empty, the area is centred.","examples":[60],"minimum":0,"type":"integer"},"y":{"description":"Top edge of the area, in pixels from the top. Left empty, the area is centred.","examples":[30],"minimum":0,"type":"integer"}},"required":["video"],"type":"object"},"keywords":["crop video","cut video frame","square video","vertical video","remove black bars","9:16","1:1","crop mp4","video aspect ratio"],"related":["video-resize","video-trim","video-rotate","image-crop"],"slug":"video-crop","summary":"Cut a video down to a rectangle, or to a shape such as 1:1 or 9:16 taken from the middle of the picture.","tier":"job","timeout_seconds":600,"title":"Crop a video","url":"https://setget.net/tools/video-crop"}
