-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use this? Does it work for .flac files? #16
Comments
You can see some FLAC related tests in https://github.com/Gagravarr/VorbisJava/tree/master/core/src/test/java/org/gagravarr/flac and https://github.com/Gagravarr/VorbisJava/blob/master/tika/src/test/java/org/gagravarr/tika/TestFlacParser.java plus use of it in https://github.com/Gagravarr/VorbisJava/blob/master/tools/src/main/java/org/gagravarr/flac/tools/FlacCommentTool.java - do those not cover what you need to see the FLAC code in use? |
Thanks, that's pretty much what I needed. Is there anyway to get the duration of the audio? In milliseconds preferably? |
It's possible that some encoding tools might store that duration in the metadata, but it isn't standard. If not, you'll have to iterate over all the audio packets to calculate it. The Tika Parser should be doing that already for all the file formats, so look there for the handful of calls you need to make |
I didn't see anything in that has to do with duration: https://github.com/Gagravarr/VorbisJava/blob/master/tika/src/test/java/org/gagravarr/tika/TestFlacParser.java |
There aren't any unit tests so I can't really see how to use it.
The text was updated successfully, but these errors were encountered: