-
Notifications
You must be signed in to change notification settings - Fork 70
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
Comments
@chenxi1991 Did you find the solution? |
@magicsih not yet. I still have no idea. |
@magicsih I tried to set the sps&pps from the first frame's data. But not useful |
@chenxi1991 I have no idea either. I haven't yet implemented decoding part on Android. |
@magicsih Thanks anyway. If you need,I'll let u know when I implement it. |
@chenxi1991 Please, share the result :) Thanks! |
@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. :) |
@magicsih Here is the link https://github.com/chenxi1991/ScreenShare |
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:
Decode a frame:
The decoded result displayed on the SurfaceTexture:
The first frame is normal
But when I do some operations on the client ,It comes out like that:
I'm so sorry to bother you again! could you give me some advice.
The text was updated successfully, but these errors were encountered: