Cannot Read m4b audiobook
Issue #246
new
For some reason jaudiotagger thinks that my m4b files are videos.
I have traced the problem to this line.
//Level 2-Searching for others "trak" within "moov", if we find any traks containing video
//then reject it if no track if not video then we allow it because many encoders seem to contain all sorts
//of stuff that you wouldn't expect in an audio track
mvhdBuffer.position(endOfFirstTrackInBuffer);
while(mvhdBuffer.hasRemaining())
{
boxHeader = Mp4BoxHeader.seekWithinLevel(mvhdBuffer, Mp4AtomIdentifier.TRAK.getFieldName());
if (boxHeader != null)
{
if(isTrackAtomVideo(ftyp,boxHeader,mvhdBuffer))
{
throw new CannotReadVideoException(ErrorMessage.MP4_FILE_IS_VIDEO.getMsg());
}
}
else
{
break;
}
}
Comments (2)
-
-
Commenting the line allows the library to properly load tags. But I doubt that is the correct solution.
- Log in to comment
Whoops, I didn't mean to post this anonymously :P