Add support writing metas for raw aac files

Issue #223 new
WiZU&Me created an issue

Hello, I use the 2.2.4-SNAPSHOT library on Android and when I want to writet metas for aac files:

org.jaudiotagger.audio.exceptions.CannotReadException: No Reader associated with this extension:aac
08-31 19:29:53.040 20776-24384/com.techniwork.fastsharing W/System.err:     at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:287)
08-31 19:29:53.040 20776-24384/com.techniwork.fastsharing W/System.err:     at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:152)
08-31 19:29:53.040 20776-24384/com.techniwork.fastsharing W/System.err:     at com.techniwork.explorer.explorateur.TabLayoutActivity.changeTagSongNameRemovable(TabLayoutActivity.java:13380)
08-31 19:29:53.040 20776-24384/com.techniwork.fastsharing W/System.err:     at com.techniwork.explorer.explorateur.TabLayoutActivity$74.run(TabLayoutActivity.java:13185)
08-31 19:29:53.040 20776-24384/com.techniwork.fastsharing W/System.err:     at java.lang.Thread.run(Thread.java:762)

So I tried to change the extension of the file to m4a and:

File /storage/emulated/0/01_Track01.m4a being read
                                                                     org.jaudiotagger.audio.exceptions.InvalidBoxHeaderException: Unable to find next atom because identifier is invalid ÿüÞ
                                                                         at org.jaudiotagger.audio.mp4.atom.Mp4BoxHeader.update(Mp4BoxHeader.java:155)
                                                                         at org.jaudiotagger.audio.mp4.atom.Mp4BoxHeader.seekWithinLevel(Mp4BoxHeader.java:270)
                                                                         at org.jaudiotagger.audio.mp4.Mp4InfoReader.read(Mp4InfoReader.java:92)
                                                                         at org.jaudiotagger.audio.mp4.Mp4FileReader.getEncodingInfo(Mp4FileReader.java:41)
                                                                         at org.jaudiotagger.audio.generic.AudioFileReader.read(AudioFileReader.java:104)
                                                                         at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:290)
                                                                         at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:152)
                                                                         at com.techniwork.explorer.explorateur.TabLayoutActivity.changeTagSongNameRemovable(TabLayoutActivity.java:13380)
                                                                         at com.techniwork.explorer.explorateur.TabLayoutActivity$74.run(TabLayoutActivity.java:13185)
                                                                         at java.lang.Thread.run(Thread.java:762)

same issue :Issue #193

The file remains readable.

Test performed with several files on several phones.

Any ideas?

Otherwise for other formats everything seems ok! Thanks

aac m4a

Comments (8)

  1. Aisling Vasey

    I have the same error with some M4A files.

    Error:

    org.jaudiotagger.audio.exceptions.NullBoxIdException: Unable to find next atom because identifier is invalid 
        at org.jaudiotagger.audio.mp4.atom.Mp4BoxHeader.update(Mp4BoxHeader.java:150)
        at org.jaudiotagger.audio.mp4.atom.Mp4BoxHeader.seekWithinLevel(Mp4BoxHeader.java:323)
        at org.jaudiotagger.audio.mp4.Mp4TagReader.read(Mp4TagReader.java:114)
        at org.jaudiotagger.audio.mp4.Mp4FileReader.getTag(Mp4FileReader.java:46)
        at org.jaudiotagger.audio.generic.AudioFileReader.read(AudioFileReader.java:106)
        at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:288)
        at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:151)
    

    File with the error: ~/tmp$ file Anton.m4a Anton.m4a: ISO Media, MPEG v4 system, 3GPP

  2. Log in to comment