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 for VR headset (Meta Quest 3) #4354

Open
2 tasks done
LiveOpenMike opened this issue Oct 13, 2023 · 8 comments
Open
2 tasks done

No audio for VR headset (Meta Quest 3) #4354

LiveOpenMike opened this issue Oct 13, 2023 · 8 comments

Comments

@LiveOpenMike
Copy link

LiveOpenMike commented Oct 13, 2023

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

Environment

  • OS: Windows
  • scrcpy version: v2.1.1
  • installation method: Windows release
  • device model: Meta Quest 3
  • Android version: 12

Describe the bug
Working on an ADB call to feed the video and audio from my VR HMD to my PC for livestreaming.

This is my current script:
scrcpy --crop 2064:2208:2064:0 --video-bit-rate=40M -d --disable-screensaver --max-fps 60

Feed comes in fine, but no audio (audio timestamp not found). I ran a Vdebug and got the following:

INFO: Device: [Oculus] oculus Quest 3 (Android 12)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
[server] DEBUG: Using video encoder: 'c2.qti.avc.encoder'
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer
DEBUG: Using icon (portable): C:\Users\17702\Documents\scrcpy-win64-v2.1.1\icon.png
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
INFO: Texture: 4128x2208
[server] WARN: Could not get any audio timestamp
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

I tried an audio buffer overflow and got nothing. Switched the codec to AAC and got nothing. What solved it... was plugging headphones into the headset. That simple act sent the audio to my PC (but no sound through the headphones). Trying to understand why this happened and figure out a workaround as I would rather not wear two sets of headphones. Any insight would be appreciated.

Thanks in advance.

@rom1v
Copy link
Collaborator

rom1v commented Oct 14, 2023

[server] WARN: Could not get any audio timestamp

I had never triggered this warning.

But this is not only a timestamp problem apparently, since you get no sound at all. The audio encoder does not capture any sound, so the Android system does not behave as expected on your device for some reason.

Do you have any earphones connected? (if so, try without)

@LiveOpenMike
Copy link
Author

LiveOpenMike commented Oct 14, 2023 via email

@rom1v
Copy link
Collaborator

rom1v commented Oct 14, 2023

Probably related to #4083 in some way.

@zilewang7
Copy link

Did you find any solution, I had the same problem.

@A01706155
Copy link

I have the same issue too.

It looks like this is on Meta's side. I've seen some tutorials with Android phones.

Unfortunately, I don't have an Android phone with Android 11 or 12 to test if this is happening only with the Quest 3.

Can someone else help us confirm this issue?

@sorryaboutyourcats
Copy link

I had to resort to the Rode's Wireless GO 2s for audio capture and use scrcpy just for the video feed. More info here.
Capturing the microphone was possible after switching the source, but that doesn't help us. 😿

Also tested - a 3.5mm splitter out of the headset, with one going to headphones and one going to the Rode [and another test using an aptX device] - scrcpy was able to capture audio but the results were not good.

~3 weeks ago Meta released casting 2.0 via Meta Quest Developer Hub. The added cinematic mode was nice, but the FPS was still too low for me to consider using; hopefully they improve it so we can have a more seamless casting experience. 😸🤞

@KerbinThePlanet
Copy link

I have the same problem, connecting headphones sends sound to the computer, but it would be useful to have an option that would play the sound in the headphones at the same time.

@fractalzombie
Copy link

+, too have this issue

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

7 participants