Results 1 to 8 of 8
Thread: Get Duration of mov ,wmv files
- 06-14-2010, 11:50 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 6
- Rep Power
- 0
- 06-14-2010, 02:42 PM #2
Do you have a definition of the contents of a media file?
Are there fields in the file that contain their length?
If so, you can write a java program to read the file and extract that info.
- 06-14-2010, 06:21 PM #3
Member
- Join Date
- Apr 2010
- Posts
- 55
- Rep Power
- 0
The length is usually saved as a tag, you know like the artist name or something, you just need to extract that.
If your going to write a media player I recommend you use a different language, or associate a third party converter with your program.
-Bayan-
- 06-17-2010, 08:13 AM #4
Member
- Join Date
- Jun 2010
- Posts
- 6
- Rep Power
- 0
thanks for replying...
but i still not getting it..
see, my problem is..
i m windows XP user,
i have a 100 of .mov (Quicktime player file) files.
and i have to create a database/ XML file in which i m gonna store the name, size, duration of that files.
so if i open .mov file in read mode then i can only read the byte information, not the duration
& if possible then please give a sample code for that...
thanks you..
- 06-17-2010, 08:16 AM #5
Member
- Join Date
- Jun 2010
- Posts
- 6
- Rep Power
- 0
similarly for wmv file
as you can see the artist, duration, album and so on information in windows explorer.
but how i can get these information through a java code
please mention code also
- 06-17-2010, 08:31 AM #6
I don't think you can. WMV is a proprietary filetype used by Microsoft... I know there exists a Windows Media SDK, but I believe it's in C/C++ only. A quick Google search reinforces my theory; others have looked for a similar bit of code (to get the duration and other data from WMV files) to no avail.
- 06-18-2010, 03:25 AM #7
h-i-t
Did you tried File class fro this?+ 1 my REP
Good Luck :)
- 06-18-2010, 03:42 PM #8
Member
- Join Date
- Jun 2010
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
Convert avi, mpeg, wmv media files to .flv files in java code
By vinay1497 in forum New To JavaReplies: 8Last Post: 07-30-2010, 05:47 PM -
working with files (text files)
By itaipee in forum New To JavaReplies: 1Last Post: 02-24-2009, 11:38 AM -
Behaving text files like binary files
By Farzaneh in forum New To JavaReplies: 2Last Post: 08-27-2008, 03:20 PM -
Text and image files within jar files
By erhart in forum Advanced JavaReplies: 8Last Post: 01-19-2008, 04:43 AM -
how to convert mpeg files to .wav files
By christina in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:14 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks