Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get thumbnail image of video from video url

Tags:

android

Is it possible to get the thumbnail image from a video Url? I need to thumbnails of videos in a list view.

like image 902
QBLive Avatar asked Dec 14 '10 08:12

QBLive


People also ask

What is YouTube thumbnail URL?

The default thumbnail image (i.e., one of 1.jpg , 2.jpg , 3.jpg ) is: https://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg. For the high quality version of the thumbnail use a URL similar to this: https://img.youtube.com/vi/<insert-youtube-video-id-here>/hqdefault.jpg.


1 Answers

If you are specifically asking about youtube videos then there are automatically 4 generated images by Youtube.

http://img.youtube.com/vi/video_url_here/0.jpg
http://img.youtube.com/vi/video_url_here/1.jpg
http://img.youtube.com/vi/video_url_here/2.jpg
http://img.youtube.com/vi/video_url_here/3.jpg

Standard Image sizes

Player Background Thumbnail (480x360 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/0.jpg

Start Thumbnail (120x90 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/1.jpg

Middle Thumbnail (120x90 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/2.jpg

End Thumbnail (120x90 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/3.jpg

High Quality Thumbnail (480x360 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/hqdefault.jpg

Medium Quality Thumbnail (320x180 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/mqdefault.jpg

Normal Quality Thumbnail (120x90 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/default.jpg

Standard Definition Thumbnail (640x480 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/sddefault.jpg

Maximum Resolution Thumbnail (1920x1080 pixels) http://i1.ytimg.com/vi/G0wGs3useV8/maxresdefault.jpg

like image 189
Murtaza Khursheed Hussain Avatar answered Sep 27 '22 20:09

Murtaza Khursheed Hussain