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

Can anyone help me with ERROR: Could not create default video encoder for h264 #4933

Open
Mikasuru opened this issue May 18, 2024 · 0 comments

Comments

@Mikasuru
Copy link

When i connect to my Redmi phone, It show error like this

C:\Users\poom7\Downloads\scrcpy-win32-v2.4\scrcpy-win32-v2.4>scrcpy
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  5d96681d0404                    device  lancelot
C:\Users\poom7\Downloads\scrcpy-win32-v2.4\scrcpy-win32-v2... file pushed, 0 skipped. 95.7 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [Xiaomi] Xiaomi lancelot (Android 14)
INFO: Renderer: direct3d
[server] ERROR: Could not create default video encoder for h264
List of video encoders:
    (none)
ERROR: Demu[server] ERROR: Could not create default audio encoder for opus
List of audio encoders:
    --audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
    --audio-codec=flac --audio-encoder='OMX.google.flac.encoder'
xer 'video': stream disabled due to connection error
ERROR: Demuxer 'a[server] ERROR: Audio encoding error
udio'[server] ERROR: Exception on thread Thread[video,5,main]
:java.io.IOException: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
        at com.genymobile.scrcpy.IO.writeFully(IO.java:33)
s       at com.genymobile.scrcpy.IO.writeFully(IO.java:40)
t       at com.genymobile.scrcpy.Streamer.writeDisableStream(Streamer.java:62)
r       at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:230)
e       at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:121)
a       at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda1.run(Unknown Source:4)
m       at java.lang.Thread.run(Thread.java:1012)
 Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
d       at libcore.io.Linux.writeBytes(Native Method)
i       at libcore.io.Linux.write(Linux.java:288)
s       at libcore.io.ForwardingOs.write(ForwardingOs.java:938)
abled   at libcore.io.BlockGuardOs.write(BlockGuardOs.java:442)
        at android.system.Os.write(Os.java:987)
d       at com.genymobile.scrcpy.IO.writeFully(IO.java:25)
ue to connect   ... 6 more
ijava.lang.IllegalArgumentException: Failed to initialize video/avc, error 0xfffffffe (NAME_NOT_FOUND)
on error
ERROR:  at android.media.MediaCodec.native_setup(Native Method)
        at android.media.MediaCodec.<init>(MediaCodec.java:2094)
Demuxer error
        at android.media.MediaCodec.<init>(MediaCodec.java:2072)
        at android.media.MediaCodec.createEncoderByType(MediaCodec.java:2027)
        at com.genymobile.scrcpy.SurfaceEncoder.createMediaCodec(SurfaceEncoder.java:207)
        at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:52)
        at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
        at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)

C:\Users\poom7\Downloads\scrcpy-win32-v2.4\scrcpy-win32-v2.4>
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

1 participant