barry-ran / QtScrcpy

Android real-time display control software
https://blog.csdn.net/rankun1/article/details/87970523
Apache License 2.0
18.53k stars 2.49k forks source link

v2.2.1 with rk3588 docker redroid cannot connect - encoder config issue #962

Open XZhouQD opened 4 months ago

XZhouQD commented 4 months ago

Hi dev,

Environment: Windows 11 Version: v2.2.1 Issue: When connecting to RK3588 redroid container, QtScrcpy detected it is a Rockchip CPU and use the c2.rk.avc.encoder by default and ignored the Codec config in config.ini. However, some container here need OMX.google.h264.encoder to connect correctly.

It gives:

AdbProcessImpl::out:[server] DEBUG: Using video encoder: 'c2.rk.avc.encoder'
AdbProcessImpl::error:[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] ERROR: Encoding error: java.lang.IllegalStateException: null

and it ignores the following config in config.ini:

CodecName="OMX.google.h264.encoder"

Expected behavior: Recognize what I put in config.ini to use OMX.google.h264.encoder like v2.1.2 instead of always goes to c2.rk.avc.encoder.

yaepung commented 3 months ago

+1