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
Getting random error "pts has no value" #4536
Comments
Does audio forwarding work if you don't record? Please try with this additional log: diff --git a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java
index e3de50e63..a4e87bd11 100644
--- a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java
+++ b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java
@@ -161,6 +161,7 @@ public final class AudioCapture {
long durationUs = r * 1000000 / (CHANNELS * BYTES_PER_SAMPLE * SAMPLE_RATE);
nextPts = pts + durationUs;
+ Ln.d("pts=" + pts + "; duration=" + durationUs);
if (previousPts != 0 && pts < previousPts + ONE_SAMPLE_US) {
// Audio PTS may come from two sources: Here is a binary, replace the file in your folder of scrcpy 2.3.1:
Then run:
|
@rom1v Here is the command that I'm using when recording (if it helps):
|
I'm interested in the full console output 😁 |
@rom1v
|
Interesting. Here is a new branch fixing two problems: Please test this binary:
|
@rom1v |
Sorry, my bad, I made a mistake. I updated the link in the previous comment. Please retry. |
@rom1v I only got |
@rom1v |
Merged into |
Environment
Describe the bug
Sometimes, right when I start recording, my terminal immediately gets spammed with these errors:
I have no other choice than to abort the recording, and the recording file is damaged (it has size but it's unplayable).
The text was updated successfully, but these errors were encountered: