I have a *.avi file and if I want to know the file's duration time: I can use this code to get the result:
Import["test.avi", "Duration"]
or the code to get the same result
(Import["test.avi", #] & /@{"FrameCount","FrameRate"}) /. {a_, b_} -> a/b
But if I want to know the duration time of a audio file,I try to use the similar code,but failed.
you can see the result don't involve the Duration
Import["test.mp3","Elements"](*only version10 supports MP3 format*)
{"AudioChannels", "Data", "SampledSoundList", "SampleRate", "Sound"}
Can I get the duration of audio files?
I guess the Jlink` can do this job easily...