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

How does the decoding take place inside exoplayer? #6136

Closed
GaureeshAnvekar opened this issue Jul 5, 2019 · 2 comments
Closed

How does the decoding take place inside exoplayer? #6136

GaureeshAnvekar opened this issue Jul 5, 2019 · 2 comments
Assignees
Labels

Comments

@GaureeshAnvekar
Copy link

GaureeshAnvekar commented Jul 5, 2019

Is there a codec algorithm implemented inside exoplayer library? I need to access the decoded frames along with metadata like "syntax elements" for H264.

[REQUIRED] Searched documentation and issues

I have already gone through the exoplayer official documentation. But scarce information is available.

[REQUIRED] Question

I need to access the "Syntax elements" and decoded frames and perform further processing on the frames before display.

@GaureeshAnvekar GaureeshAnvekar changed the title How does the decoding take place inside exoplayer? Is there a codec algorithm implemented inside exoplayer library? I need to access the decoded frames along with metadata like syntax elements for H264. How does the decoding take place inside exoplayer? Is there a codec algorithm implemented inside exoplayer library? I need to access the decoded frames along with metadata like "syntax elements" for H264. Jul 5, 2019
@tonihei
Copy link
Collaborator

tonihei commented Jul 5, 2019

The decoding itself is forwarded to the Android platform MediaCodec classes.

If you are aiming to modify the decoded frames (e.g. to apply effects), please read the comments in this issue: #5860 (comment).

It's probably difficult to obtain the "syntax elements" though. What are you trying to achieve with that?

@tonihei tonihei self-assigned this Jul 5, 2019
@andrewlewis
Copy link
Collaborator

Just a note about accessing syntax elements: although this is not really something we intend to support, you may find the utility methods in NalUnitUtil and/or ParsableNalUnitBitArray useful for writing your own code to parse the compressed (input) H.264 bitstream. If you specifically want something from the SPS/PPS then there are methods for getting some limited information from them in NalUnitUtil.

@ojw28 ojw28 changed the title How does the decoding take place inside exoplayer? Is there a codec algorithm implemented inside exoplayer library? I need to access the decoded frames along with metadata like "syntax elements" for H264. How does the decoding take place inside exoplayer? Jul 8, 2019
@ojw28 ojw28 closed this as completed Aug 2, 2019
@google google locked and limited conversation to collaborators Oct 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants