Expand my Community achievements bar.

Setting video thumbnail programmatically

Avatar

Level 3

Hi,

 

Our customer is planning to migrate thousands of videos from a third-party system to Adobe Dynamic Media. During our PoC we uploaded few videos and found that thumbnails are generated automatically from the first frame of the video. But, customer ask is to keep the same thumbnail as they had in their existing system. So, we decided to download the thumbnail image from third-party system and manually associate in AEM. We referred this documentation to associate custom image as thumbnail for the video (https://experienceleague.adobe.com/en/docs/experience-manager-65/content/assets/dynamic/video#adding...

However, this manual process is mostly impossible when number of videos are approx. 40 thousands. I'm looking for a solution to programmatically set the custom image as videos thumbnail. Can anyone provide some insight if there is any API available for this? 

 

Thanks in advance.

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 5

hi @prithwi ,

Hope you have already figured a solution for this , else please find few thoughts below.

I dont think there is any OOTB approach to update the thumbnail images directly in bulk and would require a custom utility and you can try something like below

  1. Get the list of video paths that are uploaded into the DAM
  2. Save the list of thumbnails in a location
  3. Map the video paths and its corresponding assets paths in a file
  4. Create a Generic Utility
    1. The utility will read the video path from AEM
    2. Navigate to the jcr:content/metadata
    3. update the thumbnail with the new custom thumbnail asset
    4. Save the session

This utility can be executed in batches using a workflow/groovy script or scheduler 

 

Thanks,

Anil

Avatar

Level 3

Thank you Anil for sharing your thought. Could you please tell me which property holds the thumbnail reference because I do not find any such property in the metadata node of video file. 

 

Thanks