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

Hi so I have the problem again. My Scrcpy didn't duplicate my audio again. #5880 #5331

Open
Shuatome opened this issue Sep 30, 2024 · 9 comments

Comments

@Shuatome
Copy link

C:\Users\Shua_me\Desktop\scrcpy-win64-v2.7>scrcpy --audio-source=playback
scrcpy 2.7 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO: --> (tcpip) 192.168.1.6:5555 device ASUS_AI2401_D
C:\Users\Shua_me\Desktop\scrcpy-win64-v2.7\scrcpy-server: 1 file pushed, 0 skipped. 50.0 MB/s (71200 bytes in 0.001s)
[server] INFO: Device: [asus] asus ASUS_AI2401_D (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400

C:\Users\Shua_me\Desktop\scrcpy-win64-v2.7>scrcpy --audio-dup
scrcpy 2.7 https://github.com/Genymobile/scrcpy
INFO: Audio duplication enabled: audio source switched to "playback"
INFO: ADB device found:
INFO: --> (tcpip) 192.168.1.6:5555 device ASUS_AI2401_D
C:\Users\Shua_me\Desktop\scrcpy-win64-v2.7\scrcpy-server: 1 file pushed, 0 skipped. 20.5 MB/s (71200 bytes in 0.003s)
[server] INFO: Device: [asus] asus ASUS_AI2401_D (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400

@Shuatome
Copy link
Author

scrcpy --audio-dup stoped working

@rom1v
Copy link
Collaborator

rom1v commented Sep 30, 2024

Which Android app?

Android apps can opt-out (so they are not captured).

https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md#duplication

@Shuatome
Copy link
Author

Its AFK journey and Shattered pixel dungeon.

@rom1v
Copy link
Collaborator

rom1v commented Sep 30, 2024

Does it work with other apps?

@Shuatome
Copy link
Author

It worked in Pokemon Unite I don't have any more apps

@rom1v
Copy link
Collaborator

rom1v commented Sep 30, 2024

OK so is just the apps which opt-out. That's "expected".

@Shuatome
Copy link
Author

Can you tell me, how to check if apps are opt-out?
And one other thing, is it OBS's problem that It can't see my SCRCPY as a game capture.

@rom1v
Copy link
Collaborator

rom1v commented Sep 30, 2024

Can you tell me, how to check if apps are opt-out?

You could decompile the apk and check the flags in the manifest: https://developer.android.com/media/platform/av-capture#capture_policy

But simpler: if it is correctly forwarded with the default audio forwarding method, but not with the playback audio source, while you correctly get audio for other apps in both modes, then your app is refusing audio capture.

@Shuatome
Copy link
Author

Thanks how about the OBS thing with SCRCPY?

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