Youtube API - capture a screenshot at a specific time

I want to create a high definition screenshot of a youtube video at a specific time. Let's say I have a Youtube video ID (ctiJc4yEVow) and I need a screenshot that appears at 1:32. Is there a simple and straightforward way to do this? I read a way to use ffmpeg and some miscellaneous sloppy code, but nothing reliable.

The only thing I saw was how to create an image for the video, non-specific at any time.

https://i1.ytimg.com/vi/ /default.jpg

My problem is that I need a certain amount of time. Please, help!

+3


source to share


1 answer


I don't see any way to do this in the official API. Their Video: List and Thumbnails pages offer no way to do this.



However, you can reference the time you want and then the screenshot. This works best when you turn off YouTube autoplay. An example of a link to your post: youtube.com/watch?v=ctiJc4yEVow&t=1m32s

+2


source







All Articles