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

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.

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

Hi Neil

is any update for us on above topic

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

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