cancel
Showing results for 
Search instead for 
Did you mean: 

Disable thumbnail generation for video mimetypes in Alf.Share

hardik_thakkar
Star Contributor
Star Contributor
Hi Team,
             We have a requirement to disable thumbnail generation for specific mimetypes (for ex: flv, mp4).
When a video file takes more than 5 seconds to upload in Alf.Share, it's thumbnail should not be generated.

For this we have found the following property : (but it is applied for all mimetypes)
content.transformer.default.timeoutMs=5000

We have to make it for a specific mimetype (for exSmiley Happy
content.transformer.******.timeoutMs=5000

We have also tried using :
system.thumbnail.definition.doclib.timeoutMs=1000
system.thumbnail.definition.doclib.readLimitTimeMs=1000

but it's not working.

Can you please suggest some alternative or approach ?

Thanks and Regards,
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

I don't believe it is possible to limit the transformation to files that take X seconds to upload. What you can do is set up the video transformation to only occur for files below a certain size. You would have to adapt the video-thumbnail-context.xml(.sample) to use a TransformationOptionLimitsMap for the transformer.ffmpeg.thumbnail. Have a look at how the bean transformer.OpenOffice.mimetypeLimits is setup and associated with the transformer.OpenOffice bean in content-services-context.xml and apply this to the video transformer. Then you can limit it by specifying e.g. content.transformer.ffmpeg.thumbnail.maxSourceSizeKBytes=XX

Regards
Axel