Any plans to open source libOmxCore
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.
Just use ffmpeg with hw accelerated APIs (libva etc.) to implement your own media codecs, no magics here.
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 [email protected] pid 63535 thread android.ha:cs0 pid 3951 [518851.590839] [drm] Register(0) [mmUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000002n
This is not mature, and that's why not mentioned in official redroid doc.
OK but what is the software codec in this case? It's much better than libx264
@wx5391805 It relies on ffmpeg's ability to figure out the hardware acceleration which is great. Although, I think if you have a native codec for your GPU and use the same GPU for rendering, it may be a lot better since the frame bytes could get encoded before ever leaving the GPU. With ffmpeg, it does have to go through the CPU I believe.
@zhouziyang Is it possible to add more resolutions like 1920x1080? I tried changing it in the XML but didn't work, I guess 1280x720 is hard-coded in libomxcore.