Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Video convertor in AEM 6.1

Avatar

Level 3

I have a requirement where I need to override the asset download functionality in AEM 6.1 (OOTB sample page to download assets : http://localhost:4502/editor.html/content/geometrixx/en/company/press.html) to provide the user with other video formats, so that the video can be downloaded to the selected format.

Example : .mp4 file can be converted to .flv file while downloading.

Is there a way to convert video into different formats in CQ5. If I am not wrong , I hope we can use FFmpeg but client is not having license to that.

Please let me know if there are some other ways to that.

Also if there is any open source API’s are present in java for the same please let me know which might help out to resolve my issue to some extent.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

Another option could be to create a custom component, where that component would use OSGI Sling service, there in OSGI you can write a code for conversion of video using third party APIs. You can also save the converted video in the nodes as per your requirement. Then using Query Builder API, JCR API, JQOM API or Sling API you can access nodes and can use them in your response.

OSGI Service :- https://helpx.adobe.com/experience-manager/using/first-osgi.html

JQOM :- https://helpx.adobe.com/experience-manager/using/jqom.html

Query Builder:- https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html (Query Builder)

JCR API:- https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html (JCR API)

Video Converter APIs:- https://cloudconvert.com/https://zencoder.com/en/http://www.online-convert.com/developerhttps://www.ffmpeg.org/ etc

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

2 Replies

Avatar

Community Advisor

Hey,

 

FFmpeg is distributed under LGPL )) You should be able to use it in a commercial product? What sort of license do you want your client to get for that? ;)

 

Converting .mp4 during download time would hit your performance quite a bit, since conversion is a pretty intensive task. Ideally, you should add a step to convert the asset into various formats in your Worklow steps.

 

Thanks,

Peter

Avatar

Correct answer by
Administrator

Hi 

Another option could be to create a custom component, where that component would use OSGI Sling service, there in OSGI you can write a code for conversion of video using third party APIs. You can also save the converted video in the nodes as per your requirement. Then using Query Builder API, JCR API, JQOM API or Sling API you can access nodes and can use them in your response.

OSGI Service :- https://helpx.adobe.com/experience-manager/using/first-osgi.html

JQOM :- https://helpx.adobe.com/experience-manager/using/jqom.html

Query Builder:- https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html (Query Builder)

JCR API:- https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html (JCR API)

Video Converter APIs:- https://cloudconvert.com/https://zencoder.com/en/http://www.online-convert.com/developerhttps://www.ffmpeg.org/ etc

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni