Thumbnails Not Displaying for MPEG Files in SharePoint

Exalture Software 20 Reputation points
2024-11-15T17:20:17.67+00:00

We have an application that relies on SharePoint's API to retrieve thumbnails of files. The API typically provides URLs for thumbnail images in various sizes (small, medium, and large) along with a download URL for the file. While thumbnail URLs work fine for other file types, when accessed for MPEG files, they produce an internal server error with the following response:
{    
"error": {         
"code": "generalException",        
  "message": "An exception occurred while executing within the Sandbox",         
"innererror": {             
"code": "VideoProcessing"         
}     
}
}

Does anyone have any suggestions or insights into why MPEG thumbnails might not be processing properly in SharePoint? Is this a known limitation, or is there any configuration or API adjustment we might need to consider? Additionally, we’ve noticed that, thumbnails do not display for MPEG files within our SharePoint account also. Any guidance would be appreciated!

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,107 questions
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 19,015 Reputation points Microsoft Vendor
    2024-11-18T05:50:55.75+00:00

    Hi @Exalture Software,

    Thank you for posting in this community.

    Unfortunately, there is no way to get thumbnails for MPEG files because SharePoint does not support generating thumbnails for such files.

    You can refer to this article for a complete list of supported file types:

    File types supported for previewing files in OneDrive, SharePoint, and Teams

    You can get all supported file types for you tenant by sending the following GET-request:

    https://{tenant}.sharepoint.com/_layouts/15/getpreview.ashx?action=supportedtypes
    

    We are always looking for ways to improve SharePoint, and your feedback and suggestions are very valuable.

    We suggest that you can make suggestions on this SharePoint Feedback portal for generating thumbnails of MPEG files in SharePoint Online. Your contribution will be highly appreciated.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.