{
"timeline": {
"soundtrack": {
"src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/music/unminus/berlin.mp3"
},
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "title",
"text": "Crop Example",
"style": "minimal",
"size": "small",
"position": "top"
},
"start": 0,
"length": 4,
"transition": {
"in": "fade",
"out": "fade"
}
}
]
},
{
"clips": [
{
"asset": {
"type": "image",
"src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/images/wave-barrel.jpg",
"crop": {
"top": 0.5,
"bottom": 0,
"left": 0,
"right": 0
}
},
"start": 0,
"length": 4,
"effect": "zoomIn"
},
{
"asset": {
"type": "video",
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/cat.hd.mp4",
"crop": {
"top": 0,
"bottom": 0,
"left": 0.5,
"right": 0
}
},
"start": 4,
"length": 4
}
]
}
]
},
"output": {
"format": "mp4",
"resolution": "hd"
}
}
Basic cropping example, crops the top and sides off assets from top and left.
New to Shotstack? Sign up to use this template and start automatically generating videos.
Test and modify this template directly in Postman by forking our public Collection.
Customize the template and integrate it in to your application or workflow using the programming language of your choice.
Use this template as the starting point for integration with our SDKs. Port the JSON to PHP, Node or Ruby and integrate in to your code base.