Can i get video duration via S3 upload button?


Is there any solution or bypass method to get video duration when upload video (mp4, mov ...) via s3 upload button?

thank you for your help :slight_smile:

Hey @primadonna!

I don't believe duration metadata is exposed on upload or when reading a file from S3 but you may be able to extract video metadata using Lambda and Mediainfo. (link to potentially helpful guide here). Do you think this could work for your use case here?

1 Like

Thanks for @Chris-Thompson !

I will try the method you suggested.