B
B
Bowen2014-06-18 16:26:36
YouTube
Bowen, 2014-06-18 16:26:36

How to get thumbnails from youtube video?

Hey!
There is a video player in which I want to display thumbnails from some YouTube video.

preview: 
{ 
sprites: ['тут ссылка на миниатюры'],
height: 112,
width: 200
}

YouTube gives thumbnails like this:
http://img.youtube.com/vi/T4fsTr2_2r8/default.jpg
http://img.youtube.com/vi/T4fsTr2_2r8/hqdefault.jpg
http://img.youtube.com/vi/T4fsTr2_2r8/mqdefault.jpg
http://img.youtube.com/vi/T4fsTr2_2r8/sddefault.jpg
http://img.youtube.com/vi/T4fsTr2_2r8/maxresdefault.jpg

T4fsTr2_2r8 - YouTube video ID, first hit.
How to get all thumbnails from a YouTube video? As indicated in the picture below.
bf024c18910248cf92d7ee01c59332d1.jpg

Answer the question

In order to leave comments, you need to log in

5 answer(s)
N
Nikola Tesla, 2020-04-25
@nikolatesla1988

Why don't you just use this service to download YouTube cover art ? Here you can download all the sizes of the miniatures you need!
1. copy and paste the link to the video
2. start downloading pictures
3. save the images to your computer or phone
5ea3fea25a6cd106410703.jpeg

I
Ivan Somov, 2014-06-18
@jsom

glue with the help of some kind, curled from what you write on. yes cap). but the question is vague

R
Ruslan, 2014-06-18
@rOOse

At least they would write where it is needed, what language?

B
Bowen, 2014-06-18
@Bowen

It is necessary to write a code in some language that extracts all the pictures from the video one by one, as I indicated in the picture above. The question is what language?

A
All by Video, 2019-12-22
@allbyvideo

Do not rack your brains, use ready-made services. For example - https://allbyvideo.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question