# Thumbnail image preview is not working for small video ( runtime of 1 minute). vtt file using wrong sprite file name

**URL:** <https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135>\
**Category:** Support\
**Tags:** bitmovin-encoding, bitmovin, web\
**Created:** [July 23, 2024, 10:30am UTC](https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135 "2024-07-23T10:30:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinayak.baye](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@vinayak.baye](https://community.bitmovin.com/u/vinayak.baye)\
**Post date:** [July 23, 2024, 10:30am UTC](https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135/1 "2024-07-23T10:30:52Z")

</div>

### Product

Encoding - VOD

### Question

I am facing a issue while generating a thumbnail image for small video.  
I am using below code for thumbnail generation.

private Task CreateThumbnailImage(Bitmovin.Api.Sdk.Models.Encoding encoding, Stream stream, Output output, string outputPath)  
{

```
        var sprite = new Sprite()
        {
            AspectMode = ThumbnailAspectMode.STRETCH,
            Name = "Thumbnail images",
            Unit = SpriteUnit.SECONDS,
            Outputs = new List<EncodingOutput>() { BuildEncodingOutput(output, "thumbnail") },
            Height = 100,
            Width = 100,
            ImagesPerFile = 10,
            CreationMode = SpriteCreationMode.INTERVAL_START,
            Distance = 10,
            SpriteName = "thumb.png",
            Filename = "thubnailsprite.png",
            VttName = "thumbnail.vtt",
            Description = "This method will create a vtt file"

        };

        return _bitmovinApi.Encoding.Encodings.Streams.Sprites.CreateAsync(encoding.Id, stream.Id, sprite);

    }

```

Its not working for small video means where video runtime is 1 minute.

Sprite file name is thumb.png but in vtt file its using thumb-0.png please see below code snippet.

00:00:00.000 → 00:00:10.000  
thumb-0.png#xywh=0,0,100,100

We need urgent help on this. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Neil](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/neil/32/118_2.png) [@Neil](https://community.bitmovin.com/u/Neil)\
**Post date:** [July 23, 2024, 2:05pm UTC](https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135/2 "2024-07-23T14:05:10Z")

</div>

Thanks a lot for raising this, Vinayek.  
I’ll look into this further and get back to you.

---

<div class="post-metadata">

**Author:** ![vinayak.baye](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@vinayak.baye](https://community.bitmovin.com/u/vinayak.baye)\
**Post date:** [August 5, 2024, 5:42am UTC](https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135/3 "2024-08-05T05:42:05Z")

</div>

Hi Neil

is any update for us on above topic

---

<div class="post-metadata">

**Author:** ![Neil](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/neil/32/118_2.png) [@Neil](https://community.bitmovin.com/u/Neil)\
**Post date:** [August 5, 2024, 12:33pm UTC](https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135/4 "2024-08-05T12:33:21Z")

</div>

Hi @vinayak.baye  
I created an internal engineering ticket for this issue. It will be picked up for an upcoming sprint but I can’t give you an ETA at this time.

Please keep an eye on our release notes at [Encoder](https://developer.bitmovin.com/encoding/docs/encoder-release-notes)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [November 27, 2024, 10:04am UTC](https://community.bitmovin.com/t/thumbnail-image-preview-is-not-working-for-small-video-runtime-of-1-minute-vtt-file-using-wrong-sprite-file-name/3135/5 "2024-11-27T10:04:24Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
