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

Demuxer 'audio': stream disabled due to connection error #4702

Closed
tingfengwanxiao opened this issue Feb 26, 2024 · 5 comments
Closed

Demuxer 'audio': stream disabled due to connection error #4702

tingfengwanxiao opened this issue Feb 26, 2024 · 5 comments

Comments

@tingfengwanxiao
Copy link

tingfengwanxiao commented Feb 26, 2024

when I Build everything from sources and I run it ,find problem
INFO: Renderer: direct3d
ERROR: Demuxer 'audio': stream disabled due to connection error
I find it same to #4656 ,I can't replace scrcpy-server you provide simply because I wan't change some file in server and compile myself scrcpy-server,so How can I change source to compile it sucessful to run.(PS:I needn't audio,can forbid it and only use video)

@4332weizi
Copy link

I have the same problem, I installed it via brew.

Device: Pixel 7 Pro
System: Android 14 QPR3(API21.240119.009)

▶︎ scrcpy
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
* daemon not running; starting now at tcp:5037
* daemon started successfully
INFO: ADB device found:
INFO:     -->   (usb)  29281FDH300CV6                  device  Pixel_7_Pro
/opt/homebrew/Cellar/scrcpy/2.3.1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 74.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Google] google Pixel 7 Pro (Android 14)
INFO: Renderer: metal
INFO: Texture: 1080x2336
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.AssertionError: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
	at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:85)
	at com.genymobile.scrcpy.ScreenCapture.createDisplay(ScreenCapture.java:77)
	at com.genymobile.scrcpy.ScreenCapture.start(ScreenCapture.java:38)
	at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:72)
	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)
Caused by: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
	at java.lang.Class.getMethod(Class.java:2937)
	at java.lang.Class.getMethod(Class.java:2449)
	at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:83)
	... 6 more
WARN: Device disconnected
ERROR: Demuxer 'audio': stream disabled due to connection error

@rom1v
Copy link
Collaborator

rom1v commented Feb 26, 2024

@tingfengwanxiao What is the full output in the console?

@4332weizi #4656 #4657

@tingfengwanxiao
Copy link
Author

tingfengwanxiao commented Feb 26, 2024

Thank you .I reget msys64 and Install it ,and solved!

@WFANG12719
Copy link

Same issuse on my Android 7.1.2 TV set-top box, here is the output: (btw, I have a very good visual contact from the box though, no voice transferred only)

already connected to 192.168.1.5:5555
scrcpy 2.3.1 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO: --> (tcpip) 192.168.1.5:5555 device p230
C:\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 73.9 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Phicomm] Phicomm p230 (Android 7.1.2)
[server] WARN: Audio disabled: it is not supported before Android 11
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1920x1080

@rom1v
Copy link
Collaborator

rom1v commented Feb 28, 2024

Same issuse on my Android 7.1.2 TV set-top box

WARN: Audio disabled: it is not supported before Android 11

As expected.

@rom1v rom1v closed this as completed Feb 28, 2024
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

4 participants