code: public static Observable<Bitmap> getVideoThumbnailFromPathWithKind(final String path,
        final int kind) {
      return Observable.defer(new Func0<Observable<Bitmap>>() {
        @Override
        public Observable<Bitmap> call() {
          return Observable.just(ThumbnailUtils.createVideoThumbnail(path, kind));
        }
      });
    }
docs: /*
  Get video thumbnail from a video file, by path, with the selected kind.
  Kind is a value of MediaStore.Images.Thumbnails.MICRO_KIND or MediaStore.Images.Thumbnails.MINI_KIND