Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limit video preview to 5 mins or 10 MB size in Documents & Media portlet

Is there a configuration to limit the video preview to 5 mins or to a particular file size say 10 MB of preview.

I have set-up Xuggler, ImageMagick and the video preview is working fine on Liferay 6.1 GA2.

The reason I need this is because large files are taking a lot of time for preview generation and this is affecting other previews to be generated since the xuggler queue waits till the time the big preview is completed.

I have got this link to FFmpeg documentation from the Preview generation wiki which lists some options to do this, but I am not sure how to use this or how to set this in portal-ext.properties or is this possible at all.

Thanks

like image 857
Prakash K Avatar asked Nov 02 '22 14:11

Prakash K


1 Answers

I didn't find a full documentation, but as you seem desperate and nobody answered yet:

The properties end up in a call to xuggler's Configuration.configure(Properties properties, IConfigurable config), stripped of the prefix xuggler.ffpreset.

I'm sorry, I can't currently try. The big problem that I'll leave for you is how to know the actual properties names. I'd try either the ones that you link in your question or get some more names/ideas/links from this question. Try

# assuming decimal 10M limit
xuggler.ffpreset.fs 10000000
like image 127
Olaf Kock Avatar answered Nov 17 '22 11:11

Olaf Kock