POST
/
tools
/
video
/
process
from mixpeek import Mixpeek

# Initialize the Mixpeek client with your API key
mixpeek = Mixpeek("YOUR_API_KEY")

# Call the video processing tool
response = mixpeek.video.process(
    url="https://s3/video.mp4",
    frame_interval=5,
    resolution=[720, 1280],
    return_base64=True
)
[
  {
      "base64_string": "...",                
      "start_time": 0.0,
      "end_time": 1.0,
      "fps": 5.0,
      "duration": 41.8,
      "resolution": [
          768,
          432
      ],
      "size_kb": 69.93
  },
  ...
]

Split a video given it’s URL by specific characteristics.

Request

url
string
required

Remote url of the file to be processed

frame_interval
integer

Interval between frames to process in seconds

resolution
array

Resolution of the output frames as [height, width]

use_base64
boolean

Whether to return the frames in base64-encoded format. If false it will return a pre-signed S3 object url as file_url. If true it will return a base64_string.

from mixpeek import Mixpeek

# Initialize the Mixpeek client with your API key
mixpeek = Mixpeek("YOUR_API_KEY")

# Call the video processing tool
response = mixpeek.video.process(
    url="https://s3/video.mp4",
    frame_interval=5,
    resolution=[720, 1280],
    return_base64=True
)
[
  {
      "base64_string": "...",                
      "start_time": 0.0,
      "end_time": 1.0,
      "fps": 5.0,
      "duration": 41.8,
      "resolution": [
          768,
          432
      ],
      "size_kb": 69.93
  },
  ...
]