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.
Prerequisites
Section titled “Prerequisites”Before you begin, make sure you have:
- A bucket created
- A JWT signed with your API Key with the scope claim set to write.
Video Resolution Request
Section titled “Video Resolution Request”Form Data Parameters
Section titled “Form Data Parameters”| Parameter | Type | Description |
|---|---|---|
bucketID | string | The ID of the bucket |
file | file | A video file or chunk (video/*) to analyze |
Example Request
Section titled “Example Request”First, set your environment variables:
export JWT=your_jwt_tokenexport BUCKET_ID=your_bucket_idexport PATH_TO_FILE=@/path/to/some-video.mp4Then make the request using curl:
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}"Response
Section titled “Response”Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
resolution | string | The resolution of the provided video file |
Example Response
Section titled “Example Response”{ "resolution": "1920x1080"}