How to retrieve mp4 dam video duration and display it in html | Community
Skip to main content
October 19, 2018
Solved

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

  • October 19, 2018
  • 3 replies
  • 2370 views

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 · GitHub

"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

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 Peter_Puzanovs

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

3 replies

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
October 19, 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

smacdonald2008
Level 10
October 19, 2018

Are you looking at running a workflow on a video in the DAM and have that workflow inspect the video and obtain info. Purhaps you can write a custom workflow step - using "The Adobe AEM Quickstart and Web Application."

arunpatidar
Community Advisor
Community Advisor
October 22, 2018

Hi,

Where exactly do you want to display video duration?

Is it in asset viewer, if yes, please check below.

Managing Video Assets

Arun Patidar