Get video duration in galaxy environment

Hi
What is the best way to get video duration if I want to deploy my app to Galaxy?
I use AWS as storage and npm package ffprobe and ffprobe-static to read video duration. App will read video duration after video is uploaded to aws.
It works fine on my local + aws. But it doesn’t work on Galaxy + aws. But I don’t see any error on galaxy log.

+1 same approach with Docker private server, works fine locally on OSX, but fails without any evidence on server.