How to get the best thumbnail from the video in Azure Media services?

Jiayu Lou 20 Reputation points Microsoft Employee
2023-03-10T08:44:54.33+00:00

Hi, from this document

https://video2.skills-academy.com/en-us/dotnet/api/microsoft.azure.management.media.models.image.start?view=azure-dotnet#microsoft-azure-management-media-models-image-start

The default value is macro {Best}, which means the encoder will select the best thumbnail from the first few seconds of the video. I wonder what's the algorithm behind it.

Thanks in advance!

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
313 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 15,786 Reputation points Microsoft Employee
    2023-03-10T17:38:17.82+00:00

    @Jiayu Lou We understand you wish to see how the macro {Best} attribute works to select the thumbnail. Please see the below response from the product group:

    The algorithm to pick the {Best} thumbnail is quite complicated. Basically, it analyzes the histograms of those frames in range and then picks the closest frame to the center of the histogram clustering. As an intuitive example, if there are 101 frames in total and 51 of them are black images while 50 are white images, this algorithm will pick a black image because the histogram of a black image is the closest to the center of all black and white images. In other words, it represents the majority of those 101 images. Hope this helps.

    If this answer was helpful, please mark it as the answer to help others who may have the same question. If you have further questions or concerns, please let us know by replying to this message so we can assist you further.


0 additional answers

Sort by: Most helpful