# Get duration of mp4 video file

**URL:** <https://community.wowza.com/t/get-duration-of-mp4-video-file/36807>\
**Category:** Wowza Streaming Engine\
**Created:** [September 6, 2011, 1:52pm UTC](https://community.wowza.com/t/get-duration-of-mp4-video-file/36807 "2011-09-06T13:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karuna\_Pai](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@Karuna\_Pai](https://community.wowza.com/u/Karuna_Pai)\
**Post date:** [September 6, 2011, 1:52pm UTC](https://community.wowza.com/t/get-duration-of-mp4-video-file/36807/1 "2011-09-06T13:52:32Z")

</div>

Hi,

We have used the Live Stream Record module and created ‘.mp4’ files.

We are creating a HTTPProvider to get the duration of these files.

For ‘.flv’ files we used:

```auto
FLVUtils.getLastTC(new File(filePath))

```

Could you please tell us the corresponding functions available for mp4?

Any pointers will be helpful.

Regards,

Karuna.
