Compress Video Via API

Build automated image and video editing workflows and applications with Shotstack.

GET STARTED FOR FREE Example

The internet's most advanced image and video editing API

Shotstack is the most user friendly, powerful and reliable infrastructure solution to programmatially compress video.

GET STARTED FOR FREE

The only thing you need is some JSON

{
"timeline": {
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb59hr-40pm-1t1j-xkqm-1uooql4lmrbi/source.m4v",
"trim": 2
},
"start": 0,
"offset": {
"x": 0,
"y": 0
},
"position": "center",
"length": 6
}
]
}
]
},
"output": {
"size": {
"width": 1280,
"height": 720
},
"format": "mp4",
"quality": "low"
}
}

Tutorials & Resources

Learn how to programmatially compress video via API

Demo's & Code Examples

Programmatially Compress video by using demo code

Compress Video
Compress Video

Video file compressor reduces the file size of a video by reducing it's resolution, frames-per-second (fps) and compression settings

Go to demo

Christmas Personalised Video
Christmas Personalised Video

Create a personalised video with a Christmas message using the Shotstack API. Merge text and video from a form to generate a video

Go to demo

Watermark Video
Watermark Video

Add a watermark to a video using the Shotstack API. This free demo lets you upload a video and add a watermark

Go to demo