sndcpy icon indicating copy to clipboard operation
sndcpy copied to clipboard

Audio delay

Open SimoneLD opened this issue 4 years ago • 25 comments

I've recently tried scrcpy and sndcpy and very satisfied by the result but I have got a small delay with the audio. Is there any solution for this? (Using OnePlus 7T, Android 10)

SimoneLD avatar Dec 02 '20 15:12 SimoneLD

Take the master branch (or apply this change on the script: https://github.com/rom1v/sndcpy/commit/39bd8c74485cf6dd4f34d58b94ea4f1e8fbccacf).

rom1v avatar Dec 02 '20 15:12 rom1v

2020-12-02 (2) 2020-12-02 (6)

I tried to change the script like this but there is still a delay

SimoneLD avatar Dec 02 '20 15:12 SimoneLD

My audio is not a delay, instead, the video is delayed.

git-tiger avatar Dec 11 '20 14:12 git-tiger

Fixed it with the delay parameter in command line.

git-tiger avatar Dec 31 '20 00:12 git-tiger

I have an audio delay too, of about 3s. I see the network-caching is set to 0. Any other thoughts on how to solve this? Or is there a way to delay scrcpy by a similar amount so that at least the audio and video are in sync?

astromark avatar Feb 27 '21 15:02 astromark

Fixed it with the delay parameter in command line. Can close this issue.

Hey bro can you explain me how to use delay parameter in cmd ? Am thinking , if i delay the scrcpy as my choice , so i can properly set the audio & video for streaming . Is it possible , if you know . Reply . Thank you....

benedetta-fox avatar Mar 23 '21 19:03 benedetta-fox

Anyone got fix for audio delay ? Network caching 0 is not fixing it.

shahmanish877 avatar Apr 02 '21 05:04 shahmanish877

Fixed it with the delay parameter in command line. Can close this issue. Hey bro can you explain me how to use delay parameter in cmd ?

benedetta-fox avatar Apr 02 '21 05:04 benedetta-fox

Anyone got fix for audio delay ? Network caching 0 is not fixing it.

No still no solution .

benedetta-fox avatar Apr 02 '21 05:04 benedetta-fox

Is there any other similar software that can help for mirroring the android screen with audio?

shahmanish877 avatar Apr 02 '21 05:04 shahmanish877

No , i think sndcpy is the one of the software which mirror audio through usb .

benedetta-fox avatar Apr 02 '21 05:04 benedetta-fox

Like other apps similar to apowermirror or Vysor?

shahmanish877 avatar Apr 02 '21 05:04 shahmanish877

Apowermirror only cast screen , vysor also... These r not mirror audio.

benedetta-fox avatar Apr 02 '21 05:04 benedetta-fox

I found one. I will be using scrcpy for screen and Bluetooth Audio Receiver for audio (can be downloaded from Microsoft app store). Bluetooth audio receiver is easy installation and without any delay.

shahmanish877 avatar Apr 02 '21 06:04 shahmanish877

I ended up just switching to using Bluetooth. There wasn't any need to install anything for that, at least on Linux. If you've paired the devices already, Android will just give you an option to play via the computers speakers.

astromark avatar Apr 02 '21 07:04 astromark

Okay... Let me try .

benedetta-fox avatar Apr 02 '21 08:04 benedetta-fox

Fixed it with the delay parameter in command line.

How did u use the delay parameter?

sugoides avatar Apr 11 '21 10:04 sugoides

2020-12-02 (2) 2020-12-02 (6)

I tried to change the script like this but there is still a delay

for me just changing the <--network-catching=0> to <--network-catching=100> (last line of the file named image ) worked

aryanaggg avatar Jun 03 '21 20:06 aryanaggg

u can use them over wifi too

satyammayy avatar Jun 06 '21 03:06 satyammayy

guys i have found the solution. just change network-caching to= -1 on both sndcpy file and sndcpy.bat. try it out Screenshot 2021-09-12 203825 Screenshot 2021-09-12 203756

Shigeo87 avatar Sep 12 '21 12:09 Shigeo87

guys i have found the solution. just change network-caching to= -1 on both sndcpy file and sndcpy.bat. try it out Screenshot 2021-09-12 203825 Screenshot 2021-09-12 203756

Surprised -1 is a viable option. But, it certainly worked still some delay but less than before. Logically I thought delaying/buffering scrcpy would make more sense

wolvmarine avatar Jan 24 '22 03:01 wolvmarine

I have the same issue, mine was about 2 seconds delay, I set the network caching to -5 and the delay disappeared magically

jurises99 avatar Aug 02 '22 23:08 jurises99

1 second delay, but picture and sound synchronized

scrcpy -m 2048 -b15m --no-control --render-expired-frames --prefer-tex --display-buffer=1000

RzaNagizade avatar Nov 17 '22 11:11 RzaNagizade

Guys i found the solution go into both the scrcpy.bat and the scrcpy file and dit network caching to -1000000000

AFFMAX avatar Dec 09 '22 15:12 AFFMAX

Any onpoint solutions guys tried -5 on sndcpy and still have delays

AgustinUno avatar Jan 15 '23 15:01 AgustinUno