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

Audio delay using sndcpy #275

Open
kumarraviraushan71 opened this issue Jan 18, 2024 · 3 comments
Open

Audio delay using sndcpy #275

kumarraviraushan71 opened this issue Jan 18, 2024 · 3 comments

Comments

@kumarraviraushan71
Copy link

operating system Mac OS m1 chip
after successfully staring sndcpy in terminal , I first get
main input error: ES_OUT_SET_(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_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 104ms)
main input error: ES_OUT_SET_(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
Copy link

Have you checked the solution proposed on issue #154 ?

It works on my case

@rom1v
Copy link
Owner

rom1v commented Apr 20, 2024

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
Copy link

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

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

3 participants