Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

saddrab8102822
Level 1
Level 1

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

1 Accepted Solution
Peter_Puzanovs
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

3 Replies
Peter_Puzanovs
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

smacdonald2008
Level 10
Level 10

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."

Arun_Patidar
Community Advisor
Community Advisor

Hi,

Where exactly do you want to display video duration?

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

Managing Video Assets

Screenshot 2018-10-22 at 11.52.08 AM.png