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

audio not forwarded #4217

Closed
2 tasks done
laoshaw opened this issue Aug 6, 2023 · 4 comments
Closed
2 tasks done

audio not forwarded #4217

laoshaw opened this issue Aug 6, 2023 · 4 comments

Comments

@laoshaw
Copy link

laoshaw commented Aug 6, 2023

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: [e.g. Debian, Windows, macOS...]
    ubuntu 22.04
  • scrcpy version: [e.g. 1.12.1]
    1.21
  • installation method: [e.g. manual build, apt, snap, brew, Windows release...]
    apt install scrcpy
  • device model:
    pixel3
  • Android version: [e.g. 10]
    android 12

Describe the bug
A clear and concise description of what the bug is.

just run scrcpy on ubuntu and I can use android freely on ubuntu including video playing, except audio stays on the phone(not forwarded)

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

scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
* daemon not running; starting now at tcp:5037
* daemon started successfully
/usr/share/scrcpy/scrcpy-server: 1 file pushed. 0.9 MB/s (39473 bytes in 0.043s)
[server] INFO: Device: Google Pixel 3 (Android 12)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 525.125.06
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2160
[server] INFO: Device clipboard set
INFO: Device clipboard copied

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Aug 6, 2023

@laoshaw
Copy link
Author

laoshaw commented Aug 6, 2023

[64/64] Linking target app/scrcpy
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
[scrcpy] Installing (sudo)...
[0/1] Installing files.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 146, in run
    return options.run_func(options)
  File "/usr/lib/python3/dist-packages/mesonbuild/minstall.py", line 811, in run
    installer.do_install(datafilename)
  File "/usr/lib/python3/dist-packages/mesonbuild/minstall.py", line 564, in do_install
    d = self.check_installdata(pickle.load(ifile))
ModuleNotFoundError: No module named 'mesonbuild.utils'

but I do have meson 1.1.1 installed

@laoshaw
Copy link
Author

laoshaw commented Aug 6, 2023

got it working:

  1. upgraded meson to 1.2.0
  2. tried release scrcpy 2.1.1 but got error: java.lang.IllegalArgumentException: The server version (2.1) does not match the client (2.1.1), seems like a 2.1.1 release bug?
  3. build from git main trunk and it worked

@laoshaw laoshaw closed this as completed Aug 6, 2023
@rom1v
Copy link
Collaborator

rom1v commented Aug 6, 2023

tried release scrcpy 2.1.1 but got error: java.lang.IllegalArgumentException: The server version (2.1) does not match the client (2.1.1), seems like a 2.1.1 release bug?

Read this comment wihich explains why the install_release.sh script may not be included in the tag, but only one commit after: #4098 (comment)

It is intended to be run from master.

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

2 participants