Remove Black Borders

Automatically detect and crop black borders around a video while preserving the original audio track.

Create Task

Basic Information

ItemValue
Request MethodPOST
Request Path/task/video_blackborder_remove
Content-Typeapplication/json
AuthenticationRaw API key in the Authorization header

Request Body

ParameterTypeRequiredDefaultDescription
file_idstringYes-Uploaded video file ID

Request Example

curl -X POST https://api.ai-mcn.tv:10000/task/video_blackborder_remove \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id": "537489015178246"}'

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "task_type": "video_blackborder_remove",
    "status": "queued"
  }
}

Query Task Result

Basic Information

ItemValue
Request MethodGET
Request Path/task/video_blackborder_remove/{task_id}
AuthenticationRaw API key in the Authorization header

Output Result (output_result)

ParameterTypeDescription
file_idstringProcessed video file ID
original_sizestringOriginal video size
cropped_sizestringCropped video size
removed_borders.topnumberCropped pixels from the top
removed_borders.bottomnumberCropped pixels from the bottom
removed_borders.leftnumberCropped pixels from the left
removed_borders.rightnumberCropped pixels from the right

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "status": "completed",
    "progress": 100,
    "output_result": {
      "file_id": "537489015178248",
      "original_size": "1920x1080",
      "cropped_size": "1920x1050",
      "removed_borders": {
        "top": 15,
        "bottom": 15,
        "left": 0,
        "right": 0
      }
    },
    "create_time": "2026-04-05T08:00:00Z",
    "update_time": "2026-04-05T08:00:30Z"
  }
}

Error Codes

Error CodeHTTP StatusDescriptionResolution
6013400Missing file_idPass the file_id field
6014400File type does not match the taskUpload a video file
6004404File not foundVerify the file_id
6502401Authentication failedCheck the Authorization header
6202402Insufficient balanceRecharge in the Dashboard