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

android.media.MediaCodec$CodecException: Error 0xffffffc3 #3079

Open
startrainee opened this issue Mar 4, 2022 · 4 comments
Open

android.media.MediaCodec$CodecException: Error 0xffffffc3 #3079

startrainee opened this issue Mar 4, 2022 · 4 comments

Comments

@startrainee
Copy link

startrainee commented Mar 4, 2022

I have read the FAQ.

I have searched in existing issues.

I have pluged an Android device, but execute 'scrcpy' in windows,
it show:


android.media.MediaCodec$CodecException: Error 0xffffffc3

        at android.media.MediaCodec.native_configure(Native Method)

        at android.media.MediaCodec.configure(MediaCodec.java:1960)

        at android.media.MediaCodec.configure(MediaCodec.java:1889)

        at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:205)

        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:84)

        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:55)

        at com.genymobile.scrcpy.Server.scrcpy(Server.java:76)

        at com.genymobile.scrcpy.Server.main(Server.java:225)

        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)

[server] ERROR: Exception on thread Thread[main,5,main]

android.media.MediaCodec$CodecException: Error 0xffffffc3

        at android.media.MediaCodec.native_configure(Native Method)

        at android.media.MediaCodec.configure(MediaCodec.java:1960)

        at android.media.MediaCodec.configure(MediaCodec.java:1889)

        at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:205)

        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:84)

        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:55)

        at com.genymobile.scrcpy.Server.scrcpy(Server.java:76)

        at com.genymobile.scrcpy.Server.main(Server.java:225)

        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)

ERROR: Could not retrieve device information

i try to find what "Error 0xffffffc3" mean, but i failed.

@rom1v
Copy link
Collaborator

rom1v commented Mar 4, 2022

Do you use the latest version (v1.23)? (it should retry automatically with a lower definition)

Otherwise, #73.

@startrainee
Copy link
Author

I try to use the lastest version v1.23, but it doesn't work.

I used "scrcpy -b2M -m800",it still doesn't work.
My screen size is 2608x720.

@bogdannedelcu
Copy link

Hi @startrainee , did you find a solution? I get this error in when using ffmpeg on some Android devices, not all of them though. I want to understand the cause.

@bogdannedelcu
Copy link

A workaround when default mediacodec fails on Android is to retry using libx264. A bit slower bot does the job.

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

3 participants