Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.85k stars 10.48k forks source link

My scrypy isn't duplicating my audio. #5203

Open Rimplo opened 1 month ago

Rimplo commented 1 month ago

Hi there, I am a noob so please help me.

Environment

The bug

I was trying to duplicate the audio from my phone, but it isn't forwarding the audio with the recommended command.

C:\Users\mshal\Desktop\Warned\scrcpy-win64-v2.6.1>scrcpy --max-fps=90 --video-codec=h265 --audio-dup --video-bit-rate=110M
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: Audio duplication enabled: audio source switched to "playback"
INFO: ADB device found:
INFO:     -->   (usb)  RZCT6088JVT                     device  SM_A336E
C:\Users\mshal\Desktop\Warned\scrcpy...d. 84.2 MB/s (71112 bytes in 0.001s)
[server] INFO: Device: [samsung] samsung SM-A336E (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400

I have found that it still forwards the audio with:

C:\Users\mshal\Desktop\Warned\scrcpy-win64-v2.6.1>scrcpy --max-fps=90 --video-codec=h265 --video-bit-rate=110M
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  RZCT6088JVT                     device  SM_A336E
C:\Users\mshal\Desktop\Warned\scrcpy.... 110.5 MB/s (71112 bytes in 0.001s)
[server] INFO: Device: [samsung] samsung SM-A336E (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400
rom1v commented 1 month ago

I was trying to duplicate the audio from my phone, but it isn't forwarding the audio with the recommended command.

What does it do instead? Just playing it on the device?

With which app? In this mode, as explained in the documentation:

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

Rimplo commented 1 month ago

With which app? 

CODM, Spotify and Instagram. They were working fine two days ago now. The audio was being forwarded while mirroring. Now only IG and CODM works,with a slightly noticeable delay,after I restarted my phone after my post.

Rimplo commented 1 month ago

What does it do instead? Just playing it on the device?

It plays on my device but not in the laptop while mirroring

Dex94 commented 4 weeks ago

have you tried simply scrcpy -m720?

rom1v commented 4 weeks ago

CODM, Spotify and Instagram.

For spotify at least, it is expected that it is not mirrored wkth --audio-dup (--audio-source=playback), because with this capture mode apps can opt-out.

It is forwarded with the default audio output capture mode, i.e. when you don't pass --audio-dup (so it will play only on your computer).

Rimplo commented 4 weeks ago

have you tried simply scrcpy -m720?

How do I do that?

Rimplo commented 4 weeks ago

CODM, Spotify and Instagram.

For spotify at least, it is expected that it is not mirrored wkth --audio-dup (--audio-source=playback), because with this capture mode apps can opt-out.

It is forwarded with the default audio output capture mode, i.e. when you don't pass --audio-dup (so it will play only on your computer).

Thanks for the insight