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

The audio forwarding volume is weak and the phone still sounds. #4148

Open
2 tasks done
EarOfWheat opened this issue Jul 8, 2023 · 6 comments
Open
2 tasks done

The audio forwarding volume is weak and the phone still sounds. #4148

EarOfWheat opened this issue Jul 8, 2023 · 6 comments

Comments

@EarOfWheat
Copy link

EarOfWheat commented Jul 8, 2023

Environment

  • OS: Windows10
  • scrcpy version: 2.1
  • installation method: Windows release
  • device model: Hisense HLTE556N
  • Android version: 11

Describe the bug

The phone was turned up loud enough for me to hear it on the computer , I was going deaf.😂
There are no errors in the command line.

scrcpy 2.1 <https://github.com/Genymobile/scrcpy>
D:\soft\scrcpy-win64-v2.1\scrcpy-server: 1 file pushed, 0 skipped. 92.8 MB/s (56955 bytes in 0.001s)
[server] INFO: Device: [Hisense] Hisense HLTE556N (Android 11)
INFO: Renderer: direct3d
INFO: Texture: 824x1648

thank you!

@rom1v
Copy link
Collaborator

rom1v commented Jul 8, 2023

The audio forwarding volume is weak

Increase the volume on the phone.

the phone still sounds

Notifications? That's expected.

@EarOfWheat
Copy link
Author

Sorry, I am not a native English speaker and I used translation software.

the phone still sounds

Notifications? That's expected.

No, I meant that the phone would also have sound when playing the video on the phone. So increasing the volume on the phone will ...

@rom1v
Copy link
Collaborator

rom1v commented Jul 8, 2023

If the audio is still played on the phone, then it is not forwarded (#3875), so it is not played on the computer at all.

@EarOfWheat
Copy link
Author

EarOfWheat commented Jul 8, 2023

If the audio is still played on the phone, then it is not forwarded (#3875), so it is not played on the computer at all.

But the fact is that both phone and computer will play audio, and the volume on the computer is weak.
image

@0x0054
Copy link

0x0054 commented Sep 6, 2023

I'm having this exact same issue with my Lenovo Legion y200 ([Lenovo] Lenovo Lenovo TB-9707F (Android 12)).

The device is laying about 2 meters away from me and while I can hear it using audio forwarding it is pretty quiet and I can also easily hear the device itself. I tried this using the loudest setting.

@0x0054
Copy link

0x0054 commented Sep 6, 2023

Just a bit more info because my previous comment lacked it:

Available encoders:

[server] INFO: List of video encoders:
    --video-codec=h264 --video-encoder='OMX.qcom.video.encoder.avc'
    --video-codec=h264 --video-encoder='c2.android.avc.encoder'
    --video-codec=h264 --video-encoder='OMX.google.h264.encoder'
    --video-codec=h264 --video-encoder='c2.qti.avc.encoder'
    --video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc'
    --video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc.cq'
    --video-codec=h265 --video-encoder='c2.android.hevc.encoder'
[server] INFO: List of audio encoders:
    --audio-codec=opus --audio-encoder='c2.android.opus.encoder'
    --audio-codec=aac --audio-encoder='c2.android.aac.encoder'
    --audio-codec=aac --audio-encoder='OMX.google.aac.encoder'

Opened scrcpy with Android settings open and clicked on the volume slider to trigger a sound,
like described above I can hear the device itself pretty loudly and very quietly after a short delay through scrcpy
Verbose logging here:

λ scrcpy -Swm 1744 --display-buffer=55 --power-off-on-close -s 192.168.0.160:5555 -V verbose                              
scrcpy 2.1 <https://github.com/Genymobile/scrcpy>                                                                         
DEBUG: ADB device found:                                                                                                  
DEBUG:     --> (tcpip)    192.168.0.160:5555            device  Lenovo_TB_9707F                                           
DEBUG:         (tcpip)     192.168.0.16:5555            device  2106118C                                                  
DEBUG: Device serial: 192.168.0.160:5555                                                                                  
DEBUG: Using server (portable): C:\Users\XYZ\Downloads\scrcpy-win64\scrcpy-server                             
C:\Users\XYZ\Downloads\scrcpy-win64\scrcpy-server: 1 file pushed, 0 skipped. 61.4 MB/s (56955 bytes in 0.001s)
[server] INFO: Device: [Lenovo] Lenovo Lenovo TB-9707F (Android 12)                                                       
[server] DEBUG: Using video encoder: 'OMX.qcom.video.encoder.avc'                                                         
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'                                                            
DEBUG: Server connected                                                                                                   
DEBUG: Starting controller thread                                                                                         
DEBUG: Starting receiver thread                                                                                           
INFO: Renderer: direct3d                                                                                                  
DEBUG: Trilinear filtering disabled (not an OpenGL renderer                                                               
DEBUG: Using icon (portable): C:\Users\XYZ\Downloads\scrcpy-win64\icon.png                                    
DEBUG: Demuxer 'video': starting thread                                                                                   
DEBUG: Demuxer 'audio': starting thread                                                                                   
VERBOSE: input: power mode off                                                                                            
INFO: Texture: 1744x1088                                                                                                  
[server] INFO: Device screen turned off                                                                                   
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples                                                         
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples                                                         
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples                                                         
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples                                                         
VERBOSE: [Audio] Buffering: target=2400 avg=5237.464355 cur=5520 compensation=-2837                                       
VERBOSE: input: touch [id=finger] down position=1551,523 pressure=1.000000 action_button=000001 buttons=000001            
VERBOSE: input: touch [id=finger]   up position=1551,523 pressure=0.000000 action_button=000001 buttons=000000            
DEBUG: [Audio] Buffering threshold exceeded, skipping 72 samples                                                          
VERBOSE: [Audio] Buffering: target=2400 avg=4471.256347 cur=4239 compensation=-2071                                       
DEBUG: User requested to quit                                                                                             
DEBUG: quit...                                                                                                            
DEBUG: Demuxer 'video': end of fr[server] DEBUG: Controller stoppeda                                                      
mes                                                                                                                       
DEBUG: Demuxer[server] DEBUG: Device message sender stopped                                                               
'audio': end of frames                                                                                                    
DEBUG: Receiver stopped                                                                                                   
DEBUG: Buffering thread ended                                                                                             
[server] DEBUG: Screen streaming stopped                                                                                  
[server] DEBUG: Audio encoder stopped                                                                                     
WARN: Killing the server...                                                                                               
DEBUG: Server disconnected                                                                                                
DEBUG: Server terminated                                                                                                  

If you need any more info please let me know.

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