Edit a video by searching the Pexels video library
This demo integrates with the Pexels API to search their video library. The application loops through the results and chooses the first 8 videos to include in the edit. A title and soundtrack are also prepared. Finally the edit is sent to the Shotstack API for rendering.
This demo is available as an open source project in the following languages:
These repos will allow you to see exactly how it works and adapt or re-use it as the starting point for your own cloud video editing application.
curl --request POST 'https://api.shotstack.io/v1/render' \
--header 'x-api-key: YOUR_API_KEY' \
--data-raw '{
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://shotstack-assets.s3.amazonaws.com/footage/beach-overhead.mp4"
},
"start": 0,
"length": "auto"
}
]
}
]
},
"output": {
"format": "mp4",
"size": {
"width": 1280,
"height": 720
}
}
}'
Video editing demo applications give you an idea of what Shotstack can do and source code to help you get started
Use Shotstack to automate the creation of real estate listing videos.
Use Shotstack to automate the creation of videos for your social media channels using generative AI.