How to retrieve mp4 dam video duration and display it in html

saddrab8102822 18-10-2018

In our application we have a requirement to display the duration of the video which is uploaded in dam. Since the meta information does not have duration field. We followed the steps in the below link, but we were unable to get the duration of the video.

acs-aem-commons/FFMpegAudioEncodeProcess.java at master · Adobe-Consulting-Services/acs-aem-commons ...

"The Adobe AEM Quickstart and Web Application."

Apart from having the video duration displayed using javascript, Is there a way to display it using aem. Please provide your valuable inputs. Thanks

Accepted Solutions (1)

Accepted Solutions (1)

PuzanovsP
MVP
19-10-2018

Dear Sir or Madam,

You may decide to utilize getDuration method from the FFMpegWrapper. This method contains data received from the FFMpeg tool installed on your machine[0].

[0] "The Adobe AEM Quickstart and Web Application."

Regards,

Peter