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.