Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read .AAC file in CheapAAC #20

Open
pari2dhi3 opened this issue Feb 13, 2018 · 4 comments
Open

Unable to read .AAC file in CheapAAC #20

pari2dhi3 opened this issue Feb 13, 2018 · 4 comments

Comments

@pari2dhi3
Copy link

Hey,
I know its not actively maintained but i was trying the code to work for .aac file, But somehow the expected header and first 8 bits of stream does not match.
It throws an IOException of java.io.IOException("Unknown file format");
I am unable to enter this condition in CheapAAC class.
if (header[0] == 0 && header[4] == 'f' && header[5] == 't' && header[6] == 'y' && header[7] == 'p')
I have tried logging my header values and they are as follows :
header[0] : -1 header[1] : -7 header[2] : 80 header[3] : -128 header[4] : 28 header[5] : -65 header[6] : -4 header[7] : -125

I have no idea how the header should be for .AAC files, any guidance regarding this would be very helpful.

@tutysathish
Copy link

@pari2dhi3 Did you find any solution for this issue

@qiulong2019
Copy link

I also encountered the same problem. Is there a solution?

@geeta4
Copy link

geeta4 commented Mar 3, 2021

unable to read .m4a file giving error java.io.IOException: Went over by 7 bytes on Android 11

@sourav1122
Copy link

sourav1122 commented May 23, 2021

did u solve ur error? i need to read .m4a file
@geet

unable to read .m4a file giving error java.io.IOException: Went over by 7 bytes on Android 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants