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

M4B files with AAC using "scalable configurations" cannot be played without transcoding #60

Open
izderadicka opened this issue Sep 16, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@izderadicka
Copy link
Owner

izderadicka commented Sep 16, 2021

Without transcoding, just remuxing audio stream ffmpeg fails with

[adts @ 0x562cb448d440] Scalable configurations are not allowed in ADTS
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input

Also some information about similar problem is here https://rentry.co/n4ost
From there:

FWIW, I've got to the bottom of the problem with those specific files .. they're de-DRMed Audible AAX files, and for some reason those sampled at 44.1kHz have a bit flipped in the ESDS atom's Audio Specific Config section .. it's referred to as "dependsOnCoreCoder" in most OSS code. Flipping it back makes the file playable without transcoding.

So question is now - is it a problem of file - incorrectly prepared? Or can we somehow fix with some additional ffmpeg params?

Does not look as easy to fix - as for now WA is play them transcoded.

@izderadicka izderadicka added the bug Something isn't working label Sep 16, 2021
@izderadicka izderadicka changed the title M4B files with AAC using "bitrate scalable configurations" cannot be played without transcoding M4B files with AAC using "scalable configurations" cannot be played without transcoding Sep 16, 2021
@rudifus
Copy link

rudifus commented Jan 26, 2022

I have found proposed solution here to ignore/overwrite such ESDS bits, https://rentry.co/n4ost. This issue happend for audible aax files with strero 41kHz stream there. 22kHz stream are playable correctly via ffmpeg.

@izderadicka
Copy link
Owner Author

Thanks, looks like the way how user can manually fix file locally. It will not help with remuxing of m4b to adts stream I think - for this some fix/workaround/parameters for ffmpeg are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants