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

No audio output received #5655

Open
bheeshmpita opened this issue Dec 12, 2024 · 14 comments
Open

No audio output received #5655

bheeshmpita opened this issue Dec 12, 2024 · 14 comments

Comments

@bheeshmpita
Copy link

Environment

  • OS: Linux Mint
  • Scrcpy version: 3.1
  • Installation method: manual build
  • Device model: Phone: samsung galaxy m34, Laptop specs: i3 3rd gen with 4 GB ram
  • Android version: 14

Describe the bug

On screen mirroring using scrcpy, I get no audio output at the computer, rest everything works as expected but while playing video, the mirroring buffers while in phone it plays smoothly.
I mirror wirelessly as guided in the scrcpy wiki.

On errors, please provide the output of the console (and adb logcat if relevant).

VERBOSE: input: touch [id=mouse] hover-move position=431,285 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=470,303 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=502,313 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=540,327 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=573,337 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=603,354 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=621,362 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=621,368 pressure=1.000000 action_button=000000 buttons=000000
DEBUG: [Audio] Buffering threshold exceeded, skipping 6 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 238 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 233 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 254 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 962 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 962 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 482 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 2 samples
VERBOSE: [Audio] Buffering: target=2400 avg=2668.146240 cur=4578 compensation=-268
DEBUG: [Audio] Buffering threshold exceeded, skipping 254 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 478 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 2 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 10 samples
DEBUG: [Audio] Buffer underflow, inserting silence: 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 231 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 479 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 473 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 468 samples
VERBOSE: [Audio] Buffering: target=2400 avg=2592.961670 cur=5259 compensation=-192
VERBOSE: [Audio] Buffering: target=2400 avg=3273.088379 cur=4970 compensation=-873
^CDEBUG: User requested to quit
DEBUG: quit...
DEBUG: Controller stopped
DEBUG: Server disconnected
DEBUG: Server terminated
DEBUG: Demuxer 'video': end of frames
DEBUG: Receiver stopped
DEBUG: Demuxer 'audio': end of frames


@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2024

If your record, is audio recorded?

scrcpy --record=file.mp4

Then play the file.

@bheeshmpita
Copy link
Author

Then play the file.

There was no audio in the recorded file.

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2024

OK so the problem is on the device.

Does it work with another device?

@bheeshmpita
Copy link
Author

Does it work with another device?

here device means laptop?

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2024

No, Android device.

@bheeshmpita
Copy link
Author

my other device is android 6 so doesnt support audio forwarding, any other way i can check the issue is device related?

@tianjiaoshanzai
Copy link

did u solve this? I get the same problem

@tianjiaoshanzai
Copy link

tianjiaoshanzai commented Jan 6, 2025

PS C:\Users\XXXX> scrcpy -Vverbose
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  b8d5ce15                        device  msmnile_gvmq_for_arm64
DEBUG: Device serial: b8d5ce15
DEBUG: Using server (portable): D:\XXXXXX\Scoop\apps\scrcpy\current\scrcpy-server
D:\XXXXXX\scoop\Applications\Scoop\apps\scrcpy\curr... file pushed, 0 skipped. 23.2 MB/s (71112 bytes in 0.003s)
[server] INFO: Device: [Qualcomm] BYD msmnile_gvmq for arm64 (Android 14)
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
[server] DEBUG: Using video encoder: 'c2.qti.avc.encoder'
[server] DEBUG: Display: using DisplayManager API
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
DEBUG: Using icon (portable): D:\XXXXX\scoop\Applications\Scoop\apps\scrcpy\current\icon.png
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
INFO: Texture: 1920x1080
VERBOSE: input: touch [id=mouse] hover-move position=1130,585 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1131,585 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1149,585 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1208,585 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1319,554 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1433,522 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1553,486 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1662,450 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1731,422 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1773,400 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1803,385 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1822,372 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1831,363 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1838,351 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1844,332 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1851,305 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1858,274 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,243 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,225 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,209 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,194 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,181 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,170 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1865,163 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1861,154 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1859,145 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1854,130 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1852,125 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1850,121 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1847,115 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1846,110 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1844,109 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1843,106 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1841,102 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1838,99 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1837,99 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: [Audio] Buffering: target=2400 avg=2966.399902 cur=2400 compensation=-566
VERBOSE: input: touch [id=mouse] hover-move position=1834,96 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1833,93 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1828,90 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1825,85 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1822,82 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1818,77 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1818,75 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1815,72 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1815,70 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1813,68 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,64 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,60 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,54 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,49 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,40 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,30 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,21 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,13 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,4 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1812,0 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: [Audio] Buffering: target=2400 avg=2800.791992 cur=3200 compensation=-400
VERBOSE: [Audio] Buffering: target=2400 avg=2714.458740 cur=3098 compensation=-314
VERBOSE: [Audio] Buffering: target=2400 avg=2637.824463 cur=2538 compensation=-237
VERBOSE: [Audio] Buffering: target=2400 avg=2582.051025 cur=2478 compensation=-182
VERBOSE: [Audio] Buffering: target=2400 avg=2527.410156 cur=1951 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2524.704834 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2536.492920 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2546.680420 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2548.075684 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2538.210449 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2534.490723 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2543.953369 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2516.761230 cur=1951 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2521.031494 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2530.930176 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2530.548584 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2530.512207 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2525.434814 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2510.975342 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2513.166260 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2510.951904 cur=1951 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2511.223389 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2517.928955 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2527.646973 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2535.469238 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2530.686768 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2531.024658 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2528.137207 cur=2431 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2516.900635 cur=1951 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2517.462891 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2511.151367 cur=2911 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2520.130127 cur=2911 compensation=0
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: Controller stopped
DEBUG: Demuxer 'video': end of frames
DEBUG: Demuxer 'audio': end of frames
DEBUG: Receiver stopped
DEBUG: Server disconnected
DEBUG: Server terminated

@rom1v
Copy link
Collaborator

rom1v commented Jan 6, 2025

@tianjiaoshanzai Everything looks fine in your logs (except that you're using an old scrcpy version). How is the audio volume on your device (and computer)?

If you record (scrcpy --record=file.mp4), is the audio recorded?

@tianjiaoshanzai
Copy link

tianjiaoshanzai commented Jan 6, 2025

@rom1v

It doesn't seem to work. The recorded audio file has no sound

PS C:\Users\XXXX\Downloads\scrcpy-win64-v3.1> .\scrcpy.exe -Vverbose --record=file.mp4
scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  b8d5ce15                        device  msmnile_gvmq_for_arm64
DEBUG: Device serial: b8d5ce15
DEBUG: Using server (portable): C:\Users\XXXX\Downloads\scrcpy-win64-v3.1\scrcpy-server
C:\Users\XXXX\Downloads\scrcpy-win64-v3.1\scrcpy-... file pushed, 0 skipped. 30.7 MB/s (90640 bytes in 0.003s)
[server] INFO: Device: [Qualcomm] BYD msmnile_gvmq for arm64 (Android 14)
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
[server] DEBUG: Using video encoder: 'c2.qti.avc.encoder'
[server] DEBUG: Display: using DisplayManager API
[server] VERBOSE: DisplaySizeMonitor: onDisplayConfigurationChanged(38)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Recording started to mp4 file: file.mp4
DEBUG: Using icon (portable): C:\Users\XXXX\Downloads\scrcpy-win64-v3.1\icon.png
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
INFO: Texture: 1920x1080
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
WARN: [FFmpeg] track 1: codec frame size is not set
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 960 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 960 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
VERBOSE: input: touch [id=mouse] hover-move position=1504,594 pressure=1.000000 action_button=000000 buttons=000000
DEBUG: [Audio] Buffering threshold exceeded, skipping 960 samples
VERBOSE: [Audio] Buffering: target=2400 avg=4545.599609 cur=5040 compensation=-2145
VERBOSE: input: touch [id=mouse] hover-move position=1503,594 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1497,594 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1494,594 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1488,596 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1484,599 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1480,600 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1474,601 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1464,601 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1455,601 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1446,601 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1437,604 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1431,604 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1429,604 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1427,604 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: [Audio] Buffering: target=2400 avg=4200.228516 cur=4483 compensation=-1800
VERBOSE: [Audio] Buffering: target=2400 avg=3820.195557 cur=3548 compensation=-1420
VERBOSE: [Audio] Buffering: target=2400 avg=3512.273682 cur=3189 compensation=-1112
VERBOSE: [Audio] Buffering: target=2400 avg=3273.075195 cur=3867 compensation=-873
VERBOSE: [Audio] Buffering: target=2400 avg=3077.717285 cur=3165 compensation=-677
VERBOSE: [Audio] Buffering: target=2400 avg=2923.863770 cur=2993 compensation=-523
VERBOSE: input: key down code=113 repeat=0 meta=203000
VERBOSE: input: key down code=113 repeat=1 meta=203000
VERBOSE: input: key down code=113 repeat=2 meta=203000
VERBOSE: input: key down code=113 repeat=3 meta=203000
VERBOSE: input: key down code=113 repeat=4 meta=203000
VERBOSE: input: key down code=113 repeat=5 meta=203000
VERBOSE: input: key down code=113 repeat=6 meta=203000
VERBOSE: input: key down code=113 repeat=7 meta=203000
VERBOSE: input: key down code=113 repeat=8 meta=203000
VERBOSE: [Audio] Buffering: target=2400 avg=2807.982666 cur=2380 compensation=0
VERBOSE: input: key down code=113 repeat=9 meta=203000
VERBOSE: input: key down code=113 repeat=10 meta=203000
VERBOSE: input: key down code=113 repeat=11 meta=203000
VERBOSE: input: key down code=113 repeat=12 meta=203000
VERBOSE: input: key down code=113 repeat=13 meta=203000
VERBOSE: input: key down code=113 repeat=14 meta=203000
VERBOSE: input: key down code=113 repeat=15 meta=203000
VERBOSE: input: key down code=113 repeat=16 meta=203000
VERBOSE: input: key down code=113 repeat=17 meta=203000
VERBOSE: input: key down code=113 repeat=18 meta=203000
VERBOSE: input: key down code=113 repeat=19 meta=203000
VERBOSE: input: key down code=113 repeat=20 meta=203000
VERBOSE: input: key down code=113 repeat=21 meta=203000
VERBOSE: input: key down code=113 repeat=22 meta=203000
VERBOSE: input: key down code=113 repeat=23 meta=203000
VERBOSE: input: key down code=113 repeat=24 meta=203000
VERBOSE: input: key down code=113 repeat=25 meta=203000
VERBOSE: input: key down code=113 repeat=26 meta=203000
VERBOSE: input: key down code=113 repeat=27 meta=203000
VERBOSE: input: key down code=113 repeat=28 meta=203000
VERBOSE: input: key down code=113 repeat=29 meta=203000
VERBOSE: input: key down code=113 repeat=30 meta=203000
VERBOSE: input: key down code=113 repeat=31 meta=203000
VERBOSE: input: key down code=113 repeat=32 meta=203000
VERBOSE: input: key down code=113 repeat=33 meta=203000
VERBOSE: input: key down code=113 repeat=34 meta=203000
VERBOSE: input: key down code=113 repeat=35 meta=203000
VERBOSE: input: key down code=113 repeat=36 meta=203000
VERBOSE: input: key down code=31 repeat=0 meta=203000
VERBOSE: [Audio] Buffering: target=2400 avg=2811.990967 cur=2380 compensation=0
VERBOSE: input: key up   code=31 repeat=0 meta=203000
VERBOSE: input: key up   code=113 repeat=0 meta=200000
VERBOSE: input: touch [id=mouse] hover-move position=1427,605 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1446,613 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1510,644 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: [Audio] Buffering: target=2400 avg=2819.701172 cur=2380 compensation=0
VERBOSE: input: touch [id=mouse] hover-move position=1609,681 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1728,734 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1837,776 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1909,810 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: input: touch [id=mouse] hover-move position=1918,822 pressure=1.000000 action_button=000000 buttons=000000
VERBOSE: [Audio] Buffering: target=2400 avg=2819.440186 cur=3340 compensation=-419
VERBOSE: [Audio] Buffering: target=2400 avg=2736.536621 cur=3234 compensation=-336
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: Server disconnected
DEBUG: Server terminated
DEBUG: Demuxer 'video': end of frames
DEBUG: Demuxer 'audio': end of frames
DEBUG: Receiver stopped
INFO: Recording complete to mp4 file: file.mp4
DEBUG: Recorder thread ended
DEBUG: Controller stopped

@rom1v
Copy link
Collaborator

rom1v commented Jan 6, 2025

Do you have sound if you capture the mic instead?

scrcpy --audio-source=mic

@tianjiaoshanzai
Copy link

@rom1v Yes, I can hear what I'm saying as well as ambient sounds

@rom1v
Copy link
Collaborator

rom1v commented Jan 6, 2025

OK, so for some reason, your device system does not capture audio output.

You might try another capture method:

scrcpy --audio-source=playback

(but Android apps can opt-out, so it does not capture everything).

@tianjiaoshanzai
Copy link

@rom1v Yes, this can capture part of the sound, but some apps such as voice assistants, Bluetooth phones, etc. still don't seem to be able to hear it.

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