Java - how to combine mp3 with jpg/png/ - java

I need to develop a functionality similar to iTunes where when you right-click a song → get artwork, the JPEG/PNG is "embedded" into the mp3 file.
I also need to embed the other ID3 details as well, so a library that could help me with all would be great.
I have no idea how this could be done, do you have any hints?

I've successfully used setPictureData(...) of JID3 to add covers to my MP3 collection that did not have any images attached to them. Also have a look at their sample page to see how the library can be used.

The Jaudiotagger library seems to do what you are searching for (see here).

have a look at id3 tags for the mp3s thats how you embed album art in an mp3.
See reference here

Once you've worked out how to add the actual meta-data, how about using MusicBrainz to find them? I always find that's pretty good for finding music information. It's like the "Wikipedia of music".
http://musicbrainz.org/

If you want to extract and persist the MP3 ID3 tag metadata including artwork to a database through hibernate with the help of an IdTag POJO, here is a simple example which uses the JAudioTagger Java library.

Related

Extract metadata from a MP3/OGG with Java

In my final project for this course, I need to use Java to make an aplication with real use. I chose to make a music library, but I need to extract metadata from all MP3/OGG files in the library folder.
For MP3 files I think with jid3 (https://blinkenlights.org/jid3/) it's ok, but... What can I make with OGG files? Is there any Java library for both files types?
Thanks! And sorry for my english.
See you that, Juanjo. http://diariodeuninformaticorenegado.hol.es/es/portfolio/ragml-rename-automatic-and-generate-music-library/ !! :D
This program generate a html library of a directory.

Using GStreamer for creating AVI files

So, I was recommended GStreamer to create video files. I was going over their tutorial for creating a video file.
The problems I encountered are:
How do I create an AVI file rather than a YUV something.
What is the source being used there?
I want to give a set of BufferedImages or anything else that will show what was going on the screen. I have previously used JPEGtoMovie provided bu the Java guys and for that I had to first save all the images to the disk as JPEG, sort them into their correct order from lexicographical order and a whole lot more.
I was planning to avoid that and that is why I was thinking of Vector<BufferedImage> or BlockingArrayQueue<BufferedImage>
Which all plug-ins do I need from GStreamer to create the AVI output?
Sorry I have been asking too many questions today. I have never worked with a media framework before and I am very dumb
The command gst-inspect will list all included elements (components).
you can produce an avi file from the pipeline: videotestsrc ! encoder ! avimux ! filesink where encoder stands for the encoding element you'd like to use
an alternative would be to use: videotestsrc ! encodebin ! filesink; here you just build a profile and encodebin will figure our what encoder and what muxer to use to create the format specified in the profile
I did not understood the part around the BufferImages. You can feed images manually to gstreamer (e.g. using [appsrc ! decodebin] instead of [videotestsrc]), but thats a last resort. There are also elements such as multifilesrc that read a sequece of images. Maybe you can give more details what you want to do (where do the source frame come from).

Java Google Docs API - Document Conversion Tool used in a standalone java program

First time asking something, let's see if I don't mess up.
My question is, I believe, a simple one:
Can one you use the Document Conversion Tool present in the Google Docs API to convert a PPTX/PPT to ODP (OpenDocument Presentation) without any intent of uploading it to Google Docs.
Basically I just want to use the conversion tool and have the file to save. Is it possible?
Thank a bunch for your time.
Your contribution will keep the entire World spinning.. well, at least my World :P
No, it is not possible to use the API to convert file into different formats if they are not uploaded to Google Drive.
You can always upload a file to Drive, convert it to a different format and then delete the original file, but I don't why you might want to do that :)

How can I play and manipulate .wav files using Java?

I'm looking for a small library to play, merge and change pitch for .wav files.
I've tried JASS, beads, something from anyexample.com, basic javax.sound examples, Sonia Sound Library etc.
Can anyone help me? I just need change pitch, merge and play wav files in Java.
Have you tried the Java Media Framework? Even though it has its limitations, it may be an option. In addition, the wikipedia article (linked above) has a listing of alternatives - maybe one of them does the trick for you.

What's the easiest way to extract the JPG data from an MP3 header in java?

I wrote a JSP that hands my Flash front-end an XML file that describes the contents of my mp3 folder, but am stuck trying to parse the individual file headers for the album art that is embedded therein. Can anyone recommend a good library that has something straight forward that in pseudo code would look like...
String mp3FilePath = "/mp3s/foo.mp3";
File myJpg = getImageFromMP3(mp3FilePath);
I don't have to use JSP, if that's a problem, I can write a servlet.
JavaMusicTag library allows you to read / write ID3 tags in mp3.
It supports ID3v2 so getting album art should be possible.
You'll need an ID3 parsing library. Here's a Java ID3 Tag Library. You'll want to extract a FrameBodyPIC. The Quick Start Guide may be helpful.
JAudioTagger is probably the most complete solution. It's supports many versions of id3. But it's too heavy. Jid3tag may be better if you only need the picture.

Categories

Resources