This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes General Computing and the fly likes    	how to find the run time of a  media file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » General Computing
Reply Bookmark "   	how to find the run time of a  media file" Watch "   	how to find the run time of a  media file" New topic
Author

how to find the run time of a media file

sachin yadav
Ranch Hand

Joined: Nov 24, 2005
Posts: 156
hi ranchers,

I am developing a web application where a user can upload media files of format *.avi,*.mpeg ect. Now i have to calculate the run time of that media file and put the same in the database along with the file. The run time is something like when we run a avi file in media file we can see the total run time in status bar. i have to implement exactly that thing.
i have no clue about how do do this stuff. I just found javax.sound api but that's not helpfull in my case.can somebody please suggest something.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

There is nothing specific in JSP for doing this.
Moving to General Computing.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
There are various Java APIs for dealing with media formats, e.g. JMF from Sun (although I believe that's come to a dead end in its life), and QuickTime from Apple. Both can play various formats, and should be able to tell you how long the runtime is.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to find the run time of a media file
 
Similar Threads
tomcat style startup - shutdown
How to play (with pause, stop, etc.) movies in a java app (or is JMF really dead?)
Streaming content and SOAP
Problem when palying audio
recursive calls to constructor..