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

OBS unable capture scrcpy audio when --no-video option is used #4897

Closed
2 tasks done
4nric opened this issue May 2, 2024 · 4 comments
Closed
2 tasks done

OBS unable capture scrcpy audio when --no-video option is used #4897

4nric opened this issue May 2, 2024 · 4 comments

Comments

@4nric
Copy link

4nric commented May 2, 2024

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

Environment

  • OS: Windows
  • scrcpy version: 2.4
  • installation method: Windows release
  • device model: SM-G975N
  • Android version: 12

Describe the bug
I'm using OBS's Application Audio Capture, scrcpy is not listed if there's no scrcpy window active. This behavior may be intended and actually is cleaner, just have the terminal and no additional window. But OBS can't capture audio this way for now. I tried providing width and height values but those are ignored if --no-video is used.

scrcpy --no-video --audio-source=mic --window-width=100 --window-height=100 --window-title=mic

@rom1v
Copy link
Collaborator

rom1v commented May 2, 2024

Please test this PR: #4868

@rom1v
Copy link
Collaborator

rom1v commented May 3, 2024

^ Basically, this version opens a window even when video playback is disabled. That way, you should be able to capture the window audio. Could you confirm, please?

@4nric
Copy link
Author

4nric commented May 4, 2024

I can confirm obs can now capture scrcpy audio this way. Would be great to have both options, hidden and visible. Thanks!

@4nric 4nric closed this as completed May 4, 2024
@rom1v
Copy link
Collaborator

rom1v commented May 4, 2024

I can confirm obs can now capture scrcpy audio this way. Would be great to have both options, hidden and visible. Thanks!

Thank you.

In this PR, by default a window will be open, but there is a new option --no-window to disable 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

2 participants