Opening, playing, and extracting information from Mpeg4 Files. Please help!
So I'm writing a visualizer program for music and have done most of the graphics/etc work, now I just need, well, the main component haha. I need to know how to open an mpeg4 file in java, play it through the speakers (default audio output), and extract information from the file. The first two parts I don't think sound too difficult, the last part however might. The information I need to get from the mpeg4 file is the frequency of the audio (preferably taking it as an array or something similar). For that I need someone well versed with mpeg4 files, so if anyone knows someone who can help with that, please let me know! As for the first two, any help I can get would be fantastic!!
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Quote:
Originally Posted by
Dale
I need to know how to open an mpeg4 file in java, play it through the speakers (default audio output)...
I think that this link might be helpful:
JavaFX Media
Pay attention to this part of that link: Playing audio with MediaPlayer
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Quote:
Originally Posted by
cselic
I think that this link might be helpful:
JavaFX Media
Pay attention to this part of that link:
Playing audio with MediaPlayer
Thank you, but I don't have JavaFX and from what I'm reading about it isn't it a web application developer for java?
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Nope, it's Swings successor.
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Quote:
Originally Posted by
Tolls
Nope, it's Swings successor.
Ok, so I'm attempting to instal JavaFX (though the plugin for eclipse is giving me trouble). Anyone have a lead on how to get information from mpeg4 files?
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Googling around and you want the AAC part, which I believe is defined here:
ISO/IEC 14496-3:2001(E) part-3 subpart 1
It should all be in the header somewhere.
Now there might be a Java package that'll do this, indeed the JavaFX media player might provide access to that data. I'd have a look through the API and see what you can do with it.
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Quote:
Originally Posted by
Tolls
Googling around and you want the AAC part, which I believe is defined here:
ISO/IEC 14496-3:2001(E) part-3 subpart 1
It should all be in the header somewhere.
Now there might be a Java package that'll do this, indeed the JavaFX media player might provide access to that data. I'd have a look through the API and see what you can do with it.
Would you be willing to search for that package for me? If not could you tell me how to go about doing so? Thank you so much btw for all the help!!
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
The 2.0 API is here.
You'll probably want the javafx.scene.media package.
Looking at it, though, there doesn't seem to be an obvious way to get at header information for the source.
I'm afraid I can't do more than that,
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Alright, I'll see what I can do from there. Thank you again for the help!
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Quote:
Originally Posted by
Dale
Ok, so I'm attempting to instal JavaFX (though the plugin for eclipse is giving me trouble). Anyone have a lead on how to get information from mpeg4 files?
Watch this 10min long video and you'll get it how to install JavaFX etc.
http://www.java-forums.org/reviews-a...e-windows.html
Re: Opening, playing, and extracting information from Mpeg4 Files. Please help!
Thank you, that walkthrough was far better than the other one I was following. Installed without a kink! Wonderfully helpful site this is :D