Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
109.66k stars 10.54k forks source link

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

Open Shuatome opened 3 hours ago

Shuatome commented 3 hours ago

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 commented 3 hours ago

scrcpy --audio-dup stoped working

rom1v commented 3 hours ago

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 commented 3 hours ago

Its AFK journey and Shattered pixel dungeon.

rom1v commented 3 hours ago

Does it work with other apps?

Shuatome commented 3 hours ago

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

rom1v commented 2 hours ago

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

Shuatome commented 2 hours ago

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 commented 2 hours ago

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 commented 1 hour ago

Thanks how about the OBS thing with SCRCPY?