Video convertor in AEM 6.1 | Community
Skip to main content
Selva123
Level 2
November 16, 2015
Solved

Video convertor in AEM 6.1

  • November 16, 2015
  • 2 replies
  • 1373 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

2 replies

Peter_Puzanovs
Community Advisor
Community Advisor
November 16, 2015

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

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
November 17, 2015

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