Android: Is it possible to display video thumbnails?

android video thumbnail from url
android get video thumbnail from uri
how to get thumbnail from video url in android using glide
get thumbnail from video url android github
how to get thumbnail from server video url in android
how to set thumbnail in videoview in android
createvideothumbnail deprecated
how to get thumbnail of audio in android

I created a video recording application with library dialog. The library dialog displays the list of recorded videos where each item consists of icon, video title, tags and location information the following way:

Does anyone know whether it is possible to replace icons with video thumbnails (single frame preview)?


If you are using API 2.0 or newer this will work.

int id = **"The Video's ID"**
ImageView iv = (ImageView ) convertView.findViewById(;
ContentResolver crThumb = getContentResolver();
BitmapFactory.Options options=new BitmapFactory.Options();
options.inSampleSize = 1;
Bitmap curThumb = MediaStore.Video.Thumbnails.getThumbnail(crThumb, id, MediaStore.Video.Thumbnails.MICRO_KIND, options);

BlobHandle · BlobStoreManager · BlobStoreManager.Session. Overview. Classes. JobInfo · JobInfo.Builder · JobInfo.TriggerContentUri  I need to display thumbnail of each video in list view using Picasso library for running faster so i need get thumbnail path to use. This is my code to get thumbnail path(I found it on Google and i

if you don't or cannot go through cursor and if you have only paths or File objects, you can use since API level 8 (2.2) public static Bitmap createVideoThumbnail (String filePath, int kind)

Android documentation

The following code runs perfectly:

Bitmap bMap = ThumbnailUtils.createVideoThumbnail(file.getAbsolutePath(), MediaStore.Video.Thumbnails.MICRO_KIND);

Display Video thumbnail in ListView. In this exercise, the path of video sources are hard-coded in a String[]. A ListView with  Thumbnails are stored in the cache folder in phone memory so that the phone is not necessary to look for the original one each time you open in Photo Gallery. With low phone memory, you will get a blank screen if you clicked on the thumbnail. Method 1: How to Fix No Thumbnails Displayed in Android Gallery

Using the class:

import android.provider.MediaStore.Video.Thumbnails;

We can get two preview thumbnail sizes from the video:

Thumbnails.MICRO_KIND for 96 x 96
Thumbnails.MINI_KIND for 512 x 384 px

This is a code example:

String filePath = "/sdcard/DCIM/Camera/my_video.mp4"; //change the location of your file!

ImageView imageview_mini = (ImageView)findViewById(;
ImageView imageview_micro = (ImageView)findViewById(;

Bitmap bmThumbnail;

//MICRO_KIND, size: 96 x 96 thumbnail
bmThumbnail = ThumbnailUtils.createVideoThumbnail(filePath, Thumbnails.MICRO_KIND);

// MINI_KIND, size: 512 x 384 thumbnail 
bmThumbnail = ThumbnailUtils.createVideoThumbnail(filePath, Thumbnails.MINI_KIND);

I am streaming a video from server link , is it possible for me to generate a video thumbnail from the URL Android: Is it possible to display video thumbnails? Using the class: import android.provider.MediaStore.Video.Thumbnails; We can get two preview thumbnail sizes from the video: Thumbnails.MICRO_KIND for 96 x 96 Thumbnails.MINI_KIND for 512 x 384 px

Currently I Use following code :

Bitmap bMap = ThumbnailUtils.createVideoThumbnail(file.getAbsolutePath(), MediaStore.Video.Thumbnails.MICRO_KIND);

But I found better solution with Glide library with following code ( It also cache your image and have better performance than previous approach )


Glide — Displaying Gifs & Video Thumbnails. by Norman Peitek on October 22 2015 , tagged Duration: 5:12 Posted: 22 Oct 2015 utilisant la classe: import android.provider.MediaStore.Video.Thumbnails; nous pouvons obtenir deux tailles de vignettes preview de la vidéo:

I really suggest you to use the Glide library. It's among the most efficient way to generate and display a video thumbnail for a local video file.

Just add this line to your gradle file :

compile 'com.github.bumptech.glide:glide:3.7.0'

And it will become as simple as :

String filePath = "/storage/emulated/0/Pictures/example_video.mp4";

    .with( context )
    .load( Uri.fromFile( new File( filePath ) ) )
    .into( imageViewGifAsBitmap );

You can find more informations here :

Cheers !

The official YouTube Studio app makes it faster and easier to manage your YouTube channels on the go. Check out your latest stats, respond to comments,  It is possible to get the video thumbnail by using the id of that video in youtube. By using the id of the corresponding youtube video it is possible to display the thumbnail of that video where ever we want. You can copy the url of the youtube video from the address bar of your browser For example :

This content is likely not relevant anymore. seemed to refer to problems with a youtube app, which I assume meant for android or ios, not the web service. The thumbnails under "Suggested" are all showing, but below that, there's Yes, all of the thumbnails show in my Subscriptions page but more and  If you install a third party Screenshot app on Android OS, you need to check the screenshot location in the Settings. Why we need a thumbnails folder As the name suggestions, in this folder you can find thumbnails - smaller versions of pictures and downloaded images, for example, contact photos from Whatsapp or Skype.

Gallery view lets you see thumbnail displays of participants, in a grid pattern, which Click Settings, and then click Video to display the video settings page. The Zoom mobile app on Android and iOS supports active speaker or gallery view. Gallery view lets you see thumbnail displays of participants, in a grid pattern, which expands and contracts as participants join and leave the meeting. Depending on your CPU, you can display up to 49 participants in a single screen of the gallery view. If more than 49 attendees are in the meeting, 49 thumbnails are displayed on each page. view

Get Thumbnail Video from URL Android” is published by Mujjtahidah. the App Store', and if clicked it · A button that says 'Get it on, Google Play', and if clicked. Mobile High-Definition Link (MHL), was the first real standard put in place for connecting an Android device to a television. It uses your phone’s built-in USB port, along with a specific cable that essentially converts the display output into a TV-readable format on the other end. In other words: it’s a USB to HDMI cable.