Hello,
Does anyone know if it’s possible to use the probing assets end point to retrieve a thumbnail of a video that is saved on a third party server?
I have the URL of the video, I want to generate a thumbnail for it without having to do a bunch of other processes to have it saved on SS.
Thank you
Paul
You can output an image instead of a video if that works, something like this:
{
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/cat.hd.mp4",
"trim": 3
},
"start": 0,
"length": 1
}
]
}
]
},
"output": {
"format": "jpg",
"resolution": "preview"
}
}
That will output a jpg file (format: jpg) from a video clip at the 3rd second (trim: 3). The start should be set to 0 and length anything, but set it to 1.
The resolution is set to preview
but you could also use size to create a custom size, like this:
{
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/cat.hd.mp4",
"trim": 3
},
"start": 0,
"length": 1
}
]
}
]
},
"output": {
"format": "jpg",
"size": {
"width": 400,
"height": 240
}
}
}
1 Like
That’s awesome thank you for your help!
1 Like