Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

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

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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

Avatar

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

Avatar

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



Arun Patidar