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

Dcode error on Android device with MediaCodec #2

Closed
chenxi1991 opened this issue Jun 16, 2017 · 8 comments
Closed

Dcode error on Android device with MediaCodec #2

chenxi1991 opened this issue Jun 16, 2017 · 8 comments

Comments

@chenxi1991
Copy link

I try to decode the H.264 on another Android-device with MediaCodec and display on a SurfaceTexture.
Here are my codes on the server:
Init the Decoder:
image
Decode a frame:
image

The decoded result displayed on the SurfaceTexture:
The first frame is normal
image
But when I do some operations on the client ,It comes out like that:
image

I'm so sorry to bother you again! could you give me some advice.

@magicsih
Copy link
Owner

@chenxi1991 Did you find the solution?

@chenxi1991
Copy link
Author

@magicsih not yet. I still have no idea.

@chenxi1991
Copy link
Author

@magicsih I tried to set the sps&pps from the first frame's data. But not useful

@magicsih
Copy link
Owner

@chenxi1991 I have no idea either. I haven't yet implemented decoding part on Android.

@chenxi1991
Copy link
Author

@magicsih Thanks anyway. If you need,I'll let u know when I implement it.

@magicsih
Copy link
Owner

@chenxi1991 Please, share the result :) Thanks!

@chenxi1991
Copy link
Author

chenxi1991 commented Jun 19, 2017

@magicsih I‘ve got it done this afternoon,but the code is messy. after I refactor it I'll push it to my github and give u a link. :)

@chenxi1991
Copy link
Author

@magicsih Here is the link https://github.com/chenxi1991/ScreenShare

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

2 participants