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

Partially fragmented FMP4 file does not play correctly #7308

Closed
Abu-Abdullah opened this issue Apr 29, 2020 · 3 comments
Closed

Partially fragmented FMP4 file does not play correctly #7308

Abu-Abdullah opened this issue Apr 29, 2020 · 3 comments

Comments

@Abu-Abdullah
Copy link

Hi,

the following file is working with native MediaPlayer but not Exoplayer:
http://maknoon.com/001.m4a

@christosts
Copy link
Contributor

Assigning to @andrewlewis who is more experienced with media formats:

@andrewlewis this what I see:

  • The first sample (buffer) that reaches the MediaCodecAudioRenderer is marked end-of-stream
  • Looks like this is caused because the first call to FragmentedMp4Extractor.read() returns RESULT_END_OF_INPUT

@ojw28
Copy link
Contributor

ojw28 commented May 1, 2020

@kim-vde - I think this will probably be fixed as part of [Internal ref: b/130115709].

The problem is that we think the file is FMP4 because it has an mvex atom in the moov box, but it actually declares all of the samples in the moov atom as well, and does not contain any moof atoms. It's therefore an extreme example of a "partially fragmented" MP4 files, where it claims to be fragmented but is in fact not fragmented at all.

@ojw28 ojw28 changed the title m4a file is not supported Partially fragmented FMP4 file does not play correctly May 1, 2020
@kim-vde
Copy link
Contributor

kim-vde commented May 4, 2020

@ojw28 Ok. I'll try to fix this when working on [Internal ref: b/130115709]. Thanks for investigating.

@Abu-Abdullah We plan to fix the bug mentioned by Olly in the following months. Thanks for reporting your issue.

icbaker pushed a commit that referenced this issue Jul 6, 2020
ISSUE: #7308
PiperOrigin-RevId: 319541273
icbaker pushed a commit that referenced this issue Jul 6, 2020
ISSUE: #7308
PiperOrigin-RevId: 319747742
@kim-vde kim-vde closed this as completed Jul 8, 2020
@google google locked and limited conversation to collaborators Sep 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants