Skip to content

nvidia Shield Android TV - Audio error in console #4110

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

Closed
2 tasks done
wazerstar opened this issue Jun 24, 2023 · 2 comments
Closed
2 tasks done

nvidia Shield Android TV - Audio error in console #4110

wazerstar opened this issue Jun 24, 2023 · 2 comments

Comments

@wazerstar
Copy link

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

Environment

  • Desktop Windows 10 Pro x64
  • scrcpy version: 2.1
  • Windows release
  • device model: nVidia Shield Pro 2017
  • Android TV version: 11
  • Nvidia Software version 9.1.1(33.2.0.157)

Describe the bug
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]

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

D:\programmer\scrcpy-win64\2.1>scrcpy --tcpip=192.168.1.26:5555 --window-title nVidia_Shield -m1280 --max-fps 60 --kill-adb-on-close
scrcpy 2.1 <https://github.com/Genymobile/scrcpy>
* daemon not running; starting now at tcp:5037
* daemon started successfully
INFO: Connecting to 192.168.1.26:5555...
INFO: Connected to 192.168.1.26:5555
D:\programmer\scrcpy-win64\2.1\scrcpy-server: 1 file pushed, 0 skipped. 245.9 MB/s (56955 bytes in 0.000s)
[server] INFO: Device: [NVIDIA] NVIDIA SHIELD Android TV (Android 11)
[server] ERROR: Could not create default audio encoder for opus
List of audio encoders:
    --audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.IllegalArgumentException: Failed to initialize audio/opus, error 0xfffffffe
        at android.media.MediaCodec.native_setup(Native Method)
        at android.media.MediaCodec.<init>(MediaCodec.java:2117)
        at android.media.MediaCodec.createEncoderByType(MediaCodec.java:2042)
        at com.genymobile.scrcpy.AudioEncoder.createMediaCodec(AudioEncoder.java:292)
        at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:184)
        at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:124)
        at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:923)
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1280x720

@wazerstar
Copy link
Author

Adding --audio-codec=aac works, gives audio and no error output in console

@rom1v
Copy link
Collaborator

rom1v commented Jun 24, 2023

Adding --audio-codec=aac works, gives audio and no error output in console

👍 (Your device does not have any opus encoder)

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