Romain Vimont

Results 2060 comments of Romain Vimont

> I tried adding "--audio-output" but it doesn't seem to improve, no matter how many values I set. It is not expected. Please post the output of `scrcpy --audio-output=200 --audio-output-buffer=15...

> [Audio] Buffering threshold exceeded, skipping 480 samples Ouch, there is really a problem if you get this with an audio output buffer of 15ms.

What I don't understand is that earlier you said: > Just tried this exe file, and when I try scrcpy --audio-output-buffer=10, it seems to fix the problem. So at 10ms,...

> When I tried "scrcpy --audio-output=200 --audio-output-buffer=15 -Vverbose", there is also the same pitch change as in 10ms, and the music itself is clear too. But in the logs you...

> ``` > VERBOSE: [Audio] Buffering: target=2400 avg=17100.707031 cur=21120 compensation=-3840 > ``` That is not normal. > Maybe it's because my PC is old and can't handle too low buffer...

Oops, wrong link. Fixed.

Oh, there is indeed a difference between the rate at which samples are produced and consumed, but in your last logs, the culprit seems to be the producer (i.e. the...

OK, so let's add a log on the server side: diff ```diff diff --git a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java index 7b20cce4f..46eeb1b27 100644 --- a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java +++ b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java @@ -167,6 +167,8 @@ public final class...

OK, thank you for your tests. So the audio capture is correct. This is consistent with the fact that the recorded file is correct, but not consistent with the buffer...

Let's log the actual rate on both sides of the audio buffer: diff ```diff diff --git a/app/src/audio_player.c b/app/src/audio_player.c index 8f0ad7fba..5eb914d05 100644 --- a/app/src/audio_player.c +++ b/app/src/audio_player.c @@ -5,7 +5,7 @@ #include...