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 explicitly disabled by the device #3992

Closed
elf-world opened this issue May 11, 2023 · 2 comments
Closed

Demuxer 'audio': stream explicitly disabled by the device #3992

elf-world opened this issue May 11, 2023 · 2 comments

Comments

@elf-world
Copy link

[server] INFO: Device: vivo V2055A (Android 13)
[server] ERROR: Exception on thread Thread[Thread-4,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getOpPackageName()' on a null object reference
at android.media.VivoAudioRecordImpl.isSupportSubMixRecording(VivoAudioRecordImpl.java:133)
at android.media.AudioRecord.(AudioRecord.java:493)
at android.media.AudioRecord.(Unknown Source:0)
at android.media.AudioRecord$Builder.build(AudioRecord.java:999)
at com.genymobile.scrcpy.AudioCapture.createAudioRecord(AudioCapture.java:58)
at com.genymobile.scrcpy.AudioCapture.start(AudioCapture.java:90)
at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:183)
at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:120)
at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda0.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1015)
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device

@rom1v
Copy link
Collaborator

rom1v commented May 11, 2023

This is a problem specific to Vivo devices. See #3805.

PR #3862 provides a workaround, which will be merged before the scrcpy v2.1 release.

I'm closing as duplicate.

@rom1v rom1v closed this as completed May 11, 2023
@elf-world
Copy link
Author

thank you!

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