remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.21k stars 300 forks source link

Failed to initialize audio/opus, error 0xfffffffe #402

Open lz-ang opened 1 year ago

lz-ang commented 1 year ago

The above error message appears in the scrcpy screen projection

zhouziyang commented 1 year ago

try --audio-codec=aac --audio-encoder='OMX.google.aac.encoder' or add opus audio encoder yourself

lz-ang commented 1 year ago

如果add opus audio encoder yourself,实在源码中添加吗?

mhoeben commented 1 year ago

@zhouziyang could you give a hint where to enable the opus audio encoder in the build configuration?

mhoeben commented 1 year ago

Looking at the source for redroid-11, there is no opus soft encoder, only an opus soft decoder.

fjing1 commented 5 months ago

try --audio-codec=aac --audio-encoder='OMX.google.aac.encoder' or add opus audio encoder yourself

请问这个应该在哪里添加?谢谢

fjing1 commented 5 months ago

/usr/local/bin/scrcpy --serial 127.0.0.1:5555 --video-codec=h264 --video-encoder='OMX.google.h264.encoder' --audio-codec=aac --audio-encoder='OMX.google.aac.encoder' --video-bit-rate=24M --max-fps=120

我目前是这样写的,但是有一些app 还是听不到声音,有一些游戏却可以