rom1v / sndcpy

Android audio forwarding (scrcpy, but for audio)
MIT License
3.29k stars 303 forks source link

Audio delay using sndcpy #275

Open kumarraviraushan71 opened 10 months ago

kumarraviraushan71 commented 10 months ago

operating system Mac OS m1 chip after successfully staring sndcpy in terminal , I first get main input error: ES_OUTSET(GROUP_)PCR is called too late (pts_delay increased to 0ms) after some time means 1 or 2 minutes it just keep increasing causing a delay in audio: something like this and this is just unacceptable main input error: ES_OUTSET(GROUP_)PCR is called too late (pts_delay increased to 104ms) main input error: ES_OUTSET(GROUP_)PCR is called too late (pts_delay increased to 377 ms)

is there any fix to solve this issue where I can somehow maintain may audio delay to 0 ms I have preinstalled VLC if possible then plzz solve

Kinuseka commented 7 months ago

Have you checked the solution proposed on issue #154 ?

It works on my case

rom1v commented 7 months ago

There is no latency regulation in sndcpy, it was just a proof-of-concept. Audio is properly integrated in scrcpy now (for Android 11+).

Kinuseka commented 7 months ago

Yeah, however its not really a solution in my case as I am using a device on Android 10 which is unfortunate, but fortunate enough that a repo like this exist. The Proof of concept works great in my own case, and its still a great alternative over native scrcpy (for android 10)

On this particular issue the latency was caused by VLC network caching which causes delay. adding --network-caching=-1 disables the caching and allows <100ms delay