Hi,
When I parse a Mp3 source I have a problem with the last character of the
album, Author and artist metadata. I get a ? character at the end of the
metadata.
The following code is the one I use
InputStream input = new FileInputStream(f);
ContentHandler handler = new DefaultHandler();
Metadata metadata = new Metadata();
Parser parser = new Mp3Parser();
ParseContext parseCtx = new ParseContext();
parser.parse(input, handler, metadata, parseCtx);
input.close();
// List all metadata
String[] metadataNames = metadata.names();
for(String name : metadataNames){
System.out.println("----"+name + ": " + metadata.get(name));
The result I get
----Content-Type: audio/mpeg
----xmpDM:releaseDate: 2004
----xmpDM:audioChannelType: Stereo
----xmpDM:album: Entremund?
----Author: Renaud Garcia Fon?
----xmpDM:artist: Renaud Garcia Fon?
----channels: 2
----xmpDM:audioSampleRate: 44100
Any idea ?
Can't find anything on the web ...
Thanks