remote-android / redroid-doc

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

Any plans to open source libOmxCore #639

Open wx5391805 opened 8 months ago

wx5391805 commented 8 months ago

Redroid is a great job. Are there any plans to open source libOmxCore? I use amdgpu + redroid OMX and want to improve the screen recording features. Thank you very much.

zhouziyang commented 8 months ago

Just use ffmpeg with hw accelerated APIs (libva etc.) to implement your own media codecs, no magics here.

wx5391805 commented 7 months ago

What is the SW codec? When I open both androidboot.use_redroid_omx=1 androidboot.use_redroid_vaapi=1 I get an amdgpu driver error. I can only do this androidboot.use_redroid_omx=1 androidboot.use_redroid_vaapi=0 But I found that the CPU utilization is much lower than google.h264.encoder.

[518851.401904] [drm:amdgpu_job_timedout [amdgpu]] ERROR ring vcn_enc_0.0 timeout, signaled seq=257492, emitted seq=257493 [518851.413038] [drm:amdgpu_job_timedout [amdgpu]] ERROR Process information: process omx@1.0-service pid 63535 thread android.ha:cs0 pid 3951 [518851.590839] [drm] Register(0) [mmUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000002n

zhouziyang commented 7 months ago

This is not mature, and that's why not mentioned in official redroid doc.

wx5391805 commented 7 months ago

OK but what is the software codec in this case? It's much better than libx264