Web button - calculate total duration of video files

This project received 6 bids from talented freelancers with an average bid price of $215 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description

Hello. Thank you for checking out my ad.

What I'm trying to accomplish...

On a website, I need to calculate the total duration of user selected video files within a few seconds or less, no matter how many files the user selects. I'm open to hearing about other solutions, but I would rather do this using ffmpeg or ffprobe because of it compatibility with so many different formats of video.

What I've tried...

I have a solution that uploads chunks of the videos to a server for ffmpeg to get the duration, but even that takes about 2 to 7 seconds per video. So if the user select 100 videos, the wait can be quite lengthy.

Any solution needs to work on the client side so there is no wait for uploading any data.

various methods could be:

- load the videos into some sort of player that can yield the duration of each video into a variable

- write something that extracts and reads metadata for specific formats and make it for the popular ones (avi, mov, F4V, FLV, MP4)

- Find the portion of ffmpeg that reads meta data (avcodec) and port it to a java compiler so it can run as javascript on the page.

- or find a way to compile all of ffmpeg in java (i read on the internet that this is may be possible)

I'd rather go with a developer who already knows how to do it. If you are interested in the job, please offer your general method idea in accomplishing this task.

Thank you for taking the time to read this. have a nice day.

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online