How to generate video thumbnail from specific time index
Hello! I'm trying to generate a video thumbnail jpg from a specific time index as an eager transformation for each video I upload to cloudinary. I searched the docs, but I can't seem to find what I'm looking for. Any help would be much appreciated!
Thanks
Answers
-
Hi there,
Thanks for reaching out. To generate a video thumbnail from a specific time index, you can use the `start_offset` parameter when requesting the thumbnail. The `start_offset` parameter allows you to specify the time in seconds from where the thumbnail should be extracted. Here's an example:
Original video: https://res.cloudinary.com/demo/video/upload/dog.mp4
Thumbnail from the 10th second (note that I also changed the format to jpg): https://res.cloudinary.com/demo/video/upload/so_10/dog.jpg
You can get code samples and read more here. Hope this helps, please let me know if you have any questions :)
Best regards,
Tamara
0 -
Thank you!
0