You have chosen to sponsor your bid up to a maximum amount of .
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)
- 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.