-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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 |
scrcpy v2.4 Changes since v2.3.1: - Add UHID keyboard and mouse support (Genymobile#4473) - Simulate tilt multitouch by pressing Shift (Genymobile#4529) - Add rotation support for non-default display (Genymobile#4698) - Improve audio player (Genymobile#4572) - Adapt to display API changes in Android 15 (Genymobile#4646, Genymobile#4656, Genymobile#4657) - Adapt audio workarounds to Android 14 (Genymobile#4492) - Fix clipboard for IQOO devices on Android 14 (Genymobile#4492, Genymobile#4589, Genymobile#4703) - Fix integer overflow for audio packet duration (Genymobile#4536) - Rework cleanup (Genymobile#4649) - Upgrade FFmpeg to 6.1.1 in Windows releases (Genymobile#4713) - Upgrade libusb to 1.0.27 in Windows releases (Genymobile#4713) - Various technical fixes
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: