We're excited to announce that Shotstack is now integrated with Google Cloud Storage. This integration aims to provide a seamless file transfer experience with superior performance for your video editing needs. With Google Cloud Storage, you can conveniently host your data assets in the cloud and serve them using Google Cloud CDN.
To get started, follow these steps to ensure smooth integration:
Storage Object Creator
or Storage Object Admin
permissions to enable Shotstack to send files to your Google Cloud Storage account. Note: It's recommended to create a new Service Account solely for Shotstack's use, avoiding root or global permissions.For basic file transfer to Google Cloud Storage, make the following modifications to the output parameter of the render payload:
"destinations": [
{
"provider": "google-cloud-storage",
"options": {
"bucket": "my-gcp-bucket"
}
}
]
By implementing this configuration, the rendered files will be sent to the specified bucket (e.g., my-gcp-bucket
). Each file will be saved in the root level of the bucket, using the render ID as the filename with the respective extension (e.g., edc47d30-a504-4f16-8439-24c863a7a782.mp4
). Additionally, any thumbnail and poster images generated during the rendering process will also be transferred to the Google Cloud Storage bucket.
For advanced configuration and better file organisation within the Google Cloud Storage bucket, you can specify a custom filename and prefix:
"destinations": [
{
"provider": "google-cloud-storage",
"options": {
"prefix": "testing",
"filename": "video",
"bucket": "my-gcp-bucket"
}
}
]
Using this configuration, the rendered file will be saved as video.mp4
with the prefix testing
(acting as a virtual path within the Google Cloud Storage console), if it is an mp4 file.
If you prefer not to store your videos with Shotstack and instead solely use Google Cloud Storage, you can opt-out by adding the following to your destinations payload:
"destinations": [
{
"provider": "google-cloud-storage",
"options": {
"prefix": "testing",
"filename": "video",
"bucket": "my-gcp-bucket"
}
},{
"provider": "shotstack",
"exclude": true
}
]
This configuration ensures that your rendered files are not stored in Shotstack's storage, and they are directly sent to your specified Google Cloud Storage bucket.
Note: While you won't be using Shotstack's storage you will be using your bandwidth allowance.
Leveraging the integration between Shotstack and Google Cloud Storage, you can efficiently handle and store your video editing outputs. This secure and straightforward process enables you to manage your rendered files seamlessly within your own cloud storage infrastructure. Enjoy the benefits of a fast, efficient, and customisable solution for your video automation needs.
Sign up for your Shotstack account now.
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
}
}
}'