VM video codec optimization

140 views
Skip to first unread message

Carlos Piury

unread,
Jun 26, 2020, 1:50:42 PM6/26/20
to andro...@googlegroups.com
Hi,

Is there any way to optimize video codecs (encoding) with Android-x86 in Virtual Machine?, any specific AOSP build configuration?. I am working with Android-x86 8.1 but video encoding is really low.

Greetings
--
Carlos I. Piury

Computer engineer

Prajna Sariputra

unread,
Jun 26, 2020, 8:44:38 PM6/26/20
to andro...@googlegroups.com
Given that virtual machines have no direct access to the hardware I don't think it's possible to improve it much if at all, unless whatever hypervisor you're using actually exposes some sort of emulated video encoding/decoding capabilities. I'm fairly certain neither VirtualBox, VMWare or Qemu actually has that sort of thing at the moment, and I doubt they ever will.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/CAHMfM_d7BybxxhPi%2Bj3_xZG%2BjmFCh9Cnkv1-d67OGQqaVzn5YQ%40mail.gmail.com.

DDS Central

unread,
Jun 27, 2020, 3:35:05 AM6/27/20
to Android-x86
Virtual machines can directly access the hardware using things like VT-D, but that would mean giving VM exclusive access to your hardware.

Carlos Piury

unread,
Jun 27, 2020, 11:00:45 AM6/27/20
to andro...@googlegroups.com
Mm so options to improve video encoding would be:

 1. Maybe playing with mesa configuration improve performance?. How can I build my own mesa and include it in the AOSP build? 
 2. Vía VT-D: with exclussive access do you mean that only 1 VM could access the hardware, like Passthrough configuration, or there exists another limitation.
 3. Mm its possible to send the raw video from guest to host and encode it there vía HW? 


Prajna Sariputra

unread,
Jun 27, 2020, 6:52:51 PM6/27/20
to andro...@googlegroups.com
With VT-d and hardware passthrough you'd need 2 GPUs and 2 monitors, and you give exclusive control of one of them to the VM, then the VM can actually use proper drivers. I have only heard of people doing it with Linux hosts together with Qemu/KVM though.

Reply all
Reply to author
Forward
0 new messages