Skip to content

Video Resolution

Video Resolution at Zustack.

Learn how to get the resolution of a video file before uploading it to Zustack.

This can be helpful to validate resolution requirements.


Before you begin, make sure you have:

  • A bucket created
  • A JWT signed with your API Key with the scope claim set to write.

ParameterTypeDescription
bucketIDstringThe ID of the bucket
filefileA video file or chunk (video/*) to analyze

First, set your environment variables:

Terminal window
export JWT=your_jwt_token
export BUCKET_ID=your_bucket_id
export PATH_TO_FILE=@/path/to/some-video.mp4

Then make the request using curl:

Terminal window
curl -X POST "https://zustack.com/files/resolution/video/${BUCKET_ID}" \
-H "Authorization: Bearer ${JWT}" \
-H "Content-Type: multipart/form-data" \
-F "file=${PATH_TO_FILE}"

FieldTypeDescription
resolutionstringThe resolution of the provided video file
{
"resolution": "1920x1080"
}